On 5/22/07, ml <[EMAIL PROTECTED]> wrote:
Hi!

I have a third party library which is a Windows DLL. Is it possible to
use Wine to call its functions under Linux?
I tried a simple code

#include <library.h>

int main(int argc, char**argv)
{
  HMODULE dll;
  dll = LoadLibrary("atouch32.dll");
  return 0;
}

compiled successfully but runtime fails with "Segmentation fault".
Perhaps I missed some initialization.

I didn't found any examples of Wine API usage. Can anyone give me any clue?

You can't link a Linux applicaton to a Windows DLL. The project which
would allow you to do that is called the wine plugin API
(http://wiki.winehq.org/WinePluginApi), but it isn't written yet.

What you can do at the moment is write a winelib application, that is,
a Windows application compiled with winegcc which can use both Windows
and Linux APIs.

Thank you!

David

Damjan


Reply via email to