You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saw this library on vbforums - great stuff and something I always wanted also. It may be worthwhile instead making these objects with predeclared IDs:
VERSION1.0CLASSBEGINMultiUse=-1'TrueENDAttributeVB_Name="resIconHouse"AttributeVB_GlobalNameSpace=FalseAttributeVB_Creatable=FalseAttributeVB_PredeclaredId=TrueAttributeVB_Exposed=FalsePrivatepData(476)asByte()PrivatepInitialisedasbooleanAttibuteData.VB_UserMemId=0PublicPropertyGetData()asByte()if!pInitialisedthenCallinitData=pDataEndPropertyPublicPropertyGetName()asstringName="IconHouse"EndPropertyPublicPropertyGetAsFile()asstringstaticsPathasstringifsPath=""then'if not save as temporary file if file doesn't already exist...endifAsFile=sPathEndPropertyPublicPropertyGetAsPicture()asIPictureDispstaticpicasIPictureDisp:ifpicisnothingthensetpic=LoadPicture(AsFile)'perhaps there is a better waysetAsPicture=picEndPropertyPublicFunctionCallFunction(ByValsFuncNameasstring,aParamTypesasvbVarType(),aParamValuesasvbVarType(),RetTypeasvbVarType)asvariant'use DispCallFunc ...EndFunctionPrivatesubinit()pData(1)=...pData(2)=...'...EndSub
or better still exporting specific functions directly, which calls CallFunction internally.
This would highly abstract usage of the binary:
setimage1.Picture=resIconHouse.asPicture()
The text was updated successfully, but these errors were encountered:
Saw this library on vbforums - great stuff and something I always wanted also. It may be worthwhile instead making these objects with predeclared IDs:
or better still exporting specific functions directly, which calls CallFunction internally.
This would highly abstract usage of the binary:
The text was updated successfully, but these errors were encountered: