Re: How to Calling PE Dlls on linux??

2007-08-22 Thread trulyliu
Hi, Damjan Jovanovic Thank you tired of the answer to my questions. I carefully read the wine part of the code and development document, searched in mail lists, these days. And I got some inspiration from wine plugin API wiki page and wine loader's code. I am considering of an approach. Link

Re: How to Calling PE Dlls on linux??

2007-08-22 Thread trulyliu
The issue of the order of global C++ object's constrution has been metioned in wine development guid section 8.3.3.Starting a Winelib process For the first scheme, how can we made win_init as the entry of .init section. Implement like .strat() in preloader.c 2007/8/22, trulyliu [EMAIL

Re: How to Calling PE Dlls on linux??

2007-08-21 Thread Damjan Jovanovic
On 8/21/07, trulyliu [EMAIL PROTECTED] wrote: I have tried these code, It works well. Thanks a lot. Could I use gcc/g++ instead of winegcc/wineg++ ??? mplayer use gcc as it's complier? What's the mystery in it? gcc/g++ would give you the wrong ABI (eg. 4 bytes per wide char instead of 2

Re: How to Calling PE Dlls on linux??

2007-08-21 Thread Damjan Jovanovic
On 8/21/07, trulyliu [EMAIL PROTECTED] wrote: Can I made Arithmetic.dll.so ? And link it against my linux App? A library function runs in the context of the process that invokes it. A library doesn't have its own TEB/memory layout/exception handling that works independently of the process that

Re: How to Calling PE Dlls on linux??

2007-08-21 Thread trulyliu
2007/8/21, Damjan Jovanovic [EMAIL PROTECTED]: On 8/21/07, trulyliu [EMAIL PROTECTED] wrote: Can I made Arithmetic.dll.so ? And link it against my linux App? A library function runs in the context of the process that invokes it. A library doesn't have its own TEB/memory layout/exception

Re: How to Calling PE Dlls on linux??

2007-08-21 Thread Damjan Jovanovic
On 8/21/07, trulyliu [EMAIL PROTECTED] wrote: 2007/8/21, Damjan Jovanovic [EMAIL PROTECTED]: On 8/21/07, trulyliu [EMAIL PROTECTED] wrote: Can I made Arithmetic.dll.so ? And link it against my linux App? A library function runs in the context of the process that invokes it. A library

Re: How to Calling PE Dlls on linux??

2007-08-21 Thread Jakob Eriksson
trulyliu wrote: I have tried these code, It works well. Thanks a lot. Could I use gcc/g++ instead of winegcc/wineg++ ??? mplayer use gcc as it's complier? What's the mystery in it? AFAIK mplayer uses their own old version of wine they have adapted to mplayer. regards, Jakob

How to Calling PE Dlls on linux??

2007-08-20 Thread trulyliu
hi: I am sorry to disturb you with a question about calling PE Dll on linux. This is really an old question. I found the sameness issues in mail list. http://www.winehq.org/pipermail/wine-devel/2003-December/thread.html http://www.winehq.org/pipermail/wine-devel/2005-November/thread.html#41917

Re: How to Calling PE Dlls on linux??

2007-08-20 Thread Roderick Colenbrander
I have a PE Dll named Arithmetic.dll which exports a function, it's prototype is: void sort(unsigned int*, int num) The easiest way would be to use LoadLibrary/GetProcAddress to load the function from the library. That way you avoid linking to it which makes things more complicated. In

Re: How to Calling PE Dlls on linux??

2007-08-20 Thread Damjan Jovanovic
On 8/20/07, trulyliu [EMAIL PROTECTED] wrote: hi: I am sorry to disturb you with a question about calling PE Dll on linux. This is really an old question. I found the sameness issues in mail list. http://www.winehq.org/pipermail/wine-devel/2003-December/thread.html

Re: How to Calling PE Dlls on linux??

2007-08-20 Thread trulyliu
2007/8/20, Damjan Jovanovic [EMAIL PROTECTED]: On 8/20/07, trulyliu [EMAIL PROTECTED] wrote: hi: I am sorry to disturb you with a question about calling PE Dll on linux. This is really an old question. I found the sameness issues in mail list.