C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-29-2008, 11:39 AM   #1
Registered User
 
Join Date: Jul 2008
Location: California
Posts: 5
CRichEditCtrl Problem

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.
mmaniaci is offline   Reply With Quote
Old 07-29-2008, 11:54 AM   #2
Confused
 
Magos's Avatar
 
Join Date: Sep 2001
Location: Sweden
Posts: 3,122
Check out the Caution section at http://msdn.microsoft.com/en-us/libr...xf(VS.80).aspx
__________________
MagosX.com

Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Magos is offline   Reply With Quote
Old 07-29-2008, 12:08 PM   #3
Registered User
 
Join Date: Jul 2008
Location: California
Posts: 5
Thank you kindly! I figured it was something like that, and I wish my eyes weren't so trained to avoid things like the MSDN "Caution" blocks heh.
mmaniaci is offline   Reply With Quote
Reply

Tags
cricheditctrl, fail, fails, problem

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory problem with Borland C 3.1 AZ1699 C Programming 16 11-16-2007 11:22 AM
Someone having same problem with Code Block? ofayto C++ Programming 1 07-12-2007 08:38 AM
A question related to strcmp meili100 C++ Programming 6 07-07-2007 02:51 PM
WS_POPUP, continuation of old problem blurrymadness Windows Programming 1 04-20-2007 06:54 PM
beginner problem The_Nymph C Programming 4 03-05-2002 05:46 PM


All times are GMT -6. The time now is 04:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22