|
-
May 2nd, 2002, 05:25 PM
#1
Yep, you may not use any MFC global functions (those starting with Afx) outside an MFC app. Neither may you include any MFC header (they also start with afx).
You can use every control with pure API, though it is a little easier with MFC (sometimes a lot easier). But you're absolutly right if you want to learn API first.
You don't need the AfxInitRichEdit function. It is only used to prepare MFC internal state for rich edit controls. BTW, it loads riched32.dll. You can load riched20.dll by doing this:
Code:
// global var
HINSTANCE g_hInstRichEdit = NULL;
// during init:
g_hInstRichEdit = LoadLibrary(TEXT("RICHED20.DLL"));
if(g_hInstRichEdit == NULL)
{
// critical initialization error: could not load required library!
}
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|