$DEFINE RT_CURSOR 1
$DEFINE RT_BITMAP 2
$DEFINE RT_ICON 3
$DEFINE RT_MENU 4
$DEFINE RT_DIALOG 5
$DEFINE RT_STRING 6
$DEFINE RT_FONTDIR 7
$DEFINE RT_FONT 8
$DEFINE RT_ACCELERATOR 9
$DEFINE RT_RCDATA 10
$DEFINE RT_MESSAGETABLE 11
$DEFINE RT_GROUP_CURSOR 12
$DEFINE RT_GROUP_ICON 14
$DEFINE RT_VERSION 16
$DEFINE RT_DLGINCLUDE 17
$DEFINE RT_PLUGPLAY 19
$DEFINE RT_VXD 20
$DEFINE RT_ANICURSOR 21
$DEFINE RT_ANIICON 22
$DEFINE RT_HTML 23
$DEFINE RT_MANIFEST 24
$DEFINE CREATEPROCESS_MANIFEST_RESOURCE_ID 1
$DEFINE ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
SUB UpdateVersionInfoRes(TheExeName AS STRING, ResText AS STRING)
DEFSTR s = ResText
DEFSTR resID = "Version Info"
DEFINT resLang = &H409
DIM hUpt AS LONG , ret AS LONG
DEFINT rSize = LEN(ResText)
hUpt = BeginUpdateResource(TheExeName , 0)
ret = UpdateResource(hUpt , RT_VERSION, 1 , resLang , VARPTR(s) , rSize)
ret = EndUpdateResource(hUpt , 0)
END SUB
|