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
resources in a lib?
Moderators: gnozal, ABBKlaus, lexvictory
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)
You can compile the res-script (*.rc) to a res and import this to the
executable (for example with a macro or something else)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
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())