MFC and DirectX???

Started by
3 comments, last by Bashar 23 years, 1 month ago
Hi all! Just wondering, is there some hidden rule or something about mixing MFC aand DirectX? I tried to make a simple Dialog-based MFC app, with a button. And with the whenclickedon event for the button, I initialize DirectDraw and... well, DirectX will NOT start! Am I missing something, or what? I was just hoping to make a quick GUI with MFC... anybody know what''s up?
People fear what they don''t understand, hate what they can''t conquer!
Advertisement
>>anybody know what''s up?

WAAAAZZAAAAAAAAPPPP!!

Thanks for your reply Buster!

Next time maybe you should keep your lame a$$ remarks to yourself...I''d appreciate that.

so, can anyone help me out?
People fear what they don''t understand, hate what they can''t conquer!
1. Add a CStatic component (rect,bitmap whatever) to dialog.
2. Use GetDlgItem(IDC_STATIC)->GetSafeHwnd() as hwnd for initializing directx.
Hope this work!

Thanks Anonymous poster, but I tried what you said, with Static label component...but when I went to run it, I got an invalid page fault.
People fear what they don''t understand, hate what they can''t conquer!

This topic is closed to new replies.

Advertisement