|
-
March 30th, 1999, 04:21 AM
#1
Help! I can't create a file!
I try to create a file with this code :
DWORD dwWritten;
HANDLE myNewFile;
try
{
myNewFile = CreateFile(newFileName,
GENERIC_WRITE,
FILE_SHARE_WRITE,
NULL,
CREATE_NEW,
FILE_ATTRIBUTE_NORMAL,
NULL);
WriteFile(myNewFile,
&pDouble,
myFile.GetLength(),
&dwWritten,
NULL);
CloseHandle(myNewFile);
}
catch (CDaoException* e)
{
AfxMessageBox(e->m_pErrorInfo->m_strDescription);
e->Delete();
}
But no file is created!!!
The compiler says there is no error and no warning.
Could anyone help me find what's wrong in the code?
Thanks a lot.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|