• Welcome to Valhalla Legends Archive.
 

Writefile API problem

Started by Blade, August 02, 2004, 11:27 PM

Previous topic - Next topic

Banana fanna fo fanna

The fact of the matter is, you would've saved more developing time from learning how to use WriteFile and actually typing it, and also saved more maintenence time, than its worth in the very slight speed increase.

o.OV

1. The variables fileDB, lngRead, and DBdata pointless in your sample code

2. You can't pass a string variable directly to an API. You are suppose to use ByVal.

3. In your sample code you aren't even using the OVERLAPPED structure. You should just pass a NULL. Use of OVERLAPPED structure for Writing to a file is like APPEND in VB. Use of a NULL is like OUTPUT.
If the facts don't fit the theory, change the facts. - Albert Einstein