visual-c++-6

error when convert project from vc 6.0 to vc 2010

i have successfully compile and build c/c++ project on visual c++ 6.0 to dll .But when i convert to visual c++ 2010 on windwos 7 64bit os it appear many error .source code is typedef struct { int _entID ; /* Entity ID */ int _recID ; /* Recode No. */ int _Nmbr ; /* 画像番号 0020:0013 */ int _Clmns ; /*...

Window creation failed - LoadFrame(IDR_MAINFRAME) Fails C++

I'm in the middle of upgrading some windows applications (Legacy Code) from VC 6 to VS2010. Most of the applications compiled and would run after cleaning up expected conversion errors, but I'm having a lot of trouble with this. Here is where LoadFrame() fails and the application exits. The error...

don't know how to use IShellWindows::Item correctly

I'm using VC6 on XP system. The following is my code. It runs perfectly on my computer, but on other computers it seems that pisw->Item(v, &pidisp) doesn't equals to S_OK. Now I'm trying to figure out what's wrong here IShellWindows *pisw; if (SUCCEEDED(CoCreateInstance(CLSID_ShellWindows, NULL,...

Linker problems after switching to VS2005 from VC6 (LNK4099)

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...

Check whether a Visual C++ 6.0 project did support unicode or not?

I need to know if a Visual C++ 6.0 project supports Unicode or not. How can I check that? If the project is compiled with Unicode support, then the preprocessor directive UNICODE (or _UNICODE ) will be defined. Testing to see if this is defined will give you your answer: #if defined(UNICODE) ||...

How to debug COM object in Visual Studio 6.0 that is created in an ASP page?

I have an old C++ COM component which has to stay in Visual Studio 6.0 format. I can't for the life of me figure out how to debug the code in the actual COM component. I'm able to build it in debug mode, add breakpoints and attach it to the dllhost.exe process, but the Visual Studio environment will...

User-Interface: Best way to toggle MDI frame's on-top status?

I maintain an MFC (VC6) MDI application that uses Frame Windows as views for a document. There is only one document at a time but there are several MDI-Frames each with a different view of the document data. Recently a request came up to be able to keep one of those frame windows on top of the...

How to figure out what value MSVC is using for a preprocessor macro

I'm attempting to use a /D compiler option on MSVC6 to define a string, but there's something weird about using double quotes around it. To debug this problem, it would be extremely helpful for me to be able to see what value the preprocessor is actually substituting into my code where the macro is...

Getting the length of an array. Compiler errors.

I've tried: template <typename T,unsigned S> unsigned getArraySize(const T (&v)[S]) { return S; } after Motti's answer https://stackoverflow.com/a/18078435/512225 but I've got this message: error C2265: '' : reference to a zero-sized array is illegal What's wrong with my compiler? I gave a look at...