From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: Can't Reference Stderr from a DLL 17 Mar 1997 18:42:29 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <01BC332D.57BADC20.cygnus.gnu-win32@sos> Original-To: "gnu-win32 AT cygnus DOT com" , "'John Cerney'" Encoding: 22 TEXT Original-Sender: owner-gnu-win32 AT cygnus DOT com 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 AT cygnus DOT com" with one line of text: "help".