2012-01-06
展开全部
原型:
int WINAPI icePub_getIconFromfile(char *strFilename,char *strIconFilename)
输入:strFilename 带图标资源文件名(DLL,EXE…)
strIconFilename icon图标图像文件名(.ico)
输出:
VC sample代码:
typedef int (WINAPI ICEPUB_GETICONFROMFILE)(char *strFilename,char *strIconFilename);
ICEPUB_GETICONFROMFILE *icePub_getIconFromfile = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_getIconFromfile = (ICEPUB_GETICONFROMFILE *)GetProcAddress(hDLLDrv, "icePub_getIconFromfile");
}
icePub_getIconFromfile("E:\\icePubDll.dll", "E:\\a.ico");
icePub_getIconFromfile("E:\\iceIpCheck.exe", "E:\\b.ico");
if(hDLLDrv)
FreeLibrary(hDLLDrv);
VB sample 代码:
Private Declare Function icePub_getIconFromfile Lib "icePubDll.dll" (ByVal strFilename As String, ByVal strIconFilename As String) As Integer
Dim a2 As Integer
a2 = icePub_getIconFromfile("E:\icePubDll.dll", "E:\a.ico")
a2 = icePub_getIconFromfile("E:\iceIpCheck.exe", "E:\b.ico")
int WINAPI icePub_getIconFromfile(char *strFilename,char *strIconFilename)
输入:strFilename 带图标资源文件名(DLL,EXE…)
strIconFilename icon图标图像文件名(.ico)
输出:
VC sample代码:
typedef int (WINAPI ICEPUB_GETICONFROMFILE)(char *strFilename,char *strIconFilename);
ICEPUB_GETICONFROMFILE *icePub_getIconFromfile = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_getIconFromfile = (ICEPUB_GETICONFROMFILE *)GetProcAddress(hDLLDrv, "icePub_getIconFromfile");
}
icePub_getIconFromfile("E:\\icePubDll.dll", "E:\\a.ico");
icePub_getIconFromfile("E:\\iceIpCheck.exe", "E:\\b.ico");
if(hDLLDrv)
FreeLibrary(hDLLDrv);
VB sample 代码:
Private Declare Function icePub_getIconFromfile Lib "icePubDll.dll" (ByVal strFilename As String, ByVal strIconFilename As String) As Integer
Dim a2 As Integer
a2 = icePub_getIconFromfile("E:\icePubDll.dll", "E:\a.ico")
a2 = icePub_getIconFromfile("E:\iceIpCheck.exe", "E:\b.ico")
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询