On 11 Aug 2003 15:13:18 -0700,
christian.graf@hitlabnz.org (Christian Graf)
wrote:
|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?
Since you are the author of the DLL it should be no problem to debug it,
just specify the .EXE as startup for your DLL in the debug options.
Alternatively you could build in trace output by using TRACE() / ATLTRACE() /
OutputDebugString in your DLL and use DBGViEW from
www.sysinternals.com
to check the debug output.
your exported functions in the DLL must bear non-mangled names by specifying
them being extern "C" if they are to be used by a C program, there are also some
rules what you can export to a C-program - check your online help.
anyway try posting in microsoft.public.vc.language or any other suitable
microsoft.public NGs for better help.
hth
Anders
--
ak @ workmail.com
A wise man washes his hands after he pees. A wiser man doesn't pee on his hands.