Load images from DLL

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Manolo.
Originally posted by marlo
from Corruptionland
I can't help you. Only one question (Por favor, no pongas esta frase, yo soy español, pero me encanta Argentina).

Regards.
Manolo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

Load an image OR make a change in a gadget? Those are two different tasks. Could you be more specific?

Have a nice day,

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

Post by BackupUser »

Restored from previous forum. Originally posted by marlo.

El_Choni, if i make a DLL to load an image an put on
the window app that call the dll. Thanks for your ayuda

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

Post by BackupUser »

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:

Code: Select all

hBitmap = LoadImage(0, "myimage.bmp")
ProcedureReturn hBitmap ; I don't remember the syntax for DLL procedures, it's in the manual
El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by marlo.

Thanks El CHoni, pero el manual del PB es realmente una referencia , en mi opinion, de los comandos y funciones, realmente no ayuda mucho
a los que no somos programadores.

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

Post by BackupUser »

Restored from previous forum. Originally posted by geoff.

Pero es más fácil de entender para algunos de nosotros que el texto en esta página.

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

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

:)
Post Reply