Hardcoding the resources in application

Posted by HardCoder1986 on Stack Overflow See other posts from Stack Overflow or by HardCoder1986
Published on 2010-06-09T22:47:22Z Indexed on 2010/06/09 23:12 UTC
Read the original article Hit count: 168

Filed under:
|
|

Hello!

I have some code which shows a simple dialog box and handles user action (written using plain WinAPI).

// Display dialog and handle user action
LRESULT choice = DialogBoxParam(NULL, MAKEINTRESOURCE(AP_IDD_DIALOG), NULL, (DLGPROC)DialogCallback, NULL);

Is there any way to hardcode the resource file dialog.rc, which is used to build the dialog ?(I would like to get rid of .rc files and I'm pretty sure there is a way, yet I don't know what it is :)

Edit

Also, does someone have any ideas on converting existing .rc files into hardcoded resources? Is this possible?

© Stack Overflow or respective owner

Related posts about c++

Related posts about winapi