請問如何用代碼在本地機中查打文件, 並獲得它所以的路徑?
解决方案 »
- 关于怎么利用QUERY提取数据库内字段的内容再进行赋值呢?
- 急,急,急,急,急,急,急。请问谁用Dspack开发过网络播放器?
- 视频回调函数中的请教问题?
- [急!求助]关于字符串操作的问题
- 我装TurboPower Async Professional时遇到错误,请装过的指教,在线等。马上给分。
- 函数返回值的问题
- 如何控制图表TChart中的TLineSeries类型的曲线是否显示?曲线为动态,不能简单擦除
- delphi资料群:13767438把我这几年收集的delphi资料群视频教程和大家分享
- 如何实现用delphi完成Access数据库的备份
- delphi 中除了“TWebBrowser”有没有其它的可以浏览网页的组件?
- bde与odbc在使用上有什么不同?我觉得使着没什么分别呀。
- 如何屏蔽掉拖动事件?
LPSTR FindFileInTree(LPSTR szFile, LPSTR szDir, LPSTR szBuf, int cbBuf);FindFileInTree searches for the specified file in a directory and its subdirectories.ArgumentsszFileSpecifies the name of the file you are trying to locate.szDirSpecifies the top-level directory of the tree structure you want to search.szBufPoints to the destination buffer that will receive the path string.cbBufLength, in bytes, of the destination buffer.Return ValueThe return value is the full path of the first instance of the file. If the file isn't found, the return value is an empty string./////////////////////////////////////////////////////////////////
LPSTR FindFileUsingFileOpen(LPSTR szFile, LPSTR szBuf, INT cbBuf);FindFileUsingFileOpen locates a file by using the Windows FileOpen function.ArgumentsszFileSpecifies the name of the file you want to find.szBufPoints to the destination buffer that will receive the path string.cbBufLength, in bytes, of the destination buffer.Return ValueThe return value is the full path of the file. If the file isn't found, the return value is an empty string.