Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInvoking a dialog on remote machine Pin
Naveen_mah4-Sep-03 22:19
Naveen_mah4-Sep-03 22:19 
GeneralRe: Invoking a dialog on remote machine Pin
David Crow5-Sep-03 4:41
David Crow5-Sep-03 4:41 
GeneralRe: Invoking a dialog on remote machine Pin
Alexander M.,6-Sep-03 3:54
Alexander M.,6-Sep-03 3:54 
GeneralRe: Invoking a dialog on remote machine Pin
David Crow8-Sep-03 2:18
David Crow8-Sep-03 2:18 
GeneralImporting a DLL from a class Pin
feederman4-Sep-03 22:14
feederman4-Sep-03 22:14 
GeneralRe: Importing a DLL from a class Pin
Brad Sokol5-Sep-03 3:07
Brad Sokol5-Sep-03 3:07 
GeneralRe: Importing a DLL from a class Pin
feederman5-Sep-03 3:11
feederman5-Sep-03 3:11 
GeneralRe: Importing a DLL from a class Pin
Brad Sokol5-Sep-03 4:45
Brad Sokol5-Sep-03 4:45 
Hmm...I think you may be a bit confused on how to program with COM ojbects and how they're used at run-time.

#import is used only at compile time to include declarations of objects supported by the COM DLL. The path is only relevant on the computer where your code is being compiled. This is very similar to #include.

At install time, you must register any COM components that you install. This adds entries to the registry that the COM APIs use to find the DLLs and create the proper execution environment for the components. Most COM DLLs export a function called DllRegisterServer which the DLL author must provide to perform the necessary registration steps. Most installer packages (InstallShield, Wise, etc.) will call this function if you specify the DLL as requiring registration. You can also register a component using the regsvr32.exe utility, which calls DllRegisterServer.

So, the path to the DLL is established at registration time and stored in the registry. You can install the DLL anywhere.

At run time, you instantiate an instance of a coclass by specifying either a CLSID or PROGID. The COM API CoCreateInstance (which is either called by the smart pointer, or by your code directly, depending on how you've written things), performs a lookup in the registry to find the location of the DLL.

A warning about installing MSXML yourself. With later versions of the parser, there are more than one DLL. I'm not sure about V1.0. You are probably better off finding out what installation method Microsoft recommendeds. They probably have an installation package that you can re-distribute. That installer will install all required components and perform the necessary registration.

Secondly, V1.0 is very old. Newer versions support more of the XML and related standards.

Finally, depending on what OS you're targetting, a version of the parser may already be installed.

HTH



Brad
GeneralRe: Importing a DLL from a class Pin
feederman5-Sep-03 5:12
feederman5-Sep-03 5:12 
Generaldebug assertion failed Pin
pavan.kumar4-Sep-03 21:51
pavan.kumar4-Sep-03 21:51 
GeneralRe: debug assertion failed Pin
Brad Sokol5-Sep-03 3:09
Brad Sokol5-Sep-03 3:09 
Questionhow to generate a random number? Pin
Habbit4-Sep-03 21:26
Habbit4-Sep-03 21:26 
AnswerRe: how to generate a random number? Pin
Ted Ferenc4-Sep-03 21:32
Ted Ferenc4-Sep-03 21:32 
GeneralRe: how to generate a random number? Pin
Habbit4-Sep-03 21:54
Habbit4-Sep-03 21:54 
GeneralRe: how to generate a random number? Pin
Ted Ferenc4-Sep-03 22:07
Ted Ferenc4-Sep-03 22:07 
GeneralRe: how to generate a random number? Pin
Anonymous5-Sep-03 2:50
Anonymous5-Sep-03 2:50 
GeneralRe: how to generate a random number? Pin
Ted Ferenc5-Sep-03 3:05
Ted Ferenc5-Sep-03 3:05 
GeneralRe: how to generate a random number? Pin
Tim Smith5-Sep-03 4:30
Tim Smith5-Sep-03 4:30 
GeneralRe: how to generate a random number? Pin
David Crow5-Sep-03 4:39
David Crow5-Sep-03 4:39 
GeneralRe: how to generate a random number? Pin
Ted Ferenc5-Sep-03 10:24
Ted Ferenc5-Sep-03 10:24 
GeneralRe: how to generate a random number? Pin
David Crow5-Sep-03 10:41
David Crow5-Sep-03 10:41 
GeneralRe: how to generate a random number? Pin
Ted Ferenc5-Sep-03 6:20
Ted Ferenc5-Sep-03 6:20 
GeneralRe: how to generate a random number? Pin
David Crow5-Sep-03 10:43
David Crow5-Sep-03 10:43 
Questionshared memory and address? Pin
includeh104-Sep-03 21:07
includeh104-Sep-03 21:07 
AnswerRe: shared memory and address? Pin
Jagadeesh VN5-Sep-03 4:20
Jagadeesh VN5-Sep-03 4:20 

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.