Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltemplate question Pin
Steve Messer9-Oct-03 19:48
Steve Messer9-Oct-03 19:48 
GeneralRe: template question Pin
Joaquín M López Muñoz9-Oct-03 20:05
Joaquín M López Muñoz9-Oct-03 20:05 
GeneralRe: template question Pin
Steve Messer9-Oct-03 20:49
Steve Messer9-Oct-03 20:49 
GeneralRe: template question Pin
Joaquín M López Muñoz9-Oct-03 20:53
Joaquín M López Muñoz9-Oct-03 20:53 
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:04
Steve Messer9-Oct-03 21:04 
GeneralRe: template question Pin
Joaquín M López Muñoz9-Oct-03 21:08
Joaquín M López Muñoz9-Oct-03 21:08 
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:11
Steve Messer9-Oct-03 21:11 
GeneralRe: template question Pin
Joaquín M López Muñoz9-Oct-03 21:23
Joaquín M López Muñoz9-Oct-03 21:23 
You can have the plugin loaded without any "inside" code if you define the ctor as
CPlugin(const char* szDLLName, const char* szFunction){/* code for Loading*/}
and provide some GetPlugin accesor for later use. IMHO this is probably better than the Load scheme, since the only purpose of CPlugin is to make the loading anyway. Following this approach, you might want to move the unloading code to the dtor of the class and supress the explicit loading functions altogether. This fits nicely with a C++ idiom called RAII (Resource Acquisition is Initialization), which you can google for for further info.


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:30
Steve Messer9-Oct-03 21:30 
GeneralRe: template question Pin
Steve Messer9-Oct-03 21:08
Steve Messer9-Oct-03 21:08 
GeneralStrange things with parameters. Pin
esepich9-Oct-03 19:10
esepich9-Oct-03 19:10 
GeneralRe: Strange things with parameters. Pin
Anand Paranjpe9-Oct-03 19:52
Anand Paranjpe9-Oct-03 19:52 
GeneralDefine triangle class Pin
Anonymous9-Oct-03 18:40
Anonymous9-Oct-03 18:40 
GeneralRe: Define triangle class Pin
W. Hammer -sledge-11-Oct-03 9:29
W. Hammer -sledge-11-Oct-03 9:29 
GeneralHello ÕâÊÇʲôѽ£¿ Pin
hy_huangh9-Oct-03 18:36
hy_huangh9-Oct-03 18:36 
GeneralRe: Hello ÕâÊÇʲôѽ£¿ Pin
David Stone9-Oct-03 18:56
sitebuilderDavid Stone9-Oct-03 18:56 
GeneralFloating point calculation Pin
act_x9-Oct-03 18:20
act_x9-Oct-03 18:20 
GeneralRe: Floating point calculation Pin
Anand Paranjpe9-Oct-03 20:05
Anand Paranjpe9-Oct-03 20:05 
GeneralRe: Floating point calculation Pin
Anthony_Yio10-Oct-03 1:09
Anthony_Yio10-Oct-03 1:09 
GeneralRe: Floating point calculation Pin
JWood10-Oct-03 9:59
JWood10-Oct-03 9:59 
QuestionXML parsing with DOM?? Pin
xxhimanshu9-Oct-03 17:45
xxhimanshu9-Oct-03 17:45 
AnswerRe: XML parsing with DOM?? Pin
act_x9-Oct-03 18:28
act_x9-Oct-03 18:28 
AnswerRe: XML parsing with DOM?? Pin
Anand Paranjpe9-Oct-03 20:09
Anand Paranjpe9-Oct-03 20:09 
AnswerRe: XML parsing with DOM?? Pin
Ravi Bhavnani10-Oct-03 3:25
professionalRavi Bhavnani10-Oct-03 3:25 
Questionwhat does this mean? Pin
FlyingDancer9-Oct-03 17:34
FlyingDancer9-Oct-03 17:34 

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.