Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionxloper struct Pin
A7Zulu19-Jun-07 9:37
A7Zulu19-Jun-07 9:37 
AnswerRe: xloper struct Pin
David Crow19-Jun-07 10:21
David Crow19-Jun-07 10:21 
GeneralRe: xloper struct Pin
A7Zulu19-Jun-07 10:47
A7Zulu19-Jun-07 10:47 
Questionreturning an pointer to an array to excel from C++ Pin
A7Zulu19-Jun-07 9:35
A7Zulu19-Jun-07 9:35 
AnswerRe: returning an pointer to an array to excel from C++ Pin
Sameerkumar Namdeo19-Jun-07 17:06
Sameerkumar Namdeo19-Jun-07 17:06 
QuestionDynamically Instantiating Class Defined In DLL Pin
Peter Saint19-Jun-07 8:13
Peter Saint19-Jun-07 8:13 
AnswerRe: Dynamically Instantiating Class Defined In DLL Pin
Matthew Faithfull19-Jun-07 9:00
Matthew Faithfull19-Jun-07 9:00 
QuestionRe: Dynamically Instantiating Class Defined In DLL Pin
Peter Saint19-Jun-07 9:34
Peter Saint19-Jun-07 9:34 
Thanks for your response. Unfortunately, I do not believe that your solution is exactly what I was looking for. Let me clarify a few things...

Although the client knows about MyBaseClass (it includes the MyBaseClass header file), it does not know about the MyBaseClass-derived class defined in the DLL (it does NOT include the MyDerivedClass header file, nor do I want it to).

The client application's configuration file contains a DLL file name and the name of a MyBaseClass-derived class. At runtime, the client application loads the DLL (using the configured file name) and dynamically instantiates the MyBaseClass-derived class (using the configured class name).

I want my developers to be able to develop multiple DLLs, each housing a different MyBaseClass-derived class (e.g., MyDerivedClass1, MyDerivedClass2...). Custom functionality will be implemented simply by overriding the appropriate MyBaseClass methods.

Simply by configuring the client to use a different DLL and class name, the behaviour of the client can be changed without ever changing the client code!

Does anyone know if this is possible without using the .NET reflection classes?

Peter

AnswerRe: Dynamically Instantiating Class Defined In DLL Pin
Matthew Faithfull19-Jun-07 9:54
Matthew Faithfull19-Jun-07 9:54 
GeneralRe: Dynamically Instantiating Class Defined In DLL Pin
Peter Saint19-Jun-07 10:00
Peter Saint19-Jun-07 10:00 
AnswerRe: Dynamically Instantiating Class Defined In DLL Pin
Hans Dietrich19-Jun-07 11:34
mentorHans Dietrich19-Jun-07 11:34 
AnswerRe: Dynamically Instantiating Class Defined In DLL Pin
BadKarma20-Jun-07 1:24
BadKarma20-Jun-07 1:24 
Questionhow to make stand-alone application with matlab? [modified] Pin
suroor45319-Jun-07 8:04
suroor45319-Jun-07 8:04 
QuestionListview control background colour Pin
Perspx19-Jun-07 7:18
Perspx19-Jun-07 7:18 
AnswerRe: Listview control background colour Pin
Randor 19-Jun-07 8:30
professional Randor 19-Jun-07 8:30 
QuestionRe: Listview control background colour Pin
David Crow19-Jun-07 8:46
David Crow19-Jun-07 8:46 
AnswerRe: Listview control background colour Pin
Randor 19-Jun-07 9:06
professional Randor 19-Jun-07 9:06 
GeneralRe: Listview control background colour Pin
Randor 19-Jun-07 9:09
professional Randor 19-Jun-07 9:09 
AnswerRe: Listview control background colour Pin
Mark Salsbery19-Jun-07 8:36
Mark Salsbery19-Jun-07 8:36 
GeneralRe: Listview control background colour Pin
Perspx19-Jun-07 9:36
Perspx19-Jun-07 9:36 
AnswerRe: Listview control background colour Pin
Hamid_RT20-Jun-07 8:46
Hamid_RT20-Jun-07 8:46 
QuestionProper learning of C++/MFC/Visual Studio Pin
ldsdbomber19-Jun-07 6:17
ldsdbomber19-Jun-07 6:17 
AnswerRe: Proper learning of C++/MFC/Visual Studio Pin
shivditya19-Jun-07 6:27
shivditya19-Jun-07 6:27 
AnswerRe: Proper learning of C++/MFC/Visual Studio Pin
Cyrilix19-Jun-07 6:46
Cyrilix19-Jun-07 6:46 
JokeRe: Proper learning of C++/MFC/Visual Studio Pin
Matthew Faithfull19-Jun-07 8:09
Matthew Faithfull19-Jun-07 8:09 

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.