sivasankam
03-05-2001, 01:06 PM
Hello
I am having problem in Using FindResourceEx API.Can Anyone help me to solve this.
I would realy appreciate your help.
Here is my question
--------------------------------
Here is the sample code I am using to get data from a resource file which is in a dll.
Here, even though I am passing the id as "#1", I am getting data of different id.
Can anyone help me out.
dim strID as string
dim strType as string
strID = "#1"
strType = "#6"
exeHandle = LoadLibrary(RESOURCEDLL)
LangID = 1033
resHandle = FindResourceEx(exeHandle, strType, strID, LangID)
resData = LoadResource(exeHandle, resHandle)
res = LockResource(resData)
resLen = SizeofResource(exeHandle, resHandle)
If resData <> 0 Then
ReDim resBuffer(0 To resLen - 1)
MoveMemory ByVal VarPtr(resBuffer(0)), ByVal resData, resLen
Debug.Print resBuffer
End If
Thanks
Siva
I am having problem in Using FindResourceEx API.Can Anyone help me to solve this.
I would realy appreciate your help.
Here is my question
--------------------------------
Here is the sample code I am using to get data from a resource file which is in a dll.
Here, even though I am passing the id as "#1", I am getting data of different id.
Can anyone help me out.
dim strID as string
dim strType as string
strID = "#1"
strType = "#6"
exeHandle = LoadLibrary(RESOURCEDLL)
LangID = 1033
resHandle = FindResourceEx(exeHandle, strType, strID, LangID)
resData = LoadResource(exeHandle, resHandle)
res = LockResource(resData)
resLen = SizeofResource(exeHandle, resHandle)
If resData <> 0 Then
ReDim resBuffer(0 To resLen - 1)
MoveMemory ByVal VarPtr(resBuffer(0)), ByVal resData, resLen
Debug.Print resBuffer
End If
Thanks
Siva