flat assembler
Message board for the users of flat assembler.

Index > Windows > .RC to Fasm Macro Syntax Converter

Author
Thread Post new topic Reply to topic
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
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 Smile) 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:
Code:
#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 Smile
Post 25 May 2006, 17:48
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.