how to make a win32 dll with VC++ express

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

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?
 
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...
 
Back
Top