Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send text to standard out or STDOUT
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00163857
Message ID:
00164018
Vues:
29
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform