Click here to Skip to main content
16,013,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Thread programming question Pin
Curi0us_George7-Mar-04 16:43
Curi0us_George7-Mar-04 16:43 
Generalhot to set the step value in spin Pin
Mughi7-Mar-04 15:26
Mughi7-Mar-04 15:26 
GeneralRe: hot to set the step value in spin Pin
Prakash Nadar8-Mar-04 1:10
Prakash Nadar8-Mar-04 1:10 
GeneralRe: hot to set the step value in spin Pin
David Crow8-Mar-04 4:47
David Crow8-Mar-04 4:47 
GeneralRe: hot to set the step value in spin Pin
Roger Wright8-Mar-04 9:21
professionalRoger Wright8-Mar-04 9:21 
GeneralRe: hot to set the step value in spin Pin
David Crow8-Mar-04 9:28
David Crow8-Mar-04 9:28 
GeneralRe: hot to set the step value in spin Pin
Roger Wright8-Mar-04 10:09
professionalRoger Wright8-Mar-04 10:09 
GeneralNeed opinions on proposed Plugin framework Pin
Anonymous7-Mar-04 15:13
Anonymous7-Mar-04 15:13 
I am currently working on a very simple plugin framework for a C++ application. My proposal is as follows:


1 - All plugins are DLL's, and are uniquely identified by a string GUID constant within the DLL.


2 - All Plugins must contain a function called "InitDLL". InitDLL receives a structure defined as follows:

struct plugin_info
{
char* plug_guid;
char* plug_name;
char* plug_desc;
plug_send send_ptr;
};

In InitDLL, plug_guid, plug_name, and plug_desc are filled out. A local copy of send_ptr is kept in every plugin DLL.


3 - plug_send is a pointer to a function in the main program that receives events from the dll. It is defined as follows:

typedef void (*plug_send)(char* plug_guid, char* event, void* event_params_struct);

The local copy of send_ptr stored in the DLL can be called at any time to send events to the host application. Several structs will be defined for passing parameters (as the event_params_struct), and the struct used will depend on what event is being passed to the main application.


4 - Certain structs will also have pointers to functions in the DLL themselves. These functions will be used as callbacks, to allow the host application to send events back to the DLL.


5 - Both the host application and DLL's will have access to a public API, in the form of a C++ header file.


Does anyone see any major problems with this proposal, or will it work decently for a very basic plugin system? All feedback appreciated.
GeneralRe: Need opinions on proposed Plugin framework Pin
Prakash Nadar7-Mar-04 15:43
Prakash Nadar7-Mar-04 15:43 
GeneralI need help understanding this part of DirectShow SDK Pin
Redbehelit7-Mar-04 15:10
Redbehelit7-Mar-04 15:10 
GeneralRe: I need help understanding this part of DirectShow SDK Pin
GDavy7-Mar-04 19:58
GDavy7-Mar-04 19:58 
GeneralC++ Question. Pin
WREY7-Mar-04 14:05
WREY7-Mar-04 14:05 
GeneralRe: C++ Question. Pin
Prakash Nadar7-Mar-04 14:58
Prakash Nadar7-Mar-04 14:58 
GeneralRe: C++ Question. Pin
WREY7-Mar-04 15:58
WREY7-Mar-04 15:58 
GeneralRe: C++ Question. Pin
Prakash Nadar7-Mar-04 16:11
Prakash Nadar7-Mar-04 16:11 
GeneralRe: C++ Question. Pin
Steve S7-Mar-04 22:20
Steve S7-Mar-04 22:20 
GeneralMFC: Can't insert controls after inserting an ActiveX Control!! Pin
Davex_7-Mar-04 12:21
Davex_7-Mar-04 12:21 
GeneralRe: MFC: Can't insert controls after inserting an ActiveX Control!! Pin
Davex_7-Mar-04 12:58
Davex_7-Mar-04 12:58 
GeneralRe: MFC: Can't insert controls after inserting an ActiveX Control!! Pin
Ryan Binns7-Mar-04 17:22
Ryan Binns7-Mar-04 17:22 
GeneralRe: MFC: Can't insert controls after inserting an ActiveX Control!! Pin
Davex_8-Mar-04 4:49
Davex_8-Mar-04 4:49 
GeneralInterfacing webcam with mfc Pin
hurr1can37-Mar-04 10:54
hurr1can37-Mar-04 10:54 
GeneralRe: Interfacing webcam with mfc Pin
Alexander M.,7-Mar-04 11:07
Alexander M.,7-Mar-04 11:07 
GeneralRe: Interfacing webcam with mfc Pin
Andrew Walker7-Mar-04 11:54
Andrew Walker7-Mar-04 11:54 
GeneralAdding 2 very long numbers ?! Pin
engineer_ali7-Mar-04 9:20
engineer_ali7-Mar-04 9:20 
GeneralRe: Adding 2 very long numbers ?! Pin
Alexander M.,7-Mar-04 10:12
Alexander M.,7-Mar-04 10: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.