On Thu, Sep 11, 2003 at 06:09:58AM +0900, thierry wilmot wrote:
| a well works code in static lib :
| 
| 	freopen("stdout.txt","w+",stdout);
| 
| Does not work in dll mode, cause some unobvious Windows reasons a dll 
| have it own std streams, and if your freopen() streams in .exe, they 
| will not be redirected in the msvcrt-ruby18.dll

Hello Thierry,

In my experience, the results you describe above occur when you mix
different C/C++ runtime libraries (which is far too easy to do
accidently IMO).

Take a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkintro/sdkintro/mixing_library_types.asp

Best regards,

-- 
Zane Dodson
zdodson / zdodson.com