K8055 DLL issue

I am reasonably new to C++ and have written a program for the K8055 using Microsoft Visual C++ 2008 Express Edition using a Windows Form Application but I am having trouble getting it to work with the DLL K8055D_C.dll

If I compile using /clr:pure I get the compiler error:

…\projects\robot\keen+\K8055D_C.h(43) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe :frowning:

If I compile using /clr it compiles and links but crashes immediately (unhandled exception due to an Access Violation) when I try to debug. It does not even get as far as the initial breakpoint. :confused:

Has anyone any idea what might be the cause of my problem?

Neil.

You need to go to your project settings and adjust the setting for “Common Language Runtime support” to “Common Language Runtime Support (/clr)”.

“It’s 5.50 a.m… Do you know where your stack pointer is?”

Being a newbie in here and an old assembly language programmer,
I find that signature very funny (good way I mean). Actually I don’t
know lol.

Better find out where your stack pointer is or before you know it you’ll be in all the wrong places