Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

RICHEDIT / InitCommonControls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patty O'Dors - 01 Sep 2004 10:17 GMT
Hi
I'm trying to create an application with a RichEdit control, I found that
CreateWindow always returns a null hWnd unless I call
LoadLibrary("riched20.dll") first (the error code from GetLastError is 1407 -
couldn't find class). This is even when I link with comctl32.lib and call
InitCommonControls.
Do I HAVE to use a DLL if I want to use a richedit control, and more
importantly, do I know that it will be on the target machine, and if not can
I redistribute this DLL?

Further, I think it might be something to do with the the fact that
InitCommonControls has been replaced by InitCommonControlsEx, which takes a
structure telling it which ones to initialize, but the RICHEDIT doesn't seem
to be one of the ones listed in the flags you can set in this parameter. Does
this mean that in the most recent version of windows, the RICHEDIT has been
chucked out of the common controls suite? If so, what was its offence?
Andreas Magnusson - 01 Sep 2004 12:25 GMT
See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platfor
m/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp


As far as I know, RichEdit was always in its own dll, and never part of the
comctl32.dll.

/Andreas

> Hi
> I'm trying to create an application with a RichEdit control, I found that
[quoted text clipped - 12 lines]
> this mean that in the most recent version of windows, the RICHEDIT has been
> chucked out of the common controls suite? If so, what was its offence?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.