Click here to Skip to main content
15,913,854 members
Home / Discussions / COM
   

COM

 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Jörgen Sigvardsson1-Sep-04 21:06
Jörgen Sigvardsson1-Sep-04 21:06 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Mayur Mahajan2-Sep-04 6:17
Mayur Mahajan2-Sep-04 6:17 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Jörgen Sigvardsson29-Aug-04 9:40
Jörgen Sigvardsson29-Aug-04 9:40 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
RFickling29-Aug-04 9:53
RFickling29-Aug-04 9:53 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Milton Karimbekallil30-Aug-04 2:28
Milton Karimbekallil30-Aug-04 2:28 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
RoyceF30-Aug-04 8:53
RoyceF30-Aug-04 8:53 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Milton Karimbekallil30-Aug-04 18:02
Milton Karimbekallil30-Aug-04 18:02 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
RoyceF31-Aug-04 5:31
RoyceF31-Aug-04 5:31 
The client is a MFC App wizard dialog-type application. My code is below.
I use the #import statement:
#import "ComServer.dll"

I define a member variable to hold a pointer to the interface in my dialog's header:
ComServerLib::IMakeKeyPtr m_ptrMakeKey;

This statement fails with a 80040154 error code: "Class not registered"
m_ptrMakeKey = ComServerLib::IMakeKeyPtr(__uuidof(ComServerLib::IMakeKey));

I have used this method of connecting to COM objects for years. I have no clue as to why it is failing. My registry shows the following keys:
The following registry keys show that the required registration has been done. These
keys were copied from the registry immediately after a successful build of the COM server.

The 'MakeKey Class' is registered:
HKEY_CLASSES_ROOT\CLSID\{1BB2A094-1C9E-4B3B-99CF-A92CD5E762A3}
The ComServer 1.0 Type Library is registered:
HKEY_CLASSES_ROOT\TypeLib\{2748E284-3101-4CB7-AF16-C52E02E2A71A}
The IMakeKey Interface is registered:
HKEY_CLASSES_ROOT\Interface\{1B68E9F2-D8F6-42C0-9D12-90255695E6DE}


GeneralRe: Can't connect to or get interfaces of my COM server Pin
Jörgen Sigvardsson31-Aug-04 10:04
Jörgen Sigvardsson31-Aug-04 10:04 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Mayur Mahajan31-Aug-04 16:49
Mayur Mahajan31-Aug-04 16:49 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Jörgen Sigvardsson1-Sep-04 1:55
Jörgen Sigvardsson1-Sep-04 1:55 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Milton Karimbekallil1-Sep-04 3:12
Milton Karimbekallil1-Sep-04 3:12 
GeneralRe: Can't connect to or get interfaces of my COM server Pin
Milton Karimbekallil1-Sep-04 2:51
Milton Karimbekallil1-Sep-04 2:51 
GeneralThat's too funny :-D Pin
darkbyte28-Aug-04 5:14
darkbyte28-Aug-04 5:14 
GeneralRe: That's too funny :-D Pin
Milton Karimbekallil29-Aug-04 20:58
Milton Karimbekallil29-Aug-04 20:58 
Generaltable selection. Pin
Member 52815527-Aug-04 20:38
Member 52815527-Aug-04 20:38 
GeneralRe: table selection. Pin
darkbyte28-Aug-04 5:20
darkbyte28-Aug-04 5:20 
GeneralRe: table selection. Pin
Member 52815529-Aug-04 20:52
Member 52815529-Aug-04 20:52 
GeneralDifferences COM/ActiveX/Automation Pin
User 21559727-Aug-04 3:51
User 21559727-Aug-04 3:51 
GeneralRe: Differences COM/ActiveX/Automation Pin
Lim Bio Liong27-Aug-04 8:03
Lim Bio Liong27-Aug-04 8:03 
GeneralRe: Differences COM/ActiveX/Automation Pin
User 21559729-Aug-04 19:07
User 21559729-Aug-04 19:07 
GeneralRe: Differences COM/ActiveX/Automation Pin
Jörgen Sigvardsson27-Aug-04 14:13
Jörgen Sigvardsson27-Aug-04 14:13 
GeneralRe: Differences COM/ActiveX/Automation Pin
User 21559729-Aug-04 19:12
User 21559729-Aug-04 19:12 
GeneralMS Word Automation from consol App Pin
Dean Warren27-Aug-04 0:44
Dean Warren27-Aug-04 0:44 
GeneralMS Word Automation: Attempted the same thing with Visual C++ .NET Pin
ursus zeta28-Aug-04 11:24
ursus zeta28-Aug-04 11:24 

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.