Restored from previous forum. Originally posted by marlo.
How can i do to load an image or make a change on
a gadget from a DLL to an application that call the DLL.
Thanks for any help.
from Corruptionland
Load images from DLL
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
I think the DLL function should return a bitmap handle which could be then used by the app. If the app is PB, ImageGadget(....hBitmap) can be used for that, for example.
In the DLL function:
El_Choni
I think the DLL function should return a bitmap handle which could be then used by the app. If the app is PB, ImageGadget(....hBitmap) can be used for that, for example.
In the DLL function:
Code: Select all
hBitmap = LoadImage(0, "myimage.bmp")
ProcedureReturn hBitmap ; I don't remember the syntax for DLL procedures, it's in the manual
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm