Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get the status of a USB printer. Pin
ashwath200529-Mar-06 3:12
ashwath200529-Mar-06 3:12 
AnswerRe: How to get the status of a USB printer. Pin
Blake Miller31-Mar-06 8:02
Blake Miller31-Mar-06 8:02 
Questionhow to do this? Pin
yang__lee29-Mar-06 1:33
yang__lee29-Mar-06 1:33 
QuestionFrom one project to another Pin
Nicolai M29-Mar-06 1:26
Nicolai M29-Mar-06 1:26 
AnswerRe: From one project to another Pin
Ștefan-Mihai MOGA29-Mar-06 1:29
professionalȘtefan-Mihai MOGA29-Mar-06 1:29 
GeneralRe: From one project to another Pin
Nicolai M29-Mar-06 1:36
Nicolai M29-Mar-06 1:36 
GeneralRe: From one project to another Pin
Ștefan-Mihai MOGA29-Mar-06 2:15
professionalȘtefan-Mihai MOGA29-Mar-06 2:15 
AnswerRe: From one project to another Pin
Stephen Hewitt29-Mar-06 1:45
Stephen Hewitt29-Mar-06 1:45 
The class CComModule is part of ATL - CAppModule is a wizard generated class derived from CComModule which is used in EXE projects. Given that you're learning DLLs we'll concentrate on CComModule. Follow these steps:
 1. In your "stdafx.h" file, after the #include <atlbase.h> add the following line:
extern CComModule _Module;

 2. In one of your .CPP files (normally the one that contains the DLL entry point) add the following at global scope:
CComModule _Module;

 3. In the DLL_PROCESS_ATTACH fork of your DllMain add the following:
_Module.Init(NULL, hinstDLL);

 4. In the DLL_PROCESS_DETACH fork add the following:
_Module.Term();


Normally the wizard does all this boiler plate stuff when you generate the project (ATL project).


Steve
AnswerRe: From one project to another Pin
Nicolai M31-Mar-06 8:09
Nicolai M31-Mar-06 8:09 
QuestionCustom CListCtrl Scrolling Pin
Dinu John29-Mar-06 0:35
Dinu John29-Mar-06 0:35 
AnswerRe: Custom CListCtrl Scrolling Pin
Gavin Taylor29-Mar-06 2:02
professionalGavin Taylor29-Mar-06 2:02 
QuestionHow to get notificaion when laptop switches from power to battery? Pin
Amarelia29-Mar-06 0:31
Amarelia29-Mar-06 0:31 
AnswerRe: How to get notificaion when laptop switches from power to battery? Pin
Nibu babu thomas29-Mar-06 0:52
Nibu babu thomas29-Mar-06 0:52 
GeneralRe: How to get notificaion when laptop switches from power to battery? Pin
Amarelia29-Mar-06 2:06
Amarelia29-Mar-06 2:06 
AnswerRe: How to get notificaion when laptop switches from power to battery? Pin
David Crow29-Mar-06 3:26
David Crow29-Mar-06 3:26 
QuestionChild Vs Popup Dialogs ? Pin
llp00na29-Mar-06 0:25
llp00na29-Mar-06 0:25 
AnswerRe: Child Vs Popup Dialogs ? Pin
Nibu babu thomas29-Mar-06 0:30
Nibu babu thomas29-Mar-06 0:30 
GeneralRe: Child Vs Popup Dialogs ? Pin
llp00na29-Mar-06 0:35
llp00na29-Mar-06 0:35 
GeneralRe: Child Vs Popup Dialogs ? Pin
Nibu babu thomas29-Mar-06 0:44
Nibu babu thomas29-Mar-06 0:44 
GeneralRe: Child Vs Popup Dialogs ? Pin
llp00na29-Mar-06 1:08
llp00na29-Mar-06 1:08 
AnswerRe: Child Vs Popup Dialogs ? Pin
Maximilien29-Mar-06 2:49
Maximilien29-Mar-06 2:49 
GeneralRe: Child Vs Popup Dialogs ? Pin
llp00na29-Mar-06 8:09
llp00na29-Mar-06 8:09 
QuestionHow Can I Read CakeWalk's wrk File Pin
akira3229-Mar-06 0:13
akira3229-Mar-06 0:13 
AnswerRe: How Can I Read CakeWalk's wrk File Pin
Ștefan-Mihai MOGA29-Mar-06 0:50
professionalȘtefan-Mihai MOGA29-Mar-06 0:50 
QuestionHow Can I Read Midi File? Pin
akira3229-Mar-06 0:12
akira3229-Mar-06 0:12 

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.