I'm trying to make a simple dialog with a rich edit box. It is called from within another class via DoModal() which returns -1, and fails to show the new dialog. If I remove the CRichEditCtrl, the dialog will be created perfectly fine and everything works.
I have tried to add the edit box programmatically to no avail. It feels like I'm missing some sort of initialization or a dialog setting or library or something. When I use the debugger to investigate I find that CreateDlgIndirect() inside of DoModal() in dlgcore.cpp is returning false, which seems to be the reason nothing is working. If you need any specific information from the debugger I'll be happy to provide it.
Any help on this would be greatly appreciated. Thanks.