数据库中存储图片路径时如何显示路径下的全部图片 50
展开全部
卤煮你好~这个需要程序来完成的,我不晓得卤煮用什么编程工具,所以就提供三个API吧
通过FindFirstFileEx和FindNextFile寻得所有图片的文件名,然后用数据流将图片显示出来,最后用FindClose释放句柄~
HANDLE FindFirstFileEx(
LPCTSTR lpFileName, // pointer to the name of the file to search for
FINDEX_INFO_LEVELS fInfoLevelId, // information level of the returned data
LPVOID lpFindFileData, // pointer to the returned information
FINDEX_SEARCH_OPS fSearchOp, // type of filtering to perform
LPVOID lpSearchFilter, // pointer to search criteria
DWORD dwAdditionalFlags // additional search control flags
);
BOOL FindNextFile(
HANDLE hFindFile, // handle to search
LPWIN32_FIND_DATA lpFindFileData // pointer to structure for data on found file
);
BOOL FindClose(
HANDLE hFindFile // file search handle
);
通过FindFirstFileEx和FindNextFile寻得所有图片的文件名,然后用数据流将图片显示出来,最后用FindClose释放句柄~
HANDLE FindFirstFileEx(
LPCTSTR lpFileName, // pointer to the name of the file to search for
FINDEX_INFO_LEVELS fInfoLevelId, // information level of the returned data
LPVOID lpFindFileData, // pointer to the returned information
FINDEX_SEARCH_OPS fSearchOp, // type of filtering to perform
LPVOID lpSearchFilter, // pointer to search criteria
DWORD dwAdditionalFlags // additional search control flags
);
BOOL FindNextFile(
HANDLE hFindFile, // handle to search
LPWIN32_FIND_DATA lpFindFileData // pointer to structure for data on found file
);
BOOL FindClose(
HANDLE hFindFile // file search handle
);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |