类似BitComet的预览功能是如何实现的

quboxue 2006-10-23 09:39:51
我使用ShellExecute打开文件,但是再往文件里写入的时候就出错了。
...全文
266 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
laolaoliu2002 2006-11-14
  • 打赏
  • 举报
回复
看看你调用后返回值是什么?然后对比一下下面的。
Return Value

Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. The following table lists the error values. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. The only thing that can be done with the returned HINSTANCE is to cast it to an int and compare it with the value 32 or one of the error codes below.

0 The operating system is out of memory or resources.
ERROR_FILE_NOT_FOUND The specified file was not found.
ERROR_PATH_NOT_FOUND The specified path was not found.
ERROR_BAD_FORMAT The .exe file is invalid (non-Microsoft Win32 .exe or error in .exe image).
SE_ERR_ACCESSDENIED The operating system denied access to the specified file.
SE_ERR_ASSOCINCOMPLETE The file name association is incomplete or invalid.
SE_ERR_DDEBUSY The Dynamic Data Exchange (DDE) transaction could not be completed because other DDE transactions were being processed.

SE_ERR_DDEFAIL The DDE transaction failed.
SE_ERR_DDETIMEOUT The DDE transaction could not be completed because the request timed out.

SE_ERR_DLLNOTFOUND The specified dynamic-link library (DLL) was not found.
SE_ERR_FNF The specified file was not found.
SE_ERR_NOASSOC There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable.

SE_ERR_OOM There was not enough memory to complete the operation.
SE_ERR_PNF The specified path was not found.
SE_ERR_SHARE A sharing violation occurred.
quboxue 2006-11-14
  • 打赏
  • 举报
回复
大家帮帮忙呀
quboxue 2006-10-31
  • 打赏
  • 举报
回复
大家帮帮忙呀
quboxue 2006-10-26
  • 打赏
  • 举报
回复
用ShellExecute怎样设置呢?
ppzine 2006-10-25
  • 打赏
  • 举报
回复
那个文件被独占了,所以出错
quboxue 2006-10-24
  • 打赏
  • 举报
回复
大家帮帮忙呀
quboxue 2006-10-23
  • 打赏
  • 举报
回复
我是用ShellExecute打开的,怎样释放呀?
zhucde 2006-10-23
  • 打赏
  • 举报
回复
打开并读取后,有没有立刻把文件指针释放?
quboxue 2006-10-23
  • 打赏
  • 举报
回复
我把合并分割后的文件,陆续向文件里写入,在写入了一段以后,就把文件打开,但是再追加的话就出错了
DentistryDoctor 2006-10-23
  • 打赏
  • 举报
回复
我使用ShellExecute打开文件,但是再往文件里写入的时候就出错了。


怎么打开的?出什么错误了?

18,357

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧