Oxygen Basic
Programming => Problems & Solutions => Topic started by: chrisc on March 11, 2018, 12:45:40 PM
-
Hello
in PB we use the resource statement to include a manifest into our program as shown below
how to do it in O2 ?
#RESOURCE MANIFEST, 1, "win10theme.xml"
i have attach the win10theme.xml manifest file for your checking, thanxx
-
Any help please?
-
O2RadAsm
James
-
Hi Chris,
In the o2 tools folder there are 2 utilities goRC.exe for compiling .rc files, and James' LinkRes2Exe.exe for linking the res file into your binary.
As an example, this batch file is used for building oxide:
BuildInstallOxide.bat
goRC oxide.rc oxide.res
..\co2.exe -c oxide.o2bas
LinkRes2Exe.exe Oxide.res Oxide.exe
copy Oxide.exe ..\
del Oxide.exe
pause
-
Thanxx Charles
How do i write the .rc file to include this win10theme.xml file?
would it be something like below?
1 VERSIONINFO
FILEVERSION 1, 0, 0, 0
PRODUCTVERSION 1, 0, 0, 0
FILEOS 0x00000004 // WINDOWS32
FILETYPE 0x00000001 // APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Your company\0"
VALUE "FileDescription", "myApp\0"
VALUE "FileVersion", "1.0.0.0\0"
VALUE "InternalName", "myApp\0"
VALUE "OriginalFilename", "myApp.exe\0"
VALUE "LegalCopyright", "Copyright(c) 2018 Your company\0"
VALUE "ProductName", "myApp\0"
VALUE "ProductVersion", "1.0.0.0\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 0x04E4
END
END
1 MANIFEST "win10theme.xml"
-
i notice that this below line in the rc file
FILEOS 0x00000004 // WINDOWS32
it relates to windows 32 bits , now how about windows 64 bits app?
what shall i write to get windows 64 bits app ?
-
Chris,
I know nothing about manifests but I don't think they are affected by 32bit/64bit.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx
-
@Charles
so my version.rc file as shown in my post #3 is okay then
i will use the following steps at command prompt to compile and link it to my prog myapp.exe
> goRC.exe version.rc version.res
> LinkRes2Exe.exe version.res myapp.exe
Am i right with the above steps?