Loading a DLL

Hi I've seem to have hit a brick wall with dynamically loading things into my program, I want my program to find and include a file called "ScriptRetry" which is a dll file
1
2
3
4
5
#ifdef DLL_EXPORTS
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif  


This is a nice little feature of VC But here's where the brick wall is, when I load my DLL into my project I get a Linker error:

1>ScriptRetry.dll : fatal error LNK1302: only support linking safe .netmodules; unable to link ijw/native .netmodule

I've read up on 1302 and it tells me to turn my dll into a /clr:safe which I did and it now tells me that my macro (that I have shown above) will not compile under /clr:safe, please if anyone has any advice I would me more than happy to listen
Topic archived. No new replies allowed.