Click here to Skip to main content
15,915,324 members
Home / Discussions / COM
   

COM

 
QuestionThorwing a event with a collection Pin
GizzoF27-Sep-05 7:53
GizzoF27-Sep-05 7:53 
QuestionMixing COM and non-COM property pages Pin
DolphLundgren27-Sep-05 5:03
DolphLundgren27-Sep-05 5:03 
GeneralRe: Mixing COM and non-COM property pages Pin
Jörgen Sigvardsson27-Sep-05 9:56
Jörgen Sigvardsson27-Sep-05 9:56 
QuestionDynamically switching between DLLs Pin
Divick26-Sep-05 20:41
Divick26-Sep-05 20:41 
AnswerRe: Dynamically switching between DLLs Pin
prasad_som26-Sep-05 21:18
prasad_som26-Sep-05 21:18 
GeneralRe: Dynamically switching between DLLs Pin
Divick26-Sep-05 21:28
Divick26-Sep-05 21:28 
GeneralRe: Dynamically switching between DLLs Pin
Divick27-Sep-05 20:47
Divick27-Sep-05 20:47 
GeneralRe: Dynamically switching between DLLs Pin
rwestgraham28-Sep-05 19:08
rwestgraham28-Sep-05 19:08 
The best way I know of to do this is

1) Define an interface that provides standard definitions of the DLL functions you need to call. Your application should only work with the interfaces - that way it does not need to know anything about how the interface functions are actually implemented.

2) Create a wrapper class for each DLL that actually implements the interface function calls you defined in step 1.

3) Create the code needed to instantiate the correct class you created in Step 2, depending on which DLL you want to use. Usually you create an Abstract Factory pattern to accomplish this, but if your cases are simple enough, you may just use a function with a Select Case construction.

COM allows instantiated by the CreateObject(ComponentName.ClassName) method, so if done properly, you can completely decouple the main application from both the intermediate wrapper DLLs as well as the DLL you want to load dynamically, so you no longer have a linking conflict.
QuestionActiveX Controls Pin
Ashwin kumar Gurujala26-Sep-05 18:14
Ashwin kumar Gurujala26-Sep-05 18:14 
QuestionITypeInfo - Method parameter names Pin
mpuerto26-Sep-05 15:55
mpuerto26-Sep-05 15:55 
AnswerRe: ITypeInfo - Method parameter names Pin
Lim Bio Liong27-Sep-05 0:24
Lim Bio Liong27-Sep-05 0:24 
GeneralRe: ITypeInfo - Method parameter names Pin
mpuerto27-Sep-05 11:38
mpuerto27-Sep-05 11:38 
QuestionMultithreaded COM Pin
tajbender25-Sep-05 9:52
tajbender25-Sep-05 9:52 
QuestionDesign Help Pin
dwh6324-Sep-05 18:51
dwh6324-Sep-05 18:51 
QuestionA Juicy COM Bug Pin
mango_lier24-Sep-05 13:57
mango_lier24-Sep-05 13:57 
GeneralRe: A Juicy COM Bug Pin
Jörgen Sigvardsson24-Sep-05 23:20
Jörgen Sigvardsson24-Sep-05 23:20 
QuestionExample of Custom marshelling in COM Pin
Bhargava Alanka24-Sep-05 2:00
Bhargava Alanka24-Sep-05 2:00 
QuestionChat application b/w web application Pin
irshad ali23-Sep-05 21:27
irshad ali23-Sep-05 21:27 
QuestionIphelper API Pin
Mukhan23-Sep-05 10:26
Mukhan23-Sep-05 10:26 
QuestionCOM Help Pin
amitgh22-Sep-05 20:11
amitgh22-Sep-05 20:11 
AnswerRe: COM Help Pin
rwestgraham23-Sep-05 9:06
rwestgraham23-Sep-05 9:06 
GeneralRe: COM Help Pin
amitgh25-Sep-05 18:37
amitgh25-Sep-05 18:37 
GeneralRe: COM Help Pin
rwestgraham26-Sep-05 4:10
rwestgraham26-Sep-05 4:10 
QuestionInterface leak Pin
mango_lier22-Sep-05 11:45
mango_lier22-Sep-05 11:45 
AnswerRe: Interface leak Pin
Anonymous23-Sep-05 5:30
Anonymous23-Sep-05 5:30 

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.