how to make a win32 dll with VC++ express

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?
 
L

Lloyd Dupont

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top