As I posted in some thread in the past, I am now writing such a converter. I created already a parser-lib. It enables to parse text files very easily. Using this I already have a code which converts all the defines (also recursively with included files) and saves resource directories (eg. directory RT_BITMAP, dir_bitmaps). I enjoy the coding (as I was not using computer for about a month and now I crave for ASM
) and so it's pretty promising I will finish this project. Also my parser-lib's universality may allow me to create "C Header to Fasm Include Converter" in the future.
But first someone competent (like Tomasz itself) has to clarify me some things. WIN.H from every C compiler has such equates:
#define RT_ACCELERATOR MAKEINTRESOURCE(9)
#define RT_BITMAP MAKEINTRESOURCE(2)
#define RT_DIALOG MAKEINTRESOURCE(5)
#define RT_FONT MAKEINTRESOURCE(8)
#define RT_FONTDIR MAKEINTRESOURCE(7)
#define RT_MENU MAKEINTRESOURCE(4)
#define RT_RCDATA MAKEINTRESOURCE(0xa)
#define RT_STRING MAKEINTRESOURCE(0x6)
#define RT_MESSAGETABLE MAKEINTRESOURCE(0xb)
#define RT_CURSOR MAKEINTRESOURCE(1)
#define RT_GROUP_CURSOR MAKEINTRESOURCE(0xc)
#define RT_ICON MAKEINTRESOURCE(3)
#define RT_GROUP_ICON MAKEINTRESOURCE(0xe)
#define RT_VERSION MAKEINTRESOURCE(16)
#define RT_VXD MAKEINTRESOURCE(20)
#define RT_ANICURSOR MAKEINTRESOURCE(21)
#define RT_ANIICON MAKEINTRESOURCE(22)
#define RT_HTML MAKEINTRESOURCE(23)
#define RT_DLGINCLUDE MAKEINTRESOURCE(0x11)
#define RT_PLUGPLAY MAKEINTRESOURCE(19)
. My question is: how to create these resources with macros. Bitmaps, dialogs, icons, etc. are shown in examples or somewhere (at least I know how to use such resources). But a messagetable, aniicon and others? I have no idea - and this info is crucial for further development. If anyone knows how all these resources are saved in an executable and how to emulate such encoding in fasm macro syntax, please POST IT HERE