I'm used to make a DLL with GCC where it's rather simple (tag your function
with __decl(dllexport) andf that's it).
How do I do the same thing with VC++ express?
I try to show a friend how to use his legacy C library with .NET.
I rather do everything in VC++ for a change instead of compiling with
makefile & gcc.
In my project I plan to create a C++/CLR Winform project
And a 'native dll' project
I added an empty project which I set to be a library.
Now I know I should create things like .lib file and reference them in the
other project, but I'm not quite sure how to do that..
Any tips? clues? links? advices?
Lloyd Dupont - 19 Nov 2005 13:44 GMT
found it!
in fact it just works!
you just have to mark your exproted function with an infamous
DLLIMPORT/EXPORT define which depends on the ocntext...
> I'm used to make a DLL with GCC where it's rather simple (tag your
> function with __decl(dllexport) andf that's it).
[quoted text clipped - 12 lines]
>
> Any tips? clues? links? advices?