<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Miguel de Icaza wrote:<br>
<blockquote cite="mid1078844206.4507.33.camel@erandi.boston.ximian.com"
 type="cite">
  <pre wrap="">Hello,
  </pre>
</blockquote>
Yep<br>
<blockquote cite="mid1078844206.4507.33.camel@erandi.boston.ximian.com"
 type="cite">
  <pre wrap="">
Now, this might not be as helpful to others as you might thinkg, unless
they dlopen/dlsym every symbol they want to import (this is what we do
with Mono: every symbol we need has to be explicitly invoked).

  </pre>
</blockquote>
<br>
Yes that. But what if I dlopen From Linux a WineLib DLL. That also
exports some public Linux API.&nbsp; It will "wine_dll_register" on it's
initialization. This in turn will cause the loader to call the proper
LoadDll/GetProcAdress pairs for all Imported symbols in my DLL, hence
using Winebuild for the automation of the process. An Imaginable
sequence of events can be.<br>
<br>
- main <br>
....<br>
- program decides it needs a WineLib or Win32-DLL<br>
- Call wine-sharedlib.so to inject wine.<br>
- dlopen the WineLib and use its Linux API<br>
<br>
or<br>
<br>
- Have ready a Winebuild Import table (Myapp.spec.c)<br>
- main ( also not. can just be a shared library)<br>
-&nbsp; Call wine-sharedlib.so to inject wine. ( in a shared library this
can be on some Create or Init routine)<br>
- Directly call Import table symbols (present at link time from
Myapp.spec.c)<br>
<br>
Once you have LoadDll/GetProcAdress working, than there are tools that
can help automate the process. <br>
<br>
<pre wrap="">Miguel de Icaza wrote:
</pre>
<blockquote cite="mid1078844206.4507.33.camel@erandi.boston.ximian.com"
 type="cite">
  <pre wrap="">The global variable is gone;  All you need is the sample program that
Alexandre posted (and its Makefile)

  </pre>
</blockquote>
Please could you redo the all patch with wine-sharedlib.so source &amp;
makefiles &amp; a Little "call windows land" Demo application.<br>
I have tried to collect all that but got mixed up. And also don't
forget to submit a patch for a regression test that will warn if
something gets broken in the future.<br>
<br>
Free Life<br>
Boaz<br>
<br>
</body>
</html>