alexander569898

Hello,

Normally, debugging an DLL written in unmanaged code is no problem, but when i build the DLL with the /CLR compiler option and calling mannaged code, the Microsoft Development Environment comes with the message: "Unable to start debugging"

Changing "the type of debugger" from "Auto" to "Native Only" will get the application running, but i can't debug it.


Development environment:
Windows XP
Visual studio 2003
.NET Framework 1.1

Thanks, Alexander


#include "stdafx.h"

#include "dlltestclr.h"

#using "mscorlib.dll"
#using "system.windows.forms.dll"
#using "vision.dll"

BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{

return TRUE;
}


#undef MessageBox
__declspec(dllexport) int __cdecl VisionInit(HWND handle)
{
Vision::AnalyseGebied* analyseGebied = Vision::AnalyseIO::ReadFromFile("AnalyseGebiedConfig.xml");
System::Windows::Forms::MessageBox:Tongue Tiedhow(analyseGebied->Header->Copyright);
System::Windows::Forms::MessageBox:Tongue Tiedhow(analyseGebied->Header->Blabla);

return -1;
}







Code Snippet