Link to home
Start Free TrialLog in
Avatar of bhasnier
bhasnier

asked on

Parsing RC or RES file

Hi,
I need to parse Visual C++ RC file (Resources files). In fact, I need to get the list of all resources and the content of each resources (position and type of buttons in the dialog...) at build time, not dynamicly.

I can parse RC file or use the RC.EXE compiler and parse the RES file, many some api can help me?

RC files are quite difficult to parse, I have only few documentation.

I am looking for sample code if any (C,lex&YAcc...)

Thanks
Avatar of danny_pav
danny_pav

While this does not answer your question, it is related.

You can get the resource information from an executable by using the imagehlp API.  
Avatar of bhasnier

ASKER

I just need to parse the RC file (source file of resource datas). I need it because I've made a C compiler (for non windows plateform) and I would like to use the VC resource editor to create dialogs. So I need to compile the RC file or convert the RES file.

ASKER CERTIFIED SOLUTION
Avatar of robpitt
robpitt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oopps.
Correction - the 2nd paramter (LPVOID) of the callback is the pointer to the resource data e.g. DLGTEMPLATE. (I lied when I suggested it was imediately after the header).