Page 1 of 1
resources in a lib?
Posted: Sat Apr 26, 2008 7:16 pm
by nicolaus
Hello,
Can i at resources like icons or so into a lib and if i can do this how i can work with the resources?
Thanks,
nico
Posted: Sat Apr 26, 2008 7:24 pm
by ts-soft
You can't add windows-resources to a lib.
You can compile the res-script (*.rc) to a res and import this to the
executable (for example with a macro or something else)
Posted: Sun Apr 27, 2008 11:15 am
by ABBKlaus
Maybe this way :
Code: Select all
ProcedureDLL.l TestLib1()
ProcedureReturn ?Icon1
EndProcedure
DataSection
Icon1:
IncludeBinary #PB_Compiler_Home+"\Examples\Sources\Data\CdPlayer.ico"
EndDataSection
Code: Select all
Debug CatchImage(#PB_Any,TestLib1())