Just tried it on a crappy PIII with W98 and it didn't work

Kernel.dll: AttachConsole was missing.

It's obvious that its not a bug in your app but a missing feature in the W98 kernel. It's very old so dont bother.