Good afternoon
My friend i try but i cant.
Search around but find only the way with to add the dll as referense .Not like me this way .
This is the code i writte .i dont know if is correct ?
Dim hLibrary As Long, hFind As Long
Dim hGif As Long
hLibrary = LoadLibrary(App.Path + "\Flags.dll")
If hLibrary = 0 Then
MsgBox "Failed to load the specified library with error code " & Err.LastDllError
Exit Sub
End If
hFind = FindResource(hLibrary, "#111", "CUSTOM")
If hFind = 0 Then
MsgBox "Failed to find Resource with error code " & Err.LastDllError
Exit Sub
End If
hGif = LoadResource(hLibrary, hFind)
If hGif = 0 Then
MsgBox "Failed to load the specified resource with error code " & Err.LastDllError
Exit Sub
End If
this Files(Gifs) in Dll are Flags and add at runtime in imagelist and from there put in a listview .
I saw many ways how to load bmp from dll in another project .
if add the Flags in dll like Bmp then the dll Grow up .
thanks for the time
giorgos