win32 API函数BOOL DeleteFile(
LPCTSTR lpFileName // file name
);
LPCTSTR lpFileName // file name
);
解决方案 »
- Clist的RemoveAll()函数速度很慢
- VC CHtmlView 插入图片标签问题
- 有没有办法向一个进程发送Ctrl+C消息?
- 如何让IE控件(CWebBrowser2)获得WM_RBUTTONUP的消息?
- 怎样在一个CListCtrl控件有选中一个item和没有选中时Enable、Disable一个按钮?
- !◎#???多个DLL文件相互调用??
- 一个简单的问题100分,马上给分
- 如何在程序中实现拨号和断线的功能?
- 如何使一个edit框在初始时显示一些信息?
- 请教ActiveX控件(.ocx)的注册问题,急!急!急!
- 请问怎样在access数据库中添加一个字段,用程序实现,ADO+MFC
- 映射---游戏中经常使用的技术!
The DeleteFile function deletes an existing file. BOOL DeleteFile(
LPCTSTR lpFileName // file name
);
Parameters
lpFileName
[in] Pointer to a null-terminated string that specifies the file to be deleted.
Windows NT/2000 or later: In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to nearly 32,000 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see File Name Conventions. Windows 95/98/Me: This string must not exceed MAX_PATH characters. Return Values
If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError.