Software Development Network Logo
  • IE Development
  • Visual Studio
  • SharePoint Products
  • Smart Devicet
  • Visual C++
  • Microsoft ISV
  • Visual FoxPro
  • Visual C#
  • SQL Server
  • Visual Basic
  • Windows Forms
  • VS Team System
  • Game Technologies
  • Audio and Video
  • .NET Development

Software Development Network >> Bhavtosh's Q&A profile

Bhavtosh

Member List

John Stearns
BMcDowell
Ace Card-Man
Aknght
PaoloZ
-JW
Leather
Gary Ash
Ultrawhack
Chris &quot&#59;Delmonty&quot&#59; Finlay
Puffarbubbole
lifeamit
Robert S Parker
Smitty1276
markse
RibTickler
Pat J
cpaw88
Twice_Resurrected
LarryBB
Only Title

Bhavtosh's Q&A profile

  • Visual C# __DATE__ equivalent

    I'm new to C# coming from a C background. I would simply like access to the build date of my application. In C, I could do this using the __DATE__ macro. How would I do this in Visual C# TIA JeffM hi, i don't know c and i don't know if you can do that useing System.Refliction or not but you can get the creationdate from System.IO class Program { static void Main( string [] args) { string strpath = System.Reflection. Assembly .GetExecutingAssembly().Location; System.IO. FileInfo fi = new System.IO. FileInfo (strpath); Console .WriteLine(fi.CreationTime); } } it will not give you the build date but it will give you the creation date on the client mach ...Show All

  • Visual Studio Express Editions ListBox Arrays

    I'm trying to figure out how to make a price show up in a text box after selecting the item Here is what i have so far: Option Strict On Public Class Form1 Dim EmpSales(4) As Single '...a zero based array with 5 items...0,1,2,3 and position 4 Dim Sysprice(4) As Single Dim ValidateData As Boolean '...boolean variable....ie either a true or false value Dim strSysprice() As String Dim strInput As String Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click Me .Close() End Sub Private Sub ListBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As Syst ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Device Creation Problem

    Hi, I am a starter to the game development. I planned to create a small program(game) that just initializes a device as a startup. I decided to do it in c#. I have the VS2005 Express Edition to start development. I have also downloaded the DirectX SDK, oct 2006. But the express edition throws an error InvallidCallExcpetion Every time i create a device. This is how i create it. PresentParameters presentParams = new PresentParameters(); presentParams.Windowed = true; presentParams.SwapEffect = SwapEffect.Discard; device = new Device(0, Microsoft.DirectX.Direct3D.DeviceType.Reference, this.Handle, CreateFlags.SoftwareVertexProcessing, presentParams); } I have a old graphics unit(sis 6326, 4 Mb) and a PII ...Show All

  • SQL Server Converting percent-decoded data, or characters to int

    Say I have a percent encoded expression like www%2emysite%2ecom. An unencoded representation would be www.mysite.com. I have written a tsql regex function to parse an input string and replace any legal percent-encoded substring with its ascii equivalent, returning the unencoded version of the input string. However I'm stuck on one crucial step: converting a percent-encoded substring (ex: '%2e') or its hexadecimal string representation ('0x2e') to an integer. I've tried CONVERT(bigInt, '0x2e') but of course that isn't working. What is the best way to go about this I've been all over the sql server books online, search engines, and other forums. I can't get past this one step. Am I on the right track, or should I look at it a different way ...Show All

  • Visual Basic Adding data in one column together

    I'm working on my first database application and I am stuck on how to add all the data in one column and display that total with a label. I've searched the forum with no luck. The data in the column is currency. Thanks for all the help Thanks for your help in pointing in the right direction but I still have a few questions. Heres the code I have so far. SELECT Sum(Winnings) as Total FROM AmountsTable End Select Questions 1. Is AmountsTable my table name or my tableadapter 2. Error, SUM and WINNINGS are not declared, how should I declare those 3. Error, end of statement expected. Thanks again ...Show All

  • Visual Studio Team System Data Driven Unit tests and Database Deployment

    Let me first start by saying thank you so much for DataDude! OK, with that said I have a question. Our applications consist of a data access layer that we like to write unit tests for. To best exercise the data access classes we like to use data driven unit tests. In some cases we use the test database as the test datasource as well. Here is the question: when I have a unit test set with the datasource being the database to be deployed in the Database Configuration for the test project everything will work fine if the database exists and has data in the table specified in the DataSource attribute of the test method prior to the test run being started. However, if the database does not exist the test is aborted before AssemblyInitialize is ...Show All

  • Visual Studio Report Viewer Table

    Hello, I'm trying to display the table information horizontally insead of down the form. For example, instead of this; A B C D I would like to display two tables beside each other and display the tables and data like this Table 1 Table2 A C B D Or, if there is a way to select (filter) which data is displayed in the table that would work also. For instance, if I could display just the odd pieces of data (the 1st, 3rd, etc, etc) in one table and the even pieces of (2nd, 4th, etc, etc) in the other table that would work also. Is this possible If so, how Thanks in advance, John One option is to follow an approach as discussed in Chris' blog article about horizontal table: http://blogs.msdn.com/chrishays/archive/2004/07/23/Horizonta ...Show All

  • Visual Studio Express Editions Using removehandler for unknown events

    Does anyone know if it's possible to remove an event handler when you don't know the name of the event handler sub Let's say I define an event handler: Sub EventHandler() ' Handle the event. MsgBox( "EventHandler caught event." ) End Sub I add the event handler: AddHandler Obj.Ev_Event, AddressOf EventHandler Then if I need to remove the event: RemoveHandler Obj.Ev_Event, AddressOf EventHandler BUT, let's say I don't know the name of event handler (EventHandler). Is there a way to remove an event handler if you don't know the name of the actual sub Thanks! No, I don't think this is possible in VB.NET. In C#, an event is a simple instance of a ...Show All

  • Visual C# Inaccurate/Wrong calculations

    Hi, I working on a fairly large project in C#, combining numerous components such as SQL and DirectX. We all, however, seem to have come across a severe problem! We can't do basic arithmetic! For example, in VS.NET 2003, I need to subtract two UTC style time values - eg 11565456546546.1342345566 etc. double large_val1, large_val2; ... double difference = large_val1 - large_val2; Instead of the result I expect (and indeed the result shown in the Watch window during debug for large_val1 - large_val2), I get a servely rounded value instead - that is entirely useless!! Help!! I can do this in a standard command line / console application and everything works fine - why should there be any difference ! I have tried decimal, ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Some basic query about XNA Game Studio Express

    Hi, My question might be little irrelevant to this forum, but I could not stop but ask since the XNA Game Studio Express Beta2 has been released. I was thinking how relevant the game development expereince in XNA Game Studio Express I was thinking od writing a new engine in my part time and was looking for some option for game development Api. I have good knowledge in OpenGL and now was thinking od writing a game engine using Managed DirectX. While considering different options the idea just popped into my mind that why not using XNA express Now my question is how relevant the expereince of XNA Game Studio Express in professional game development world If someonw developed a game in XNA express is this expereince count into XBO ...Show All

  • SQL Server Using alerts

    I am using SMO 2005 to assign alerts for error number 20574. My doubt is whether we hav to assign job for the alerts that are created And also will the alerts be generated when the error occurs and the operators be notified thru email Thanks, Somu ...Show All

  • Windows Forms how to open MdiChild from another MdiChild

    I open MdiChild_1 from the parent MainForm and I want to open MdiChild_2 from a button on the MdiChild_1 I tried this code but not working.. frmMain MainForm = new frmMain (); frmRemarks RemarksForm = new frmRemarks (); RemarksForm.MdiParent = MainForm; RemarksForm.Show(); problem solved with: frmRemarks form = new frmRemarks (); form.MdiParent = this .MdiParent; form.Show(); ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Function found in samples but not docs

    I have found this function in the samples but not in the docs. Does it not draw color on the mesh Where can I find out more about it DXUT_BeginPerfEvent( DXUT_PERFEVENTCOLOR, L "Draw Code" ); Look up D3DPERF_BeginEvent() , D3DPERF_EndEvent() and D3DPERF_SetMarker() in the regular Direct3D documentation. The DXUT code you refer to should just be a wrapper to the aforementioned core API calls. But, as Wessam pointed out, they are for nothing more than monitoring and profiling your D3D applications - an extremely powerful and valuable feature but they don't change the rendering process in the slightest. hth Jack ...Show All

  • Visual Studio Express Editions AutoIncrementing UniqueIdentifier column in SQL databse table giving NoNullAllowedException!

    Visual Basic 2005 Express: In my SQL database table, I have a CustomerNbr column. In Database Explorer's table definition it has "UniqueIdentifier" as it's data type, and is set as the PrimaryKey. In the XSD Designer, this field is set as the primary key, AutoIncrement=True. DefaultValue is <DbNull>, but, it won't let me remove this! When I add a record to the DataGridView, it correctly puts a "1" in the CustomerNbr column, but, when I update the record, I get a System.Data.NoNullAllowedException! there are many reasons for it existing. one of our SQL Guru's here did say @@Identity is bad practice and not recommended but rather scope_identity() to be used for the ID ...Show All

  • .NET Development web.config file

    Hi, Can we create 2 web.config files in an asp.net application. will it work. can anyone suggest me the solution. Thanks in advance. Hi Srid, Two web.config files doesn't work in a web application root directory. Good Coding! Javier Luna http://guydotnetxmlwebservices.blogspot.com/ ...Show All

©2008 Software Development Network