Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General? Re: ? Re: How can a DLL execute a function of the main app? ? ? Pin
Dominik Reichl27-Nov-04 23:00
Dominik Reichl27-Nov-04 23:00 
GeneralRe: ? Re: ? Re: How can a DLL execute a function of the main app? ? ? Pin
Neville Franks28-Nov-04 0:43
Neville Franks28-Nov-04 0:43 
GeneralRe: ? Re: ? Re: How can a DLL execute a function of the main app? ? ? Pin
Dominik Reichl28-Nov-04 1:50
Dominik Reichl28-Nov-04 1:50 
GeneralRe: ? Re: ? Re: How can a DLL execute a function of the main app? ? ? Pin
John R. Shaw28-Nov-04 8:08
John R. Shaw28-Nov-04 8:08 
GeneralRe: ? Re: ? Re: How can a DLL execute a function of the main app? ? ? Pin
Neville Franks28-Nov-04 11:16
Neville Franks28-Nov-04 11:16 
GeneralRe: ? Re: ? Re: How can a DLL execute a function of the main app? ? ? Pin
John R. Shaw28-Nov-04 11:35
John R. Shaw28-Nov-04 11:35 
GeneralRe: ? Re: ? Re: How can a DLL execute a function of the main app? ? ? Pin
Neville Franks28-Nov-04 11:17
Neville Franks28-Nov-04 11:17 
AnswerRe: How can a DLL execute a function of the main app? Pin
Nick Nougat29-Nov-04 5:52
Nick Nougat29-Nov-04 5:52 
Well, the most simple way is to move all 'exported' functionality (i.e. that part of the application the plugins should be able to access) into a separate dll itself. Plugins then just need to link to that dll in order to use them, as does the main application. (This would most likely be done via implicit linkage)
That way you also have enforced a modular concept for your application, which I'd recommend anyway as soon as your appication gets complex.
Many of my bigger projects evolved to a main exe that only served as 'launcher' for the dlls that contain the 'real application'.

Hope that helps,
Nick
GeneralAvoid compile entire proyect Pin
Juan Ignacio Garzón27-Nov-04 5:14
Juan Ignacio Garzón27-Nov-04 5:14 
GeneralRe: Avoid compile entire proyect Pin
John R. Shaw27-Nov-04 5:55
John R. Shaw27-Nov-04 5:55 
GeneralRe: Avoid compile entire proyect Pin
Michael Dunn27-Nov-04 8:26
sitebuilderMichael Dunn27-Nov-04 8:26 
GeneralRe: Avoid compile entire proyect Pin
Juan Ignacio Garzón27-Nov-04 8:54
Juan Ignacio Garzón27-Nov-04 8:54 
GeneralReturning an array from a function Pin
aaadetos27-Nov-04 2:21
aaadetos27-Nov-04 2:21 
GeneralRe: Returning an array from a function Pin
Kevin McFarlane27-Nov-04 2:31
Kevin McFarlane27-Nov-04 2:31 
GeneralRe: Returning an array from a function Pin
aaadetos27-Nov-04 2:35
aaadetos27-Nov-04 2:35 
GeneralRe: Returning an array from a function Pin
Kevin McFarlane27-Nov-04 4:11
Kevin McFarlane27-Nov-04 4:11 
GeneralRe: Returning an array from a function Pin
John R. Shaw27-Nov-04 6:12
John R. Shaw27-Nov-04 6:12 
GeneralRe: Returning an array from a function Pin
aaadetos30-Nov-04 2:08
aaadetos30-Nov-04 2:08 
GeneralRe: Returning an array from a function Pin
John R. Shaw30-Nov-04 14:40
John R. Shaw30-Nov-04 14:40 
GeneralIShellFolder2 Pin
Gurra_Koo26-Nov-04 23:02
Gurra_Koo26-Nov-04 23:02 
GeneralRe: IShellFolder2 Pin
Gary R. Wheeler27-Nov-04 2:07
Gary R. Wheeler27-Nov-04 2:07 
GeneralRe: IShellFolder2 Pin
Gurra_Koo27-Nov-04 9:55
Gurra_Koo27-Nov-04 9:55 
QuestionHow can i get the boot drive Pin
Monty226-Nov-04 21:40
Monty226-Nov-04 21:40 
AnswerRe: How can i get the boot drive Pin
Alexander M.,27-Nov-04 9:28
Alexander M.,27-Nov-04 9:28 
Questionhow to prohibit a window maximizing in api?thanks Pin
cjwin8326-Nov-04 21:33
cjwin8326-Nov-04 21:33 

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.