Click here to Skip to main content
15,891,424 members
Home / Discussions / COM
   

COM

 
QuestionShared Add-in issues Pin
SRKSHOME11-Sep-09 4:57
SRKSHOME11-Sep-09 4:57 
QuestionUsing a COM Server in an Visual Studio .vcproj Pin
Juergen_8010-Sep-09 4:44
Juergen_8010-Sep-09 4:44 
AnswerRe: Using a COM Server in an Visual Studio .vcproj [modified] Pin
Stuart Dootson10-Sep-09 5:27
professionalStuart Dootson10-Sep-09 5:27 
GeneralRe: Using a COM Server in an Visual Studio .vcproj Pin
Juergen_8010-Sep-09 22:51
Juergen_8010-Sep-09 22:51 
GeneralRe: Using a COM Server in an Visual Studio .vcproj Pin
Stuart Dootson10-Sep-09 23:10
professionalStuart Dootson10-Sep-09 23:10 
GeneralRe: Using a COM Server in an Visual Studio .vcproj Pin
Juergen_8010-Sep-09 23:59
Juergen_8010-Sep-09 23:59 
GeneralRe: Using a COM Server in an Visual Studio .vcproj Pin
Stuart Dootson11-Sep-09 0:55
professionalStuart Dootson11-Sep-09 0:55 
GeneralRe: Using a COM Server in an Visual Studio .vcproj Pin
Juergen_8011-Sep-09 1:58
Juergen_8011-Sep-09 1:58 
Yes, you understand it correct. I want to catch events from this server in the .exe file.

At first I worked with an .c / .h / .idl file that have been created from the .exe server. With these I could create an ComPtr and I could call some methods with this pointer. This step works in my old project:

CComPtr<icole2> tCOLE;
hr = CoInitialize(0);
hr = CoCreateInstance(CLSID_COLEv2, 0, CLSCTX_LOCAL_SERVER, IID_ICOLE2, (void**)&tCOLE);

tCole->.... //here I could call the methods out of the ICOLE2.

This worked also perfect.

Now I had the problem that I must catch also some events from the server. And here I didn't know how I should go on. Some people on different forums called me to work with atl because this should be easier. So now I tried to do that all with ATL. The main problem now is, that I didn't exactly know what I must do. I didn't found anywhere an example / tutorial that explains everything step by step.
GeneralRe: Using a COM Server in an Visual Studio .vcproj Pin
Stuart Dootson11-Sep-09 10:58
professionalStuart Dootson11-Sep-09 10:58 
AnswerRe: Using a COM Server in an Visual Studio .vcproj Pin
Vi211-Sep-09 1:45
Vi211-Sep-09 1:45 
Questioncall to a com sometimes fails [modified] Pin
morefalt10-Sep-09 3:57
morefalt10-Sep-09 3:57 
AnswerRe: call to a com sometimes fails Pin
Md. Marufuzzaman11-Sep-09 4:07
professionalMd. Marufuzzaman11-Sep-09 4:07 
GeneralRe: call to a com sometimes fails Pin
morefalt11-Sep-09 5:17
morefalt11-Sep-09 5:17 
AnswerRe: call to a com sometimes fails Pin
Md. Marufuzzaman11-Sep-09 6:08
professionalMd. Marufuzzaman11-Sep-09 6:08 
QuestionRegistering .NET DLL without regasm [Solved] Pin
hasan03050699-Sep-09 19:29
hasan03050699-Sep-09 19:29 
AnswerRe: Registering .NET DLL without regasm Pin
Md. Marufuzzaman10-Sep-09 6:01
professionalMd. Marufuzzaman10-Sep-09 6:01 
GeneralRe: Registering .NET DLL without regasm Pin
hasan030506911-Sep-09 22:46
hasan030506911-Sep-09 22:46 
GeneralRe: Registering .NET DLL without regasm Pin
Md. Marufuzzaman12-Sep-09 3:46
professionalMd. Marufuzzaman12-Sep-09 3:46 
QuestionCOM Connection Points: Problem to call an function out of an sink class Pin
Juergen_809-Sep-09 2:04
Juergen_809-Sep-09 2:04 
AnswerRe: COM Connection Points: Problem to call an function out of an sink class Pin
Jürgen Jung9-Sep-09 3:38
Jürgen Jung9-Sep-09 3:38 
QuestionRe: COM Connection Points: Problem to call an function out of an sink class Pin
Juergen_809-Sep-09 4:59
Juergen_809-Sep-09 4:59 
AnswerRe: COM Connection Points: Problem to call an function out of an sink class Pin
Stuart Dootson9-Sep-09 10:31
professionalStuart Dootson9-Sep-09 10:31 
QuestionShell Extension + COM permission Pin
Kedrr8-Sep-09 2:25
Kedrr8-Sep-09 2:25 
QuestionCOM Connection Points: Problem to create an instance of an sink object. Pin
Juergen_808-Sep-09 0:01
Juergen_808-Sep-09 0:01 
AnswerRe: COM Connection Points: Problem to create an instance of an sink object. Pin
Stuart Dootson8-Sep-09 3:34
professionalStuart Dootson8-Sep-09 3: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.