I'm following this tutorial on wrapping a .lib in a C++ DLL.
Right after I use the VS wizard to generate a Win32 DLL project, everything compiles just fine.
Then, following the tutorial, I substitute this VS-generated code:
DEMODLL_API int fnDemoDll(void)
{
return 42;
}
for this code:
DEMODLL_API int fnDemoDll(int a,int b)
{
return a+b;
}
When I then build, the VS 2008 SP1 IDE crashes.
Google turned up several hits for this type of crash, but nothing that seems to apply.
There is an entry in the event viewer related to the crash:
Faulting application devenv.exe, version 9.0.30729.1, time stamp 0x488f2b50, faulting module VCProjectEngine.dll, version 9.0.30729.1, time stamp 0x488f2e94, exception code 0xc0000005, fault offset 0x0003dd11, process id 0x1f80, application start time 0x01ca98d27f9c8b85.
UPDATE:
I recreated the project, compiled it was fine, changed
return 42;
to
return 43;
and VS crashed again.