Connecting Tech Pros Worldwide Forums | Help | Site Map

how to make a win32 dll with VC++ express

Lloyd Dupont
Guest
 
Posts: n/a
#1: Nov 19 '05
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
Guest
 
Posts: n/a
#2: Nov 19 '05

re: how to make a win32 dll with VC++ express


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

"Lloyd Dupont" <net.galador@ld> wrote in message
news:u41FjqO7FHA.4012@TK2MSFTNGP14.phx.gbl...[color=blue]
> 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?
>[/color]


Closed Thread