Hi,
(sorry if this post might occur two times, but I can't find my first
one from yesterday evening in this group)
I have a bigger VC++6.0 project which is successfully compiled into a
DLL. I had to combine this code with my one which worked fine for
itself. After integrating my code one into one of the classes the the
compiler threw errors. They disappeared after the compiler option
__STDC__ was removed. Apparently the larger project was build in full
conformance with the ANSI C standard. My code is C++ code (and can't
be rewritten), thus the errors when compiled with __STDC__ activated.
An additional __ANSI_CPP__ is defined in the DLL project as well, but
doesn't seem to harm or benefit to the build process of the combined
project.
The problem now is, that my DLL does compile without erros but doesn't
work when used by an EXE. It simply crashes. As a DLL has no console
output, how can I get some indication what goes wrong? How can I debug
a DLL with VC++? And most importantly: How can I integrate ANSI C and
VC++ in one project? Is there such a thing as guidelines, general
rules or special compiler settings?
Cheers
Chris