这样试试看:)hRes=FindResource(ins,(LPSTR)IDR_GBTOBIG,RT_RCDATA);//IDR_GBTOBIGFROM MSDN:ResIf the high-order word of the lpName or lpType parameter is zero, the low-order word specifies the integer identifier of the name or type of the given resource. Otherwise, those parameters are long pointers to null-terminated strings. If the first character of the string is a pound sign (#), the remaining characters represent a decimal number that specifies the integer identifier of the resource抯 name or type. For example, the string ?258?represents the integer identifier 258.
解决方案 »
- 双缓冲+ScrollView,拖动滚动条的时候能看到残影,好像是重绘赶不上拖动速度
- ADO连接数据ACCESS数据库出错
- 获得窗口大小出问题了****
- 请问怎么播放声音文件(.wav; .avi)
- 新手,谁可以给我一份英文版的"Win32多线程程序设计"和"windows核心编程"
- GUIDGEN.exe如何运行?(很低级)
- 求最简单的得到某进程连接目标IP的地址[求助]
- 通過哪個Windows API 能獲得本機網卡的物理地址?
- 请教关于CtreeCtrl的问题,望解答!谢了先
- 求助:在msdn中的mfc的一个例子问题?
- 向extern dllimport dllexport __declspec等等 象这样的标志有很多,可是这些标志 到底是什么意思! 有什么用 在那里有比较详细的介绍。谁有比较好的文档!
- 怎么,又是他,还是那个一点编程程序不懂的家伙,它来干什么?以给人家当专家!还是那道题!?
我试过了,hRes还是NULL。
我现在就是不知道怎么调用dll中定义的资源??
hRes=FindResource(ins,"GBTOBIG",RT_RCDATA);//IDR_GBTOBIG
hGBTable=LoadResource(ins,hRes); //!!!!!
pGBTable=(LPWORD)LockResource(hGBTable);