Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 MFC VS2010 VC++
As soon as I add Rich edit control to my dialog and try debug it.. Build is successful but fails to debug. The output shows as
'Rich1.exe': Loaded 'C:\Documents and Settings\abc\My Documents\Visual Studio 2010\Projects\Rich1\Debug\Rich1.exe', Symbols loaded.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\mfc100ud.dll', Symbols loaded.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\msimg32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\mfc100enu.dll', Binary was not built with debug information.
'Rich1.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\Program Files\McAfee\SiteAdvisor\sahook.dll', Cannot find or open the PDB file
'Rich1.exe': Loaded 'C:\WINDOWS\system32\version.dll', Cannot find or open the PDB file
'Rich1.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
'Rich1.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', Cannot find or open the PDB file
Detected memory leaks!
Dumping objects ->
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(195) : {384} normal block at 0x0034CF90, 40 bytes long.
 Data: <                > 01 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(181) : {383} normal block at 0x0034CF38, 24 bytes long.
 Data: <                > FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00
Object dump complete.
The program '[3020] Rich1.exe: Native' has exited with code 0 (0x0).
what should i do now??? thank you
Posted 6-Sep-12 22:25pm
Comments
Richard MacCutchan at 7-Sep-12 4:32am
   
Rebuild your program and ensure that DEBUG is defined for the entire project. Start from the debugger and step through until you find the error.
Sharath2790 at 7-Sep-12 4:41am
   
Hmmm!! I've tried it but Same thing....

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please call AfxInitRichEdit(); or AfxInitRichEdit2();inside from InitInstance of your application, CRich1App::InitInstance().
 
Call this function to initialize the rich edit control (version 1.0) for the application. This function is provided for backward compatibility. Applications created with Visual C++ .NET and later use AfxInitRichEdit2.
 
AfxInitRichEdit loads RICHED32.DLL to initialize version 1.0 of the rich edit control.
 
http://msdn.microsoft.com/en-us/library/tt1cfb9f%28v=vs.80%29.aspx[^]
  Permalink  
v2
Comments
Sharath2790 at 7-Sep-12 5:52am
   
Thank you!! It works!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 7 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100