Hi Serggio,
The VOXporter automatically replaces those define constants with their actual values. If you have ported your app without using the tool, then you will need to include those defines manually in the .rc file, like in
Code: Select all
#define VK_DELETE 0x2E
CLIPPERKEYS ACCELERATORS
BEGIN
46, VK_DELETE, VIRTKEY
END
or you can create a separate file that holds all of the commonly used defines, name it for example ResourceDefines.xh and then just add on top of all of your .rc files this:
Also the VO compatible Window and Menu editors do the same thing, they write the defines in the .rc files when you save a Window or Menu instance.
Just to clarify this a bit, it is not the X# compiler that needs this, the resource compilation is done by the MS resource compiler (rc.exe). When this tool succeeds, then the X# compiler uses its output and embeds it in your X# exe or dll.