Can't Reference Stderr from a DLL
Sergey Okhapkin
sos@prospect.com.ru
Mon Mar 17 14:51:00 GMT 1997
John Cerney wrote:
> Thanks for the input on the problem. I ended up puting in a impure_ptr
> initialization
> routine that is called by my main program before it uses any functions in
a
> DLL.
How did you initialize _local_ for a DLL _impure_ptr? Main program knows
nothing about it! The only way I see is to place reent_data structure to
cygwin.dll and modify fork() code to create a copy of it in a child
process...
> Have you had any luck exporting global data variables from/to a DLL?
Place var_name to a .def file, build a dll and import library. Now You can
access this global data - variable __imp_var_name contains the pointer to
var_name.
--
Sergey Okhapkin
Moscow, Russia
Looking for a job
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list