open_port function problem.

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Fri Dec 19 10:49:42 CET 2003


From: "Joachim Durchholz" <joachim.durchholz@REDACTED>
> Actually, when I think of it, it's most likely that you're just using
> the stdin handle in the C program, which is always opened in text mode
> for you; you have to change its mode (not sure how to do this, you're
> probably in for an extensive search in MSDN).

That's an easy one :-)

Use from io.h
int _setmode ( int handle, int mode );

details at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_crt__setmode.asp

regards,
Vlad



More information about the erlang-questions mailing list