Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat I have to do? I want to create MP3 players. Pin
sonshiro19-Aug-02 23:55
sonshiro19-Aug-02 23:55 
AnswerRe: What I have to do? I want to create MP3 players. Pin
Christian Graus20-Aug-02 0:51
protectorChristian Graus20-Aug-02 0:51 
AnswerRe: What I have to do? I want to create MP3 players. Pin
Stephane Rodriguez.20-Aug-02 1:47
Stephane Rodriguez.20-Aug-02 1:47 
AnswerRe: What I have to do? I want to create MP3 players. Pin
brianwelsch20-Aug-02 4:14
brianwelsch20-Aug-02 4:14 
GeneralRegistry Pin
udayGovekar19-Aug-02 23:18
udayGovekar19-Aug-02 23:18 
GeneralRe: Registry Pin
Tomasz Sowinski20-Aug-02 0:03
Tomasz Sowinski20-Aug-02 0:03 
GeneralRe: Registry Pin
Steven Gregg20-Aug-02 6:44
Steven Gregg20-Aug-02 6:44 
GeneralCoding plugins with dlls Pin
makom4219-Aug-02 22:42
makom4219-Aug-02 22:42 
Excuse the lengthy post : but I've been getting quite frustrated researching this topic, and I'd like to get someones informed advice if possible.

I have written an MFC app, using OpenGL to provide my own custom 3D model editor. I am using the CDocument/View architecture and everything is fine.

Now I want to code plugins for tools that manipulate the data in the model.

Having spent a few days researching on the web, I come to the following conclusions :

1) DLL's should be fairly straightforward to use
2) No two sources agree on how they should be done
3) Microsoft don't help matters.

:S

This is what I want to do :-

a) Create a "tool" class that plugs into the main app (ie. CPluginExtrude).

b) The main app then checks its plugins directory on loading, for any .dll's present, installs them, and attaches them to the CMainFrame menu so that the user can invoke them.

c) The plugin is given a pointer (on initialisation) to the CDocument derived model, and the main app so that it has full access to the application and its data.

d) When a plugin is invoked, it may simply perform it's function on the model data, or it may invoke a dialog asking for parameters beforehand.

e) It is vital that I can create plugins as and when, without the necessity to recompile/rebuild the main application.

I have coded a partial plugin implementation - which works upto the pointer where I attempt to use GetProcAddress to find a function pointer by its name, this always returns null, even though the function I am trying to obtain has been declared with __declspec (dllexport) in the plugin .dll

I am using VC6, and the W2K MFC dll's

Having rattled off all of that, if someone can supply a link to a site that explains all (which I have as yet been unable to find Frown | :( ) then that would be great...

Thanks in advance!

(PS : I may provide the results of my research & solution as an article somewhere - possibly gamedev - and full credit will be given Wink | ;) )

GeneralRe: Coding plugins with dlls Pin
Tomasz Sowinski20-Aug-02 0:18
Tomasz Sowinski20-Aug-02 0:18 
GeneralRe: Coding plugins with dlls Pin
makom4220-Aug-02 0:54
makom4220-Aug-02 0:54 
GeneralRe: Coding plugins with dlls Pin
Tomasz Sowinski20-Aug-02 0:56
Tomasz Sowinski20-Aug-02 0:56 
GeneralRe: Coding plugins with dlls Pin
Roger Allen20-Aug-02 2:38
Roger Allen20-Aug-02 2:38 
GeneralDifferent views Pin
tulc_kris19-Aug-02 22:31
tulc_kris19-Aug-02 22:31 
GeneralRe: Different views Pin
Tomasz Sowinski20-Aug-02 0:58
Tomasz Sowinski20-Aug-02 0:58 
GeneralControl Painting Pin
albean19-Aug-02 20:15
albean19-Aug-02 20:15 
GeneralRe: Control Painting Pin
Paul M Watt19-Aug-02 21:18
mentorPaul M Watt19-Aug-02 21:18 
GeneralRe: Control Painting Pin
albean19-Aug-02 21:56
albean19-Aug-02 21:56 
QuestionHow the program can know that the screen is updated Pin
Chintan19-Aug-02 20:04
Chintan19-Aug-02 20:04 
AnswerRe: How the program can know that the screen is updated Pin
Christian Graus19-Aug-02 20:50
protectorChristian Graus19-Aug-02 20:50 
GeneralSite feedback Pin
Anonymous_Posting19-Aug-02 19:46
sussAnonymous_Posting19-Aug-02 19:46 
GeneralRe: Site feedback Pin
Chris Maunder20-Aug-02 1:06
cofounderChris Maunder20-Aug-02 1:06 
GeneralProblem in getting a field value of a dialog Pin
Didaa19-Aug-02 19:38
Didaa19-Aug-02 19:38 
GeneralRe: Problem in getting a field value of a dialog Pin
Paul M Watt19-Aug-02 20:01
mentorPaul M Watt19-Aug-02 20:01 
GeneralRe: Problem in getting a field value of a dialog Pin
jhwurmbach19-Aug-02 21:36
jhwurmbach19-Aug-02 21:36 
QuestionHow to create CListCtrl ?? Pin
tulc_kris19-Aug-02 19:11
tulc_kris19-Aug-02 19:11 

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.