vc6

C++ - Visual Studio CRT

Hi, I'm writing a DLL for a very old program that was compiled using Visual Studio 6. This program exports some functions that return pointers to standard library containers, and I'm (unsurprisingly) running into problems when I attempt to do anything with them from my DLL, which is compiled under VS 7. The source code for the program i...

What are map files generated during compilation

Hi What info map file contain generated during compilation of project and how i enable /map option in makefile. Language : c++ compiler : vc6 ...

Can I use a C style library built with VC6 directly in VC9 project?

We use an internal library(developed by some other team) built with VC6 compiler. This library mainly contains C Style APIs. We have a plan to migrate to Visual Studio 9 compiler. Should I request for the library to be built with VC9 compiler? A more generic question, On which points ( may be name mangling, optimization etc) a DLL buil...

Problem using Nlog & VC6

I think it's probably my inexperience with .net, but I think I'm going to have to give up on my plan to use NLog instead of fixing our broken proprietary logging code. The plan was to introduce NLog then extend logging if we ever move to c#. I've called my own simple assembly code from VC6 before (get a pointer to the managed interface...

what is the wrong in this code(openAl in vc++)

hi>> how are you all? i need your help i have this code #include <conio.h> #include <stdlib.h> #include <stdio.h> #include <al.h> #include <alc.h> #include <alut.h> #pragma comment(lib, "openal32.lib") #pragma comment(lib, "alut.lib") /* * These are OpenAL "names" (or "objects"). They store and id of a buffer * or a source object....

How to declare IEEE mathematical functions like 'ilogbf' in MSVC++6?

Hi, Could someone please help and tell me how to include IEEE mathematical functions in MSVC++6? I tried both and , but I still get these errors: - error C2065: 'ilogbf' : undeclared identifier - error C2065: 'scalbnf' : undeclared identifier thanks in advance for your help, mk ...

How to read/write data into excel 2007 in c++?

How to read/write data into excel 2007 in c++? ...

RegisterClassObjects() Doesn't Find Classes To Register

I'm in the process of converting an application from Visual Studio C++ 6.0 to Visual Studio 2008 and am running into problems with ATL. I've been having a whole host of issues, but this is the first call that differs in return values between the two different compilers. The following line, when compiled with VC++ 6.0, returns S-OK. Wh...

Debugging a DLL from VS2008 in VC6

I am currently debugging a project in VC6 (slowly porting it over to VS2008). The project links to a DLL that I have produced in VS2008 with a Debug build. (I know - a strange situation to find myself in.) I need to debug the project in VC6 and step into the calls to the DLL. Even though I have the PDB alongside the DLL, VC6 still repor...

How to find & close all open file handles on a removable drive (before ejecting)

I'm trying to eject a (virtual) removable drive, and it fails because there are some file handles open, maybe explorer windows. What's the best way to get all the open handles to files on that drive and close them? Is it also feasible (within user-mode) to find any processes running off that drive, so I can warn the user with the proces...

Getting included header file path in VC++

Environment: I am using MS-VC++ 6.0, I include a group of header file with some data. The header files change often, so on every change I change the path setting and re-compiler A log file is generated based on the included header files For tracking of the header file from the log file, I wish to print the header file path inside the l...

ShellExecute hangs - waiting for response to DDE broadcast?

This problem is related to the Evil delay question, except that my delay is not in launching the application but in waiting for ShellExecute to return. I have a small dialog application (Win32, written in VC++ 6, running on WinXP) that spawns a worker thread which writes to a logging text file. The thread exchanges information with the m...

Visual Studio 6 : How to change the workspace file name?

When using VC++6 sp6, how can I change the workspace file name? The workspace directory contains three main files with the following file extensions. When I tried changing the filenames while preserving the respective file extension, I get a whole bunch of errors and warnings when I tried to recompile the projects contained in that wor...

What does msvc 6 throw when an integer divide by zero occurs?

I have been doing a bit of experimenting, and have discovered that an exception is being thrown, when an integer divide by zero occurs. #include <iostream> #include <stdexcept> using namespace std; int main ( void ) { try { int x = 3; int y = 0; int z = x / y; cout << "Didn't throw or s...

newbie: Determinate CRT lib used by library

I'm developing application using VC++ 6. I have a 3rd party DLL. This library compiled as Multithreaded DLL (/MD) and my application too. But I fail to link: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,stru...

Includes stdafx.h winsock2 redefinition errors

When I include winsock2.h, I get about 60 redefinition errors. I hunted around a bit a found some advice to include winsock2.h b4 including windows.h. I did that and that cleared up the errors. My problem and question concerns exactly how I should go about doing this. I did not explicitly include windows.h, it was done for me in stda...

VS2008 exe-VC6 dll interoperability

Hi folks, I heard somewhere that passing of wchar_t across VS2005 and VC6 is quite dangerous. I tried to delete memory which was allocated from VC6 dll from VS2008 exe, and it raised assertion. After referring http://stackoverflow.com/questions/1175330/bad-pointer-or-link-issue-when-creating-wstring-from-vc6-dll, i added one func in VC6...

How to debug with Visual C++ 6 on Windows 7 x64?

Surely the answer will be "you can't" or "use XP mode", but I'd like to know if it it possible. The issue I have is that whenever I debug some application and hit a breakpoint, when I stop the debugger the debuggee remains stuck. It can't be killed, I can't attach another debugger (it says it is already being debugged). It won't go away...

compiling in visual studio 2005 and visual C++ 6.0

Hello, What is the difference of creating a simple C DLL between using visual studio 2005 and visual C++. I saw that when creating it under studio also a manifest was created and I had some problems regarding deployment in another machine because of using side-by-side folder (when calling that dll form a C# application" How does the me...

Build error with VC6

When i build my Application in VC6 IDE,i get this error --------------------Configuration: all - Win32 PRO Unicode Release-------------------- The system cannot find the file specified. Error executing c:\windows\system32\cmd.exe. all.exe - 1 error(s), 0 warning(s) I dont have any custom build commands, and this error is particular t...