If possible, I don't want to insert it into the wine tree, I want to leave it in the source tree of my program.
Is including it in the wine tree the only way to link with it?
-Steve
Jon Griffiths <jon_p_griffiths To: Steven Edwards steven_ed4153@yahoo.com @yahoo.com> cc: wine-devel@winehq.com Sent by: (bcc: Steve Lustbader/ANR/MS/PHILIPS) wine-devel-admin Subject: Re: WineLib and DLLs @winehq.com Classification:
09/12/2002 05:58 PM Please respond to jon_p_griffiths
Hi,
I'm writing a WineLib DLL that makes calls in my own Windows DLLs (not Wine's DLLs). I have the header files for those DLLs, and the Windows binaries for them. How do I link to them? Do I need to
wrap
them in spec files? What do I need to put into my Makefile.in?
look at tools/winedump. In spec mode it will generate everything you need to link to this dll - a makefile and dummy implementation, spec file and a script to insert it into your existing WINE tree (to link with). The README gives instructions for exactly this case (and some other more advanced ones).
Cheers, Jon
===== "Don't wait for the seas to part, or messiahs to come; Don't you sit around and waste this chance..." - Live
jon_p_griffiths@yahoo.com
__________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com
--- steve.lustbader@philips.com wrote:
Is including it in the wine tree the only way to link with it?
No, but it is the easiest. If you do the generation of the stub DLL you can build it outside of the tree with some Makefile hacking.
Another solution you see in the docs is to LoadLibrary() and GetProcAddress() but IMHO this is not the way forward...
Cheers, Jon
===== "Don't wait for the seas to part, or messiahs to come; Don't you sit around and waste this chance..." - Live
jon_p_griffiths@yahoo.com
__________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com