| Michael Wojcik 2004-09-28, 4:14 am |
|
In article <17f3052f.0409222333.599839b0@posting.google.com>, m_a_r_s_o_u@yahoo.com (marsou) writes:
>
> regarding the 2 different librarys issue - I then tried to use only
> _open(you are right I just accidentally didn't copy the underscore)
> but the result is the same
On Windows, _open is implemented in the C runtime library, so the
two-libraries issue remains. If your code is linked against one C
runtime and the Apache code is linked against another, then the
descriptors probably can't be shared.
In fact, they almost certainly can't, since it appears from the
Microsoft stdio.h that they're indices into the _iob array, which
will be private to each copy of the C runtime.
You'll have to ensure that your code is linked against the same C
runtime as the Apache code. This is a well-understood problem in
Windows development; I recommend consulting MSDN or one of the
Windows programming groups.
Note that the "depends" utility should be able to tell you which C
runtime you're using, and which one Apache is using.
--
Michael Wojcik michael.wojcik@microfocus.com
Pseudoscientific Nonsense Quote o' the Day:
From the scientific standpoint, until these energies are directly
sensed by the evolving perceptions of the individual, via the right
brain, inner-conscious, intuitive faculties, scientists will never
grasp the true workings of the universe's ubiquitous computer system.
-- Noel Huntley
|