This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Can't Reference Stderr from a DLL
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'John Cerney'" <j-cerney1 at ti dot com>
- Subject: RE: Can't Reference Stderr from a DLL
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Mon, 17 Mar 1997 23:45:48 +0300
- Encoding: 22 TEXT
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".