andyr2005's Q&A profile
Visual C++ CSocket Locks up in CSocket::ConnectHelper (sometimes)
A CONNECT PROBLEM WITH CSocket I have what I think is some very simple CSocket code for a client and a server, but I'm having difficulty getting it working since it occasionally locks up. Any advice would be greatly appreciated. Here's the situation: I have a client program and a server program. I start them both up, assuring that the server starts up first and is waiting and ready for the client. They are both running on the SAME MACHINE. ON THE CLIENT SIDE When the client program is started it successfully makes a connection to the server, sends a simple (command) string to the server, and then retrieves (data) strings from the Server ...Show All
Windows Forms Unbound DataGridView and Dates
I can't seem to make an unbound grid deal with dates properly. Anybody have a sample of how to display dates in a DataViewGrid such that the column that displays dates sorts by date and not by the string representing the date I also need to set the date format used. There is a ValueType property that looks promissing except I have not been able to set/change an unbound column's ValueType. Is that possible How In my case I need to set the column type dynamically based on SQL passed into a procedure so I cannot set the ValueType at design time. Given that can ValueType be changed once rows exist (Most of the above assumes, maybe incore ...Show All
SQL Server Linked Server connection issue
We have a SQL Server 2005 Enterprise Edition set up on Server 2003 Standard Edtion OS and one on Server 2003 OS Enterprise Edition. All of them have their Service Pack ones installed. On the 2005 on Standard 2003 OS I can get to linked ODBC connection servers with no problem. On the 2005 SQL Server on the Enterprise Edition I get Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "EAWARMBKUP". We are not sure whether or not this is caused by something on the OS or on the SQL SERVER software. Any help would be appreciated. Allow remote c ...Show All
Visual Studio Express Editions Windows Form Designer Generated Code
I've created a number of forms and got the Generated Code, but now I don't seem to be getting the Generated Code with new forms. What am I missing Thanks, jerryk I'm in the free VB Express Edition 2005/2008 but there's no plus sign to expand in any of my projects What to do Thanks. Newbie ...Show All
Windows Forms ListView iconspacing in dotnet 2.0
Hiya, I'm looking for a way to set the icon spacing while displaying large icons. In dotnet 1.1 this could be done by using the SendMessage and setting the variable LVM_SETICONSPACING. Unfortunately this doesn't work anymore Anyone suggestions Sven. Can you post the demo C# project on how to use LVM_SETICONSPACING ...Show All
Visual Studio how do i debug application using Remote Desktop Connection
i use Remote Desktop Connection to connect to machine.i want to debug my applaication. so i follow following steps msvcmon -anyuser -tcpip on command prompt and see the message *Msvcmon will timeout and exit in 15 minutes* Waiting for Connections - everyone is allowed access i start VS.Net and open the solution for the module to debug.on Tools menu i click Debug Process and select TCP/ID (native only) from transport.and select the process and click attach. and I Get an Error "Attaching to a process in a different terminal server session is not supported on this system. Try remote debugging to the machine using ...Show All
Visual C# :(((((( I dont understand delegates ))))))):
Please i already read and article about delegate i understand how to use them (a little bit) but i dont understand their scope, all articles talks just a liitle about what they are really ment to for using them... Please can anyone help me And if posible a small example... but more about their scope, and when to use them or when do u need a delegate.. PLEASE DO BE SHORT AT WORDS coz` i am very very noob in delegates and not much in c# Thank you all, Thanks a lot!!! Just a normal scope as everything else. Public for a public scope etc.. but you make a delegate normally just public when you use it for events. But the scope isn't diff ...Show All
Visual Studio 2008 (Pre-release) Generating wsdl:documentation from WCF
How do I generate wsdl:documentation in WCF In the .asmx world, I used [WebMethod(Description="Foo")] attribute. I would have expected something similar on the OperationContractAttribute. Interesting example. But for some reason it seams only to work in one direction on my machine. Adding comments to the wsdl works, but the extension seems to be ignored while generating a proxy from wsdl. Can you also tell me where in the code the comments should appear I’m making the following call: svcutil.exe http://localhost:8000/MyTestService wsdl /svcUtilConfig:IndiDocumentation.dll.config Antoine Sav ...Show All
Smart Device Development Retriving a file icon
Hello, please excuse me if I do such posts, I've searched the web to find easy way to load an icon file in c# and to insert it into listview, but I've not found any answer, anyone can help me Thanks in advance Paolo I am still not positive I know what you really want... see if this helps: http://www.opennetcf.org/PermaLink.aspx guid=342bde3d-eeba-4d78-9748-29eb89ee13bf If it doesn't please describe your end user scenario in more detail... Cheers Daniel ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Consuming XBox Live Stat Information?
I'm interested in consuming XBox Live Stat information. Is there anything up right now that Microsoft offers for me to consume a Xbox Live type of 'web service' Is this something that will be available with XNA It seems to me XNA will help game developers build games that communicate with xbox live to store game info/stats/scores, etc, but what about consuming this information from websites Will there be a licensing program for something like this if I wanted to do it Thanks, Ken have you looked at this, http://360voice.wetpaint.com/page/API , you might be able to get the information from the ...Show All
Visual Studio QuickStart Tutorials installation fails
Hi I have installed VS.NET 2005 VSTS Beta 2. I am now trying to install the QuickStart tutorials but it fails; the log is shown below. I have installed IIS and APS.NET 2.0 manually followed by IISRESET according to the Configuration Details document but the setup insists on attempting to reinstall ASP.NET 2.0 and failing. No instance of Visual Studio of any version has ever been installed prior to installing VS 2005. I am using Windows 2000 Pro SP4. Any suggestions Thanks Craig 11:02:00 26 May 2005: ------------------------------------------------------------------------------------------------- 11:04:39 26 May 2005: [Begin Samp ...Show All
SQL Server using AJAX
Hi, For a particular application in mind I intend using AJAX to directly access a SQL procedure/ web-service preferably bypassing IIS (since it may act only as a pass-thru) using XMLhttp. Two questions, Does SQL2005 provide access to procedures over http (I read it somewhere) w/o IIS Can I store some of my javascript logic in a BLOB and access it over http to rewrite part of a page any info will help. thanks, R Yes, SS2005 does support HTTP endpoints without IIS, if you're running Windows 2003 Server. But in my opinion you're asking for trouble if yo ...Show All
Windows Forms application.run
I can't understand what does Application.Run method really do. It load a form, but how can I reference to this form after that If I create a new instance of the form in main sub and then I pass it to Application.Run, I have the form loaded but the object created in main sub is already been destroyed... Many thanks Cold not ...Show All
Visual Basic Strange datagrid paint oddity
Hi there, I have a datagrid which is populated but will be cleared when the system goes into what I call a "modification" mode, which is just database storage. I clear the grid by setting the datasource property to 'Nothing' and also by calling the databindings.Clear() method. The outcome is as expected, the grid is empty EXCEPT when the user has highlighted/selected a cell just before the grid was cleared...in which case the grid clears fine but leaves the selected cell. This looks absolutely terrible and unprofessional having this cell floating in the middle of nowhere on an empty grid. I got a workaroun ...Show All
Windows Forms AutoToolboxPopulate not working
Hi One of the great things I liked when beta testing VS 2005 was the AutoToolboxPopulate feature that would populate a special tab in your solution toolbox whenever you create a new Control or Component. The feature seems to still be there (seen it in the Windows Forms Designer UI options tab) but it is not working properly. Whenever I build my app, the controls built in are not showing up in the toolbox. Is it related to the fact that I create simple classes files instead of custom control files (which at the end are just source code files) Thanks Amadrias I received a response from Microsoft the other day ...Show All
