Jay_'s Q&A profile
SQL Server Problem occur after rename the table name
I am developing a Mobile Application using vs 2005 and sql 2005 I have 1 table,after i rename it twice time,it was unable me to execute the SQL INSERT query....then i try to delete the table and recreate the table with the same name and the problem still cant resolve but after i create another table with diffrent name the sql query sucessfully exceute. May i know what its the problem,and how to solve ...Show All
Visual C# How can I cover the menu item's shortcut?
Supposed I have a form with KeyPreview=true and a menu item whose shortcut is CTRL+C. Add a Textbox on the form. When I select some text in the Textbox and press CTRL+C, the selected text just can not be copied because system just call the menu item's OnClick event handler. And then how can I copy the selected text via CTRL+C, that is to say, how can I cover the menu item's shortcut Onclick event handler in some particular situations Your& ...Show All
Windows Forms How can I make a big windows form?
hello, I'd like to be able to build a big windows form (higher than the height of the screen) with scroll bars . Is it possible . I'd like to have information on it (labels and stuffs from databases) and print it on an A4 page afterwords. I just don't know if this is possble to have a big form thanks very much for your help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Change Line width in Direct3D
Is there any simple way to draw a thick line in Direct3D In OGL one can simple set linewidth by call glLineWidth(). Is there a similiar method in D3D Thanks! Just by way of reference: ID3DXLine is the class you want to look into (See D3DXCreateLine() ), the ID3DXLine::SetWidth( ) function being the one of interest to you... hth Jack ...Show All
Smart Device Development Adding menus
I am new to visual c++2005. I use to work with embed visual C++ 3.0. The menu commands below seem to work differently in to two versions. ID_FILE_SAVE ID_FILE_SAVE_AS ID_APP_EXIT ID_FILE_NEW When I press the items with these ID’s, the corresponding function handles the message. But When I press them I observed changes between the old and new version as described below: If I press the save, if no file is assigned to the opened documen ...Show All
SQL Server Custom error messages
Some of our reports use a stored proc as the source for base data. The proc contains RAISEERROR statements to handle error scenarios. Is there a way in which I could display the message that is output from the RAISEERROR statements in the report Thanks ...Show All
Visual C++ stringstream causes memory link VC++ 2005?
This simple program seems to leak LOTS of memory when compiled in VC++ 2005: int _tmain( int argc, _TCHAR* argv[]) { for ( int i = 0; i < 100000; ++i) { ::Sleep(1); std::basic_stringstream<TCHAR> str; str << _T( "Current iteration: " ) << i; } return 0; } CRT: Multi-threaded debug or Multi-threaded I compiled and ran the same piece of code in VC++ 2003 and I don't see ANY leaks! Any ideas ...Show All
Visual Basic Newbie - Problem spawning a thread
Hi, I'm kind a new to this VS .net stuff. I'm building my first application in VB.net. It's a crystal report scheduler using multithread functionality. The program works fine on my machine, but when I deploy it, the part that suppose to spawn the thread doesn't work. Other part of the program works fine, but when it's time to spawn the thread, nothing happen. Any body got any idea Any help is appreciated. Thank you, Rudy Sorry, It ...Show All
.NET Development Inserting data into a access database
Hi, I want to insert a text value into an access database. The database is called Backup_db and the table within that database that I wish to import data is called Monthly_Backup_Data. I connect to the database by binding the data to a gridview. This is the insert command that I am using, the data value in the access database is a text value so I persuming that I pass the value as a string AccessDataSource1.InsertCommand = "INSERT ...Show All
Visual C++ Exporting const static data members to dll
Hello there, I am using VC++ 2003. I have a class somewhat like this: // C.h class __declspec(dllexport) C { public: const static float CVALUE; static void foo(); }; // C.cpp const static float C::CVALUE = 10.0f; void C::foo() { } When I attempt to call C::foo() from an external program using my dll everything is fine. When I attempt to access C::CVALUE I get a linker error like this: error LN ...Show All
Visual Studio Express Editions accessing button by name
I'm not very experienced with C#, so maybe I'm thinking the wrong way around to fix this. Suppose you have 20 buttons. They are positioned so they make a rectangle. When a user clicks a button, the button changes into a textbox. So far so good, I've coded this, and its functioning perfectly. Now the problem: The user can fill in 1 digit, and then the textbox changes back into a textbox, and the next button transforms into a textbox. My probl ...Show All
Visual C++ Error while compiling (C2664)
Hi, I have this piece of code which I am trying to compile in VS 2005. ///////////////////////////////////////////////////////// TCHAR * strGuid = NULL; UUID myUUID1; UuidCreate( &myUUID1); UuidToString( &myUUID1, &strGuid ); ////////////////////////////////////////////////////////////// This compiles OK in VS 6.00 but it gives an error in VS 2005 (The project setiings has _UNICODE & UNICODE defined). An ...Show All
Visual Studio Team System Continuous Integration with TFS Build?
Hi, For the build automation, can TFS Build perform Continuous Integration itself Or do I have to combine TFS Build with CruiseControl to get continuous Integration on a Team Foundation Server Yes, Team Build can perform CI. The Team Build team is putting together a more complete sample for CI, but you can find the sample that Doug Neumann, source control PM, used in his PDC '05 talk here on Buck's blog. It's by no means some ...Show All
Visual C++ Why AfxGetResourceHandle causes Asserts?
My scenario is somehow complicated but I try to simplify it: I have a CLR class libraray that wrapps some functionalities of a MFC dll. The MFC dll has a class with a method that calls AfxGetResourceHandle() method, when I use the corresponding method on the wrapper the Asserts are generated. The method is trying to get a handle of a resource that is defined inside the MFC dll, why I got asserts ..\Microsoft Visual Studio 8\VC\atlmfc\in ...Show All
Visual Studio Team System Distributed automation of non web applications
I need to use Team System as a framework to automate tests across multiple machines. These are not load tests or web tests. They would be basically the equivalent of Unit Tests, but on a larger scale. I want to launch the test suite from Team System to get the full value of the reporting and integration with the development environment, but the tests need to actually run on machines in a test lab. I'm sure I'm not the first to have this proble ...Show All
