Russell177576's Q&A profile
Visual C++ Problems compiling C++ Visual Studio 2005
Hi! I have a large C++ unmanaged application which I compile and run perfectly using Visual Studio 2003. Now, I wanto to compile and run it using Visual Studio 2005. When I compile it in release mode everything works fine, but I get about a thousand comiler errors when trying to compile it in debug mode. All of these compiler errors appear in files that belong to Visual Studio 2005 such as stdlib.h, cstdlib.h,etc. I would appreciate very much s ...Show All
Windows Forms Groupbox help
Hello, I have a windows form which has a groupbox control that contains several objects. I would like to create several instances of this object at runtime. In the "Windows Form Designer generated code" we will stuff like... Friend WithEvents gbRan ...Show All
.NET Development How to keen network connection active indefinitely
Hi, I am developing a program (using TcpListener class) to listen for data from a particular client. Client used to send data once in a while (say once in 30 minutes). Once connection is established, i want to keep it active indefinitely. Kindly let me know hoe to achieve it. Thanks & Regards, kalai Hi, I have understand better and solved it. Thanks for your help With Regards, kal ...Show All
.NET Development System.Threading.Monitor.Enter (under the hood)
What do the threads that are locked out do when they are locked out And does the Sleep call help get { if(dsUsers == null) { if(IsdsUsersLocked) System.Threading.Thread.Sleep(50); lock(UsersPadlock) { if(dsUsers == null) { IsdsUsersLocked = true; dsUsers = (3 sec call to the database server accross heavy network traffic); IsdsUsersLocked = false; } } } return dsUsers; } The sleep call appears to help when dealing with 100 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX7 SDK Lost Forever?
I am very distressed at the moment. I simply cannot find the last release of the DX7 SDK anywhere ! I may just be ignorant as to where to find it on MSDN Downloads but I just can't find it anywhere. Anyone who knows where I could find a download of that priceless treasure please let me know. We only support the last 3 releases of the DirectX SDK (currently the June, August, and October 2005 releases). DirectX 7 became an unsupported ...Show All
Visual C# How to write the code automaticly into the InitializeComponent?
I make some component and controls in the my toolbox when I drag them to the form, i hope VS can write the code into the InitializeComponent automaticlly,just like I drag a VS button in the form. How to archieve this pls give me some idea Thanks VS sets the properties of you custom control as it does it with the built-in .net controls. They are added if the properties have a default value or if you change a property within ...Show All
Windows Forms How can show the many instances of form opened in 'window' menu like in MSword?
In MSword, if I open five documents, the window menu shows all the five, and when I click the one, that instance opens. How can show the many instances of form opened in 'window' menu like in MSword Any web pages, clue or sample would be appreciated. Thanks, Jil. Coooooool! It is working, great help.Thanks a lot KiddKane ...Show All
Visual Studio 2008 (Pre-release) Accessibility of Window components
hi all, i have a window 'mainwindow', with its components in its xaml file. this window contains a textbox, which i want to access from another class. 'mainwindow' is initialized at program start, so i think there has to be an object of this class available for another class. but if i try to do something like this: mainwindow_textboxname.Text = "sometext"; i get the following error msg.: 'An object reference is required for ...Show All
Visual C++ BUG under Multithread Compilation
Hello there, I built a project which has an annoying problem. The DEBUG version works fine and the release version also works if I choose DEBUG Multithread as runtime library. However, it doesn't work if Multithread runtime library is used instead. I followed the code and found that release method of objects doesn't work. Can anyone give some hint why this happened Michael Sometimes bugs like this aren ...Show All
SQL Server run a dos command?
Hi all, I am just wondering is there a way to run a dos command in the stored procedure Please fill me in on how to go about doing if is there is a way. If this is not the correct forum to post this question, please let me know. Thanks in advance. Daren Hi faren, you can open up a shell with XP_cmdshell and execute commands via passing the command as a paramter: EXEC MASTER.XP_CMDSHELL 'dir C:\' HTH ...Show All
Visual C++ CFrameWnd::OnSetPreviewMode ASSERTs in VC 2005 but not VC 6.0
I have a VC++ 6.0 MDI project that uses a class derived from CPreviewView to provide some mildly enhanced Print Preview functions. The class is invoked according to the MSDN documentation by calling DoPrintPreview. In Visual Studio 2005 the program asserts in Debug mode at the last line of this fragment from winfrm.cpp: void CFrameWnd::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState* pState) { ...etc... if (bPreview) { // Ente ...Show All
SQL Server Why 2005 is missing PIN TABLE?
I am shocked to read this document... http://msdn2.microsoft.com/en-us/library/ms144262.aspx DBCC PINTABLE, DBCC UNPINTABLE >>> No replacement How are we gonna use our memory * I am confused.... *the way I like What additional capabilities do you feel that being able to force a table to stay in memory brings to the product If a given table's pages are " ...Show All
Visual Basic Strange ListBox.Items IndexOutOfRangeException
OK.. I'm building a plumbing company's job tracker. On each Job there can be multiple plumbers and each of those plumbers might have one more more invoices attached to a job. I've included the image URLs incase they don't show up correctly First I add a few plumbers and invoices... (http://hillcrestplumbing.com/VBIssues/Step1.JPG) Then I remove one plumber and his attached invoices... (http://hillcrestplumbing.com/VBIssues/Step2.JPG) Then when I ...Show All
Visual Studio Team System How to get test result through code.
Hi, I have created several Unit tests to test my connector application. I create an xml test result file through code. I want to capture individual Unit test results (Pass or failed) in some variable so that I can populate the Test Result column of my XML file. Can I get the result in MyTestCleanup() method or is there any other work around possible Regards, Huzefa ...Show All
Software Development for Windows Vista decoupled hosts and getting list of pending workflows
Team, The Scenario: I need a workflow to be able to start in one application and persisted there (sortof acting like a queue) and then for a second application (could be in different data center) that can pick the workflow up out of the persistence db and continue its processing. Think of a web service that simply receives a document that will need to go through an extensive workflow and needs to start the workflow, but will not have anyth ...Show All
