News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

write_disk_file

Started by Farabi, March 01, 2010, 06:53:04 AM

Previous topic - Next topic

Farabi

I cannot use write_disk_file each time I used OpenFileDialog. The error message is: "Cannot write a file that already opened".
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

MichaelW

If the file is already open, you could use the fwrite macro or call the API WriteFile function directly.
eschew obfuscation

Farabi

Quote from: MichaelW on March 01, 2010, 08:27:00 AM
If the file is already open, you could use the fwrite macro or call the API WriteFile function directly.

But, where is the handle?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

hutch--

Onan,

write_disk_file is for doing a complete operation in one go, if you need to have a file open and keep writing to it use the fopen or fcreate macros or the API calls they use and when you have finished use the fclose macro.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Farabi

Quote from: hutch-- on March 01, 2010, 10:35:28 AM
Onan,

write_disk_file is for doing a complete operation in one go, if you need to have a file open and keep writing to it use the fopen or fcreate macros or the API calls they use and when you have finished use the fclose macro.

I dont know what is wrong with my package, but after I used OpenFileDialog, read_disk_file is not working.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Farabi

Sorry miss typed again, after the dialog open the write_disk_file is not working.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"