Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send text to standard out or STDOUT
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00163857
Message ID:
00164018
Views:
24
>Hi,
>
>This is a folowup to Evan and his message about using VFP for CGI programming.
>
>Well, I tried to use the Windows api to write text to standard out... but, so far no good... here is the code I used...
- snip -
Hi BOb,

The first thing I notice is that the declaration are wrong. Here are the correct ones:
DECLARE INTEGER GetStdHandle IN Win32API;
  INTEGER nStdHandle
DECLARE SHORT WriteConsole IN Win32API;
  INTEGER hConsoleOutput, STRING @lpBuffer,;
  INTEGER nNumberOfCharsToWrite,;
  INTEGER @lpNumberOfCharsWritten,;
  INTEGER lpReserved
DECLARE SHORT WriteFile IN Win32API;
  INTEGER hFile, STRING @lpBuffer,;
  INTEGER nNumberOfBytesToWrite,;
  INTEGER @lpNumberOfBytesWritten,;
  STRING @lpOverlapped
The DOUBLE data type that you used is a 64 bit floating point number as opposed to a 32 bit integer (DWORD).

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform