Hi,

I saw thread regarding Bitmaps In DLL.But i face following problem...

I have the dll which contains only bitmaps, i should not include any class or functions other than that resource file.

So how to retrive the images from DLL now,
I am using the following code, but it returns long data type..no idea how to proceed next..

"LoadBitmap" is API

Dim hInst As Long, lResult As Long
Dim Img As Image
Dim resString As String * 255
IntLocation = 301
hInst = LoadLibrary("MyDLL.dll")
lResult = LoadBitmap(hInst, "301")
lResult = StrPtr(lResult)
Picture1.Picture = lResult

Pls Help me out...


Thanks
Harish