Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: First frame of an compressed AVI Pin
Andrew Walker27-May-03 21:00
Andrew Walker27-May-03 21:00 
GeneralRe: First frame of an compressed AVI Pin
Jürgen Eidt27-May-03 21:58
Jürgen Eidt27-May-03 21:58 
GeneralCreate a Transperent Bitmap on a running video Pin
Abhi@Work27-May-03 15:15
Abhi@Work27-May-03 15:15 
GeneralRe: Create a Transperent Bitmap on a running video Pin
John R. Shaw27-May-03 21:08
John R. Shaw27-May-03 21:08 
Generalactivex control in raw win32 api dialog Pin
Roman Nurik27-May-03 14:42
Roman Nurik27-May-03 14:42 
GeneralRe: activex control in raw win32 api dialog Pin
Michael Dunn27-May-03 15:00
sitebuilderMichael Dunn27-May-03 15:00 
GeneralRe: activex control in raw win32 api dialog Pin
Roman Nurik27-May-03 15:02
Roman Nurik27-May-03 15:02 
GeneralRe: activex control in raw win32 api dialog Pin
Michael Dunn27-May-03 18:00
sitebuilderMichael Dunn27-May-03 18:00 
In your stdafx.h (or whatever your main header file is) remove the include of windows.h, and instead put:
#include <atlbase.h>
extern CComModule _Module;
#include <atlwin.h>
In the CPP file that has WinMain(), declare the global _Module. Change WinMain() thus:
int WinMain ( HINSTANCE hinst, ... )
{
  _Module.Init ( NULL, hinst ); 
 
.....
 
  _Module.Term();  return msg.wParam;
}


--Mike--
Latest blog entry: *drool* (Alyson) [May 10]
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me

Generaladd DIALOGBAR Pin
aguest27-May-03 13:52
aguest27-May-03 13:52 
QuestionPutting Buttons in the view? Pin
Cambalindo27-May-03 13:32
Cambalindo27-May-03 13:32 
AnswerRe: Putting Buttons in the view? Pin
valikac27-May-03 14:26
valikac27-May-03 14:26 
AnswerRe: Putting Buttons in the view? Pin
Martyn Pearson27-May-03 23:20
Martyn Pearson27-May-03 23:20 
GeneralPassing pointer by address as argument Pin
Vancouver27-May-03 13:15
Vancouver27-May-03 13:15 
GeneralRe: Passing pointer by address as argument Pin
Chris Richardson27-May-03 13:31
Chris Richardson27-May-03 13:31 
GeneralRe: Passing pointer by address as argument Pin
Vancouver27-May-03 13:47
Vancouver27-May-03 13:47 
General[MDI] How to open a document wich is not active Pin
selecta27-May-03 12:58
selecta27-May-03 12:58 
GeneralCHtmlView: can not load java ... Pin
includeh1027-May-03 10:55
includeh1027-May-03 10:55 
GeneralFile Generation. Pin
73Zeppelin27-May-03 8:53
73Zeppelin27-May-03 8:53 
GeneralRe: File Generation. Pin
Chris Meech27-May-03 9:04
Chris Meech27-May-03 9:04 
GeneralUsing MFC with win32 Pin
d_kilshtein27-May-03 8:35
d_kilshtein27-May-03 8:35 
GeneralRe: Using MFC with win32 Pin
John M. Drescher27-May-03 9:05
John M. Drescher27-May-03 9:05 
GeneralColor on MessageBox Pin
kostya_f27-May-03 7:37
kostya_f27-May-03 7:37 
GeneralRe: Color on MessageBox Pin
Neville Franks27-May-03 11:27
Neville Franks27-May-03 11:27 
QuestionIs there an alternative to GetDIBits? Pin
georgiek5027-May-03 7:36
georgiek5027-May-03 7:36 
AnswerRe: Is there an alternative to GetDIBits? Pin
Chris Losinger27-May-03 8:29
professionalChris Losinger27-May-03 8:29 

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.