Click here to Skip to main content
15,917,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTrouble with CListCtrl!!! Pin
Orkun GEDiK20-Aug-02 1:31
Orkun GEDiK20-Aug-02 1:31 
GeneralRe: Trouble with CListCtrl!!! Pin
Tomasz Sowinski20-Aug-02 1:34
Tomasz Sowinski20-Aug-02 1:34 
GeneralRe: Trouble with CListCtrl!!! Pin
Orkun GEDiK20-Aug-02 3:54
Orkun GEDiK20-Aug-02 3:54 
GeneralRe: Trouble with CListCtrl!!! Pin
Michael P Butler20-Aug-02 1:38
Michael P Butler20-Aug-02 1:38 
GeneralRe: Trouble with CListCtrl!!! Pin
Orkun GEDiK20-Aug-02 3:42
Orkun GEDiK20-Aug-02 3:42 
GeneralRe: Trouble with CListCtrl!!! Pin
Ahmet Orkun GEDiK21-Aug-02 22:53
sussAhmet Orkun GEDiK21-Aug-02 22:53 
GeneralCTreeCtrl Pin
Jaro20-Aug-02 1:19
Jaro20-Aug-02 1:19 
GeneralSplash Screen Pin
Mazdak20-Aug-02 1:05
Mazdak20-Aug-02 1:05 
GeneralRe: Splash Screen Pin
Tomasz Sowinski20-Aug-02 1:28
Tomasz Sowinski20-Aug-02 1:28 
GeneralRe: Splash Screen Pin
Michael A. Barnhart20-Aug-02 1:30
Michael A. Barnhart20-Aug-02 1:30 
GeneralVertical ScrollBar in ListCtrl Pin
tulc_kris20-Aug-02 1:02
tulc_kris20-Aug-02 1:02 
GeneralRe: Vertical ScrollBar in ListCtrl Pin
Tomasz Sowinski20-Aug-02 1:32
Tomasz Sowinski20-Aug-02 1:32 
GeneralRe: Vertical ScrollBar in ListCtrl Pin
Anonymous20-Aug-02 1:35
Anonymous20-Aug-02 1:35 
Generaldf attack Pin
colspan=220-Aug-02 0:02
susscolspan=220-Aug-02 0:02 
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 

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.