The distribution of the system is easier, because the dll will only be a send an only time.
I need to know how to load the dll without losing the included resource in the program!
Function main()
Public hResc
.....
hResc := GetResources() // Main .RC file
SET RESOURCES TO ("EZ4SCR.DLL")
SET RESOURCES TO ("BWCC.DLL")
SetResource( hResc )
.....
return
Function Sub
SET RESOURCES TO "EZ4SCR.DLL"
DEFINE DIALOG oDlg
.....
oDlg:bStart := {|| SetResources( MEMVAR->hResc ) }
ACTIVATE DIALOG oDlg
return
hRes := GetResources()
SetResources( hRes )
...
SetResources('Bitmaps.dll')
@ 10,10 Image oImage resource cWallPaper Of oWnd Pixel //-- In bitmaps.dll
...
SetResources( hRes )
DEFINE DIALOG oDlg Resource "DLGSELEMPRESA" of ownd //-- In Main.rc
SetResources('Bitmaps.dll')
REDEFINE ButtonBmp oBtnExit ID 203 of oDlg Bitmap "Exit24" //-- In bitmaps.dll
oDlg:bStart := {|| SetResources('Bitmaps.dll') }
ACTIVATE DIALOG oDlg CENTERED
Richard Chidiak wrote:Anderson,
There is no "automatic RESIZE" on buttonbmp, if the area reserved for displaying the button in your resource is not big enough, the buttonbmp will not show. Try to increase it.
HTH
Richard
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 78 guests