Hi Ron, > maybe 'msg2' is your problem? i don't see it defined... > > > WriteFile (stdout, msg2, length (msg), aux, nil); I tried to use CharToOem and OemToChar (so msg2) but got nothing better. Please read "msg" and not "msg2". []s, Fernando Lozano