visual-c++

Macros and Visual C++

I'm trying to get a better understanding of what place (if any) Macros have in modern C++ and Visual C++, also with reference to Windows programming libraries: What problem (if any) do Macros solve in these situations that cannot be solved without using them? I remember reading about Google Chrome's use of WTL for Macros (amonst other t...

How to go about to designing an interface like the following

I have Visual C++ 6.0 and Visual C++ 2005 but have never programmed tried programming something like the picture here below... Can anyone tell me what would be involved in creating a similar GUI ? Do I use placeholders for the top toolbar and the same for the two sections (local computer and FTP servers) ? http://www.flickr.com/photos/1...

vc++ install creator

VC++ 6.0 Project After Completing my project i created the project EXE ,using Create Installer, But the problem is without vc++ 6.0 software the EXE project it will not execute , it shows error: This application has failed to sart because MFC42.DLL has not found,Re-installing the application may fix this. When i insatll vc++ 6.0 sof...

Port GNU C++ programs to Visual C++

How do you port C++ programs with makefile made from GNU C++ in Linux to Visual C++? ...

multiquoted string in .rc2 file, VC++

I was building a VC++ project and i happened to have data some thing like inside Resources.rc2 file "My data contains "multiple quoted string" and also symbols like "<" ">" "\"" It seems Quotes and <, >, and \ are needed to be escaped. I'm getting error RC2104 upon compiling with RC.exe in VS08. It terminates the string on first occur...

What is event logging? and how do I write an event log file?

What is event logging? and how do I write an event log file for an application? I want to log all the activities of the application including when it uses a .dll, etc. and also show information of the application. ...

How to make project exe,how to include all runtime dll files

How to include the windows runtime dll files in setup project. without vc++ 6.0 software in the machine the project must execute. or give me the hint how to make a the project setup(EXE) in vc++ 6.0 ,i am using create installor, ...

generate exe file

hi, i have developed application in visual c++ 6.0,i have do exe of that applicatio,i have done by using icnt.exe(install creator),but when i run my application exe file on other system which does't have the vc++ software it's showing dll files are missing,how could than i downloaded the dll files again it is asking other dll's files.i w...

Help! error C2040: 'HWINEVENTHOOK' : 'DWORD' differs in levels of indirection from 'HWINEVENTHOOK__ *'

I'm compiling my application on a new box (vista 64) and now it doesn't compile anymore. The compiler gives me the error in the title. The problem seems(?) to be that HWINEVENTHOOK is defined twice in windef.h #if(WINVER >= 0x0400) DECLARE_HANDLE(HWINEVENTHOOK); #endif /* WINVER >= 0x0400 */ and then in winable.h it's #if WINVER < ...

"Breakpoints cannot be set and have been disabled" Problem

if i add Breakpoint in a vc++ 6.0 project ,if i start debugging ,then it display error message "One or more breakpoints cannot be set and have been disabled , Execution will stop at the beginning of the program" and it shows disassembly window. so what kind of problem it is plz any body help me how can i add breakpoint and start th...

How to add a conditional breakpoint in Visual C++

I want to add a breakpoint condition to my code in VC++ Express 2005, so that the breakpoint only triggers if a local variable meets a specified criteria. e.g. bool my_test(UIDList test_list) { foo(test_list); bar(test_list); // I have a breakpoint here, but only want it to trigger if test_list.Length() > 0 print(test_list);...

How to use Microsoft C++ compiler with NetBeans?

I was wondering whether it's possible to use Microsoft's C++ compiler and linker with NetBeans IDE? If so, what's the best way of doing it. P.S. I'm not interested in Mingw. EDIT: Is it possible to get NetBeans to do error parsing (so that I can click on error and have NetBeans open the right file), intellisense, etc? I know NetBeans c...

Linker problems after switching to VS2005 from VC6 (LNK4099)

Hi, I ported one of my old projects to VS2005 and am having linker warnings such as xxxxx.lib(xxxxxxxx.obj) : warning LNK4099: PDB 'vc60.pdb' was not found with ...; linking object as if no debug info Now, I've tried rebuilding the project but the warnings won't go away. Is it really supposed to be looking for vc60.pdb and not vc8...

Visual Studio/C++: How to turn off certain first-chance exception debug messages?

When I execute my C++ code (which uses the CGAL library) under debug mode, I see a lot of debug messages in the Output window about a first-chance exception CGAL::Uncertain_conversion_exception. I am aware of what a first-chance exception is. Now, how do I turn off the display of debug messages for this one kind of exception (CGAL::Unce...

Visual C++: How to disable specific linker warnings?

I'm using a library from CGAL which during the linking stage of my code compilation produces a lot of linking warnings of this form: warning LNK4099: PDB 'vc80.pdb' was not found with 'gmp-vc80-mt-sgd.lib' or at 'vc80.pdb'; linking object as if no debug info How do I turn off this specific linker warning under Visual C++/Studio 2008? ...

VC++ : How to prevent esc from closing a dialog box (not mfc)

How could I prevent esc from closing a dialog box? I searched for this topic, but all I found was for MFC (You can overwrite PreTranslateMessage function in MFC). but my program is written in Windows API, not MFC. I tried to catch all Keyboard messages in Dialog procedure, but none of them works. I also tried using subclassing in dialo...

Removing a control in Visual C++ 2005 (MFC)

I have a MFC dialog in Visual C++ 2005, (MFC Application) and I have added several controls to it. But Visual Studio has no option for deleting a control if I no longer need it. Is there any easy way to do that except modifying all the code where a reference to the control appears? ...

Getting Started with OLE - What's a good learning project choice?

I suspect that I will shortly have a need to write an "integration" library that will need to call an OLE object on Windows from Java. I have done Java to C/C++ integration on windows before (using C/C++ and JNI) - so I'm not new to that part of the equation. However; I'd like to try out writing a C/C++ wrapper around an OLE object to ...

What is the best way to attach a debugger to a process in VC++ at just the right point in time?

When debugging, sometimes you need to attach an already running process instead of just starting the application in a debugger. It's common for myself to put in a Sleep() or MessageBox call, so that it's easier to attach a debugger. I worry that some of these may be committed eventually to source control. What is the best thing to do...

How can I link against the debug/release libraries automatically in VC++ 6.0?

I am trying to maintain a program written 5 years ago in VC++ 6.0. It uses our 'common' libraries. The trouble I have is that it either links against the debug version of these libraries or the Release version, depending on whether I have the [Directories] for [library files] set to "common/debug" or "common/release" in [Tools]->[Options...