Sudha's Q&A profile
Visual C++ flow of control in dialog box application
I have created my first dialog box application and i want to know the flow of control during execution i.e which function is called first which one is called last and what each function is doing. Regards pankaj You could use the TRACE macros, or log to a text file. You could also use Spy++ to see the flow of messages for a specific window. pankaj_s wrote: I have created my first dialo ...Show All
Smart Device Development Catching IOException during Bluetooth Serial comm
I have a timer event that periodically (5 seconds) writes to a Bluetooth Serial port. If bluetooth is turned off, the app immediately comes out with a IOException error and stack trace and terminates. Since this seems to be occuring while waiting for the timer event to occur, I cant enclose it in a try catch. There doen't appear to be a global exception handler either. I would like to be able to catch this exception to reset the app back to an i ...Show All
Visual C++ Project : error PRJ0002
hello i'm a complete novice in visual studio 2005 and was wondering if i could get some help from the pro's i have Visual Studio 2005 Professional Edition and was trying out some basic (and i mean really simple) code to get to grips with it and then work up, i'm not new to c++ as such so i'm pretty sure the code is ok i was trying to build a simple hello world program in a win32 console application project but when i try to build it throws an ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- ...Show All
Visual Basic windows generated code
In Visual Basic 2003, the windows generated code could be seen. Where it is in VB2005. .NET 2.0 introduced the concept of partial classes, where the defintion of one class can be placed in several files. The designer makes use of this and creates a Form1.Designer.vb file, containing the designer generated code. ...Show All
.NET Development smtpclient: cannot reveive the mail sent out
Hi all, My solution was migrated to vs 2005 from vs 2003, which includes a web project. I changed the smtpmail to smtpclient. the mail can be sent out, but cann't be recieved. I wrote a console application that had the same mail sending related contents as my web project, and it worked well. Here's the simplified code( it does not work still): SmtpClient smtpc = new SmtpClient ( "localhost" ); MailMessage m = new Mail ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. To have one form talk to another, pass the ...Show All
Visual Basic Day of Week
how do i output the day of the week only Try this code: Module Module1 Sub Main() Dim d As Date = Today Console.WriteLine(d.DayOfWeek) Console.WriteLine(System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.DayNames(d.DayOfWeek)) End Sub End Module ...Show All
Visual Basic Pointers In VB?
Is there anyway of converting the following C# code to VB Vector3* myVector3 = (Vector3*)&someMatrix.M31; Thanks If Vector3 is a struct and M31 is a float, then both are value types and you need "real" pointers (using * and &), which you can only do in C# and C++. VB does not support this. Your best bet is to write these parts in C# and then reference the C# assembly from the rest of your VB class librar ...Show All
Visual Studio Tools for Office Automatically signing a word document.
Hi, we're trying to make a document management setup in .Net 1.1 (we're not using 2.0 yet) . Where every outgoing document has to be signed by us and then signed again by the client for acceptance of the conditions. Now the problem is that we would like to automate our signing process (The clients sign using the built-in signature dialog in MS Word) Right now we have these code snippets that handle the signing: Word.Document aDoc ... // ...Show All
Visual Studio 2008 (Pre-release) CommunicationObjectAbortedException
I'm trying to get an object from my server, that contains lots of other objects with List<>'s, strings, ints and colors. The server is throwing a CommunicationObjectAbortedException. Then I tried to change the iterface and added [XmlSerializerFormat] on the servicecontract. That seemed to work, but now all my Color objects are changed to 0. The server is returning an object with correct information, but when it reaches the client, all t ...Show All
.NET Development TCP packet confirmation
Anybody know how I can checks that my TCP/IP packet have been really received on the destination side and that is not standing in the buffer because of retries or bad connection Ronald You can't rely on TCP acks to tell you if the peer application has received your data. It simply isn't going to work reliably, and there are already too many unreliable network applications out there. Deal with the extra cost - i ...Show All
.NET Development Problem on generating .tlb from .NET 2005 assembly
Hi all, The type library is an important file for COM interop, without which unmanaged code can't interact with managed code. When I use .NET 2003, I can sucessfully generate .tlb file from a .NET Dll (built with /clr:oldsyntax switch) - using tlbexp or Regasm /tlb. The above technique never works for .NET 2005. (Both for Beta1 & Beta2). The thing is that a .tlb file gets generated with an empty library statement block, ano NO types are expo ...Show All
SQL Server MDX problem in AS2005
When executing the following MDX statements I get an error with AS2005 although the query seems to be valid, at least AS2000 has no problems with it. CREATE SET [Sales].[Y1] AS '{[Product].[All Products].[Drink]}' CREATE MEMBER [Sales].[Product].[X] AS 'Sum([Sales].[Y1])' SELECT Order({[Product].[X], [Y1]}, [Measures].[Unit Sales]) ON AXIS(0) FROM [Sales] I create a set, a calculated member as the sum of this set, and then query ...Show All
Visual Studio Team System UnitTesting in vb2005
Hi,, Can anyone tell me, how i can make a new application that contains my testclass.dll, so i can test and validate my tests from any location... -Meaning that i don't want to open VSTS to run the tests.. And i don't want to run the test from commandline either.. But instead in a new application or website from wich i can invoke and validate thise tests one by one. I found out that there is a namespace called: Microsoft.VisualStudio.TestTools ...Show All
