(rephrase) Does anyone know of a utility which can convert text from a .RC file (defining a dialog and its controls) to the equivalent MFC code?
In my application I want to create a dialog on-the-fly (dynamically?), with a number of controls, instead of placing it in the resource file. However, to actually design the dialog I would like to use Developer Studio, where I can size/position everything visually.
Developer Studio creates a .rc file. I would like something that can read that .rc file, and dump out the corresponding MFC code that would create the same dialog.
eg. Translate (from the .rc)
button.Create( "Cancel", ... ) ;
OR to a DLGTEMPLATE structure
I would then stitch this code into my application, and the dialog would be created while the application is running.
Hope that makes sense.