大家好 我在visual studio 6.0,c ++中遇到了富文本框控件,而我在基于对话框的应用程序中绘制了这个控件,它编译了absolutly文件,但它无法正常运行, 基本上它会自动终止,并显示以下消息:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINDOWS\system32\MFC42D.DLL'
Loaded symbols for 'C:\WINDOWS\system32\MSVCRTD.DLL'
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINDOWS\system32\MFCO42D.DLL'
Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\secur32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\MSCTF.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
The thread 0xF84 has exited with code 0 (0x0).
The program 'D:\test\Debug\test.exe' has exited with code 0 (0x0).
PLZ看看这个问题让我解决这个问题为什么我会陷入困境...... 谢谢你提前 :)
答案 0 :(得分:0)
您可能忘记(或不知道)致电AfxInitRichEdit
或AfxInitRichEdit2
。如果您使用类似CRichEditView
的内容,则会自动执行此操作,但如果您在对话框中嵌入了富文本控件而未使用CRichEditView
之类的内容,则需要调用它。