Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with WriteFile
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00841292
Message ID:
00841366
Views:
18
Thanks, Anatoliy. That got it going!

>Hi Chris,
>
>If lcVal is of character type then you must change the WriteFile declaration. Currently you declare lpBuffer as INTEGER.
>
>Should be:
>
>DECLARE INTEGER WriteFile IN kernel32;
>	INTEGER   hFile,;
>	STRING  @ lpBuffer,;
>	INTEGER   nBt2Write,;
>	INTEGER @ lpBtWritten,;
>	INTEGER   lpOverlapped
>
>And lcVal should be passed by reference.
>
>Check this link:
>http://www.news2news.com/vfp/?function=301
>
>Unfortunately :( all examples with the WriteFile require memvership.
Previous
Reply
Map
View

Click here to load this message in the networking platform