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

C / C++ / MFC

 
GeneralRe: Modeless dialogs and OnOK Pin
jafrazee10-Apr-02 12:17
jafrazee10-Apr-02 12:17 
GeneralRe: Modeless dialogs and OnOK Pin
Derek Lakin10-Apr-02 19:48
Derek Lakin10-Apr-02 19:48 
GeneralRe: Modeless dialogs and OnOK Pin
jafrazee11-Apr-02 2:11
jafrazee11-Apr-02 2:11 
GeneralRe: Modeless dialogs and OnOK Pin
Derek Lakin11-Apr-02 4:57
Derek Lakin11-Apr-02 4:57 
GeneralRe: Modeless dialogs and OnOK Pin
Alex Cramer10-Apr-02 18:02
Alex Cramer10-Apr-02 18:02 
GeneralCMediaPlayer2 Pin
Jesper S10-Apr-02 10:05
Jesper S10-Apr-02 10:05 
GeneralWriting a plugin system Pin
Zac Howland10-Apr-02 9:55
Zac Howland10-Apr-02 9:55 
GeneralRe: Writing a plugin system Pin
Joaquín M López Muñoz10-Apr-02 10:03
Joaquín M López Muñoz10-Apr-02 10:03 
If you're into COM, define an interface for the plugin and check all DLLs located in some predetermined plugin directory (a plugin is simply added to the system by copying its DLL to this directory). If you don't lean towards COM, substitute the interface thing with:
  1. An abstract class defining the functions a plugin has to implement (important: define the destructor as virtual.)
  2. A common "creation point" all DLLs are supposed to provide accessed with GetProcAddress, just like this:
    typedef CPluginInterface * (WINAPI * PLUGIN_CREATOR)();
    ...
    PLUGIN_CREATOR * plugin_creator=(PLUGIN_CREATOR *)GetProcAddress(hPluginDll,"Creator");
    CPluginInterface *plugin=plugin_creator();
    ... // use the plugin
    delete plugin;
    Internally, creator functions just create plugins with new.


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Writing a plugin system Pin
Zac Howland10-Apr-02 10:33
Zac Howland10-Apr-02 10:33 
GeneralRe: Writing a plugin system Pin
Joaquín M López Muñoz10-Apr-02 10:41
Joaquín M López Muñoz10-Apr-02 10:41 
GeneralRe: Writing a plugin system Pin
Zac Howland11-Apr-02 2:44
Zac Howland11-Apr-02 2:44 
GeneralRe: Writing a plugin system Pin
Chris Losinger10-Apr-02 10:08
professionalChris Losinger10-Apr-02 10:08 
QuestionDirectX 8.1 on CD-ROM? Pin
Jeremy Falcon10-Apr-02 9:02
professionalJeremy Falcon10-Apr-02 9:02 
QuestionHow to used "Multiple Display Monitors" and "virtual screen" Pin
hhxz_wind10-Apr-02 7:42
hhxz_wind10-Apr-02 7:42 
AnswerRe: How to used "Multiple Display Monitors" and "virtual screen" Pin
alex.barylski10-Apr-02 8:22
alex.barylski10-Apr-02 8:22 
QuestionMS to drop static linking from VC? Pin
Jim A. Johnson10-Apr-02 7:27
Jim A. Johnson10-Apr-02 7:27 
AnswerRe: MS to drop static linking from VC? Pin
Joaquín M López Muñoz10-Apr-02 9:31
Joaquín M López Muñoz10-Apr-02 9:31 
GeneralCalculating a text's dimension Pin
Hans Ruck10-Apr-02 7:21
Hans Ruck10-Apr-02 7:21 
GeneralRe: Calculating a text's dimension Pin
Ravi Bhavnani10-Apr-02 7:27
professionalRavi Bhavnani10-Apr-02 7:27 
GeneralRe: Calculating a text's dimension Pin
Chris Losinger10-Apr-02 7:35
professionalChris Losinger10-Apr-02 7:35 
GeneralRe: Calculating a text's dimension Pin
Hans Ruck10-Apr-02 7:51
Hans Ruck10-Apr-02 7:51 
GeneralRe: Calculating a text's dimension Pin
Stan Shannon10-Apr-02 7:54
Stan Shannon10-Apr-02 7:54 
GeneralMFC App and C2065 Pin
10-Apr-02 6:13
suss10-Apr-02 6:13 
GeneralRe: MFC App and C2065 Pin
Jeremy Falcon10-Apr-02 7:45
professionalJeremy Falcon10-Apr-02 7:45 
GeneralRe: MFC App and C2065 Pin
10-Apr-02 8:17
suss10-Apr-02 8:17 

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.