Mail Archives: cygwin/2004/09/03/11:56:44
On Fri, 3 Sep 2004, Mike wrote:
> I use an application that allows the calling of external, user
> created DLLs. I have created these DLLs previously using Microsoft's
> VC++. Can I instead create the DLLs using gcc/cygwin?
Yes. See <http://cygwin.com/cygwin-ug-net/dll.html>
> I'm a unixhead from way back and don't like the Microsoft stuff. I much
> prefer to stick with what I'm comfortable with.
>
> If I can create usable DLLs, what things must I be aware of?
The bad news is that the main Cygwin DLL (/bin/cygwin1.dll) cannot be
loaded dynamically from Windows programs (using LoadLibrary). Therefore,
any DLL depending on it won't be dynamically loadable either.
The good news is that you can use Cygwin gcc to create MinGW DLLs and
programs, and those won't depend on cygwin1.dll, so you'll be able to use
them from Windows programs. They probably would be better anyway, because
Windows would pass Win32 paths, etc, when calling the exported functions.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -