Hello all,
The following PBDLL6 snippet should (or so I thought) write a text string if you run it
from a DOS window under Windows (98) -
Unfortunately it doesn't write anything, and just says 'Wrote 0 bytes'. Well, at least that
bit works
. Can anyone show me where I'm going wrong ?
Thanks in advance -
Paul
------------------
The following PBDLL6 snippet should (or so I thought) write a text string if you run it
from a DOS window under Windows (98) -
Code:
' 'Write a simple string to STDOUT ' #compile exe #dim all #register none #include "c:\pbdll6\winapi\win32api.inc" function pbmain() as long dim mBytes as long dim sText as asciiz * 10 sText = "Hello" WriteFile GetStdHandle(%STD_OUTPUT_HANDLE), sText, Len(sText), mBytes, ByVal %NULL msgbox "Wrote " & format$(mBytes) & " bytes" end function
bit works

Thanks in advance -
Paul
------------------
Comment