Hitesh Shah's Q&A profile
Windows Forms Performance
Hello, I have been doing some performance measurements on the drawing of my custom controls. Here I have found an effect that I cannot explain: Take a simple control, that just shows a couple of strings (using the DrawString() method). When I set t ...Show All
Visual C++ Shellexecute error
HI, string cmd = ""; cmd = " -l "; cmd.append(user); cmd.append(" -pw "); cmd.append(pwd); cmd.append(" "); cmd.append(host); ShellExecute(NULL,TEXT( "open" ),TEXT( "putty.exe" ),TEXT(cmd),NULL,SW_NORMAL); I constructed a string that contains parameters for my .exe file. But when i try to insert the string into the ShellExecute command i got this: error C2664: 'ShellExecuteW' : cannot convert parameter 4 from 'std::string' to 'LPCWSTR' No u ...Show All
Visual Studio login Failed
I have a windows app that connects to a sql database. I now want to do reporting from it. I have created a CR report (from the buit-in VS2003 version of CR) that is going to be used to display the information. When I run the app I get a login prompt for the database. No matter what I enter into the prompt CR returns "Login Failed". Searching the web the only references to try and solve the problem de ...Show All
Visual Basic TV Capture
i'm trying to create an application that calls or access my tv capture card (a VB TV application) although im still a novice. Any poiners To do this, you probably want the platform SDK, seeing as DirectShow has been moved there from DirectX, where it used to live. Beyond that, I'm not sure. ...Show All
SQL Server synchronized backup
hi... we a sql server 2k5 developer installed on a server win2k3, while clients pc has sql server express installed..and we are using common database which is on the server..is it possible that sql server 2005 dev edition backup the data to one of the pc drive on the network ..so that we have a data backup that is updated .. would greatly appreciate a step by step guide on how to do it..thank you I'm n ...Show All
.NET Development Socket Send Problem
When i'am sending something like this: Dim bye() As Byte For i As Integer = 1 To Clients.Count bye = stringTobyte(str) stream.Write(bye, 0, bye.Length) Next It will always be send in one string "string1string2string3" but i want it to send all strings alone so.. "string1" "string2" .... when i'am using stream.flush its dosn't working too. What can i do that this wor ...Show All
Visual Studio 2008 (Pre-release) RichTextBox How To!
Hi, I have searched the net and the documentation that shipped with Beta 2 and have not found any results or information that was able to aid me. Hopefully there are some RichTextBox experts that could please help me with the following things: How can I make the RichTextBox single line (this was possible in Win32, and no, changing the control template to a textbox does not work! Because then it essentially is a t ...Show All
Windows Forms #develop
I was justing loitering in the Community page of windowsforms.net and hit the following link: <A HREF="http://www.icsharpcode.net/OpenSource/SD/">http://www.icsharpcode.net/OpenSource/SD/</A> This is the web page for an open source IDE for C# and VB.NET called #develop. ...Show All
Microsoft ISV Community Center Forums SQL Server 2005 Resourse Kit exception
Hi, When i try to view any of the webcasts by clicking "play", i get the following Visual Studio just in time debugger error: An unhandled win32 exception occured in iexplore.exe[4624]. I can also see the following error in the winnt application error log. I am running winxp with sp2. Event Type: Error Event Source: Application Hang Event Category: (101) Event ID: 1002 Date: 25/08/2005 Time: 7:08:50 ...Show All
Visual Basic Can I create unbounded generic type in VB.NET?
I would like to create an unbounded generic type in VB.NET. I know that in C# you can do e.g. GenericType<of Integer> and an unbounded version with GenericType<> but if I try to do GenericType() in VB.NET, I get an "Too Few Type arguments to 'GenericType'" error. So, is this possible or is this yet again something that is in C# but not in VB.NET The reason I'm trying to accomplish this is that I have a generic type ...Show All
Visual Studio Team System trouble with strings..?
this could be me but I am having trouble getting certain strings declared. Please excuse the simple code I am a beginner here. I am in a web test that I am trying to modify Have a fuction should return my XML in a string format. tDog does what it should and gets the string value of all my XML just like I need. But test (my function) never does anything, it should be returning a string v ...Show All
Visual Studio 2008 (Pre-release) Avalon Beta with Current Visual Studio Relase
Hello, Can I use Avalon with current Visual Studio Release (Express or Professional). Thanks, Mustafa ELBanna No, the current release of WPF (Avalon) only works with Beta2 of VS2005. There is a new release of WPF coming sometime in Dec. which works with the release versions of .NET 2.0 and VS2005. HTH, Drew ...Show All
Visual Studio Team System How to access Team system using Programs
Hi all, I want to use the functionality of Team System. Are there any classes and interfaces opened by Microsoft to access Team system. So that I can access the Team system through my own written programs. If any one have some code snippet to explain or some links regarding the access of Team system using Visual Basic functions, it will be helpful Thanks Hello Could you be more specific on wh ...Show All
Visual Studio Team System TFS Reporting does not work due to warehousing issue
Hello: I just installed TFS and while testing, I found out that reports inTFS does not work. When I try to access any report through Team Explorer, it gave me following error: An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'IterationParam'. (rsErrorExecutingCommand) The Team System cube either does not exist or has not been processed. Then I followed "Ware ...Show All
.NET Development SMTPClient Problems
Just converted my vs.net 2003 project to 2005. Changed to system.net.mail. I get the following error when i get to the send command - {"Command not implemented. The server response was: Command not Supported"} Here's the code. Dim ErrMail As New MailMessage( New MailAddress(cVariables.UserEmail), New MailAddress(MailTo)) With ErrMail .Subject = subject .Body = Message End With Dim MailClient As New SmtpCl ...Show All
