Click here to Skip to main content
15,908,254 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ RectF constructor Pin
Mark Salsbery24-Jan-08 10:01
Mark Salsbery24-Jan-08 10:01 
GeneralRe: GDI+ RectF constructor Pin
bob1697224-Jan-08 10:08
bob1697224-Jan-08 10:08 
QuestionAFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Wes Jones24-Jan-08 9:09
Wes Jones24-Jan-08 9:09 
AnswerRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
David Crow24-Jan-08 9:22
David Crow24-Jan-08 9:22 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Wes Jones24-Jan-08 9:41
Wes Jones24-Jan-08 9:41 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
David Crow24-Jan-08 9:45
David Crow24-Jan-08 9:45 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Wes Jones24-Jan-08 11:05
Wes Jones24-Jan-08 11:05 
AnswerRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Mark Salsbery24-Jan-08 9:52
Mark Salsbery24-Jan-08 9:52 
Wes Jones wrote:
does it matter if I call CoInitialize/CoInitializeEx before calls to AfxEnableControlContainer()/AfxOleInit()?


CoInitialize(Ex), if needed, should be called before AfxOleInit().

I don't know if this note from the docs is relevant here...

"If AfxOleInit is called from an MFC DLL, the call will fail. The failure
occurs because the function assumes that, if it is called from a DLL, the
OLE system was previously initialized by the calling application.
"

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
led mike24-Jan-08 10:19
led mike24-Jan-08 10:19 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Mark Salsbery24-Jan-08 10:26
Mark Salsbery24-Jan-08 10:26 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
led mike24-Jan-08 10:52
led mike24-Jan-08 10:52 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Mark Salsbery24-Jan-08 11:01
Mark Salsbery24-Jan-08 11:01 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Wes Jones24-Jan-08 10:40
Wes Jones24-Jan-08 10:40 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Mark Salsbery24-Jan-08 10:43
Mark Salsbery24-Jan-08 10:43 
General16-24 Bit image issue for MFC Pin
sunny.rana24-Jan-08 7:05
sunny.rana24-Jan-08 7:05 
GeneralRe: 16-24 Bit image issue for MFC Pin
Mark Salsbery24-Jan-08 7:28
Mark Salsbery24-Jan-08 7:28 
GeneralRe: 16-24 Bit image issue for MFC Pin
sunny.rana25-Jan-08 9:39
sunny.rana25-Jan-08 9:39 
GeneralRe: 16-24 Bit image issue for MFC Pin
Mark Salsbery27-Jan-08 7:06
Mark Salsbery27-Jan-08 7:06 
GeneralDialog Displays Differently Pin
Reagan Conservative24-Jan-08 6:47
Reagan Conservative24-Jan-08 6:47 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 7:31
David Crow24-Jan-08 7:31 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 8:17
Reagan Conservative24-Jan-08 8:17 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 9:17
David Crow24-Jan-08 9:17 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 9:19
Reagan Conservative24-Jan-08 9:19 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 9:23
David Crow24-Jan-08 9:23 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 9:47
Reagan Conservative24-Jan-08 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.