I need to use Visual Studio 2005 (C++) on my new laptop - a Sony Vaio with Windows 7 64bit..
I don't need to develop for a 64bit environment, my work is all 32bit, so how can I be sure that I can still develop/debug/test for a 32bit target environment using VS2005 on a 64bit machine....?
What's the best option:
1) Just install VS2005 ...
I don't mind most of the way that VS2005 auto-indents (or auto-formats) my C++ code, but certain items I don't want it to automatically indent. Like #define statements for example. It takes them and shoves them all the way to the left side of the screen, no matter how deep into my scope I type them. That's really really annoying.
Is the...
I have searched through internet & found that there are no any direct method that disable nodes of CTreeCtrl control.
check one post at http://www.ucancode.net/faq/MFC_CTreeCtrl-CListCtrl.htm & also on codeguru.com but not clear about how to disable node of CTreeCtrl.
...
Hi,
I'm using VS 2005 and .NET framework 2.0 SP2 to build an application with a datagridview in it. I'm using Microsoft Word 11.0 Object Library to do the spelling checker on one of the field in datagridview. When it detected a spelling and grammar window would pop-up open on top of the datagridview.
The problem I got was when I moved ...
I have an unmanaged C++ project that uses a third-party .NET dll. It builds fine on one machine, but not on another--the IDE can't find the class definitions.
I ran RegAsm.exe TheLib.dll /codebase /tlb:TheLib.tlb, and the registry entries on the two machines match. That is, even though the IDE says that TheLib.Function() is undefined,...
i want to create a new registry entry and set current system time into registry.
How can i implement it using C++
...
Hi,
In my visual studio project (C++), when i copy a method(meth1) of a particular scope say 'scope1' and paste it in the same code area, it is getting pasted in General Scope.
i.e I want to add a method into a particular scope but when i try it is getting added in general scope. How can i solve this?
For eg:
There is an existing metho...
I have Visual Studio 2005 Pro and VS 2008 Pro installed. I think the VS 2008 installation gives me the MS Windows SDK for VS 2008 headers and libraries.Do i need to install Windows SDK for Windows 7 and .net framework 3.5? I have a version 5.0,6.0A already in
C:\Program Files\Microsoft
SDKs\Windows
...
During debug mode or while I am doing testing, I need to print lots of various information, so i use this method:
#ifdef TESTING
// code with lots of debugging info
#else
// clean code only
#endif // TESTING`
Is this a good method, or is there any other simple and elegant method ?
But this way, I am repeating the same code in two pla...
I guess prety much everyone who does a lot of debugging have a handy macro in Visual Studio (with shortcut to it on a toolbar) which when called automatically attaches to a particular process (identified by name).
it saves a lot of time rather than clicking "Debug" -> "Attach to the process ...", but it only works if one is running a si...
Is is possible to get a callers graph for overloaded operators?
I have a simple struct with a natural ordering which I have represented by overloading the relational operators. Looking back through the code, it appears that I made a mistake in defining operator >. I had set the greater than to simply return the negation of operator < (t...
Hello,
I have a Visual Studio 2005 solution. Every time I try to run the startup project (C++), the project gets build again, although I did not make any change.
How can I get the normal, sane behaviour, where projects get built only when needed?
How can I debug the problem further?
Thanks,
...
I'm rather new to coding so I'm sure this is fairly easy, but I have not been able to figure this out. I'm building a report in reporting serivces, sql 2005. I have 4 tables: people, event log, program enrollment and program info. I have clients that could be enrolled in numerous programs. I need to be able to find a client's first enrol...
I'm running this C# code in Visual Studio in debug mode:
public class MyHandlerFactory : IHttpHandlerFactory
{
private static Dictionary<string, bool> myDictionary = new Dictionary<string, bool>();
static MyHandlerFactory()
{
myDictionary.Add("someKey",true);
myDictionary.Add("someKey",true); // fails due to duplicate key
...
Hi all
I've searched up and down Google for others with a similar problem, and while I can find the error I don't think that other people have the same base problem that I do.
Basically, I had to create a project for a unit-testing environment in order to run this test suite.
First, I add my original C file, compile, and then a test f...
I have a C# Service that is calling a C DLL that was originally written in VC6.
There is a bug in the DLL which I am trying to inspect.
After having a nightmare trying to get debug to work I eventually added the dll to the VS2005 solution containing the C# Service and added the necessary _CRT_SECURE_NO_WARNINGS.
The debug version of t...
If you want a dialog application, MSVC++ 2005 is OK, but when I create a SDI application I don't see any visual layout tools.
is this possible? And are there any better resource editing/mocking tools for MFC apps?
...
When I click the start button (with or without debugging) in Visual Studio 2005, it launches the stand alone IE. My default browser in VS is set to the internal one. Is this normal behavior?
When I do "View in browser", it does launch the internal one.
...
This one has had me stumped for over a year and seems really odd and really obscure. When I build my solution, it complains about a missing referenced DLL. When I rebuild it, the problem goes away. Whenever I do a clean this returns, i.e. have to attempt a build twice before it succeeds.
This is vague, but if warranted I can give a b...
Hi everybody,
I am wondering if it is possible to set VisualStudio IDE so it highlights private/protected/public variables of the class differently as well as change formatting on locals (i.e. variables that are either passed in or declared inside a function, like this).
I did not find any such options in the normal Fonts and Colors me...