[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DLLs under Linux




> 	Does Visual C++ 6.0 suppoert dlopen()?
> 	How to create the .dso files with VC++?

Though Win32 doesn't have the dl* functions, it has almost identical
equivalents (similarly with threading and sockets).

LoadLibrary() replaces dlopen()

GetProcAddress() replaces dlsym()

if you have the documentation that comes with MSDEV these two functions
should be enough to get you started, it's very similar to dynamic linking
under unix. Just create a dll, load it, grab the functions you want and
off you go.

(Quite possibly you could find a compatability layer for dl* stuff if
you're interested in keeping the exact same source as unix, obviously
Cygnus has one).

Michael