Page 1 of 1

Posted: Thu Jan 09, 2003 5:28 pm
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

Posted: Thu Jan 09, 2003 6:42 pm
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

Posted: Fri Jan 10, 2003 12:07 pm
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

Posted: Fri Jan 10, 2003 10:43 pm
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

Posted: Mon Jan 13, 2003 6:33 pm
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

Posted: Mon Jan 13, 2003 6:51 pm
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

Posted: Mon Jan 13, 2003 8:38 pm
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

Posted: Mon Jan 13, 2003 10:30 pm
by BackupUser
Restored from previous forum. Originally posted by freak.

:)