Click here to Skip to main content
15,885,278 members
Home / Discussions / COM
   

COM

 
Questionnew to this Pin
eclipsdrs14-Sep-09 7:56
eclipsdrs14-Sep-09 7:56 
AnswerRe: new to this Pin
Stuart Dootson14-Sep-09 12:39
professionalStuart Dootson14-Sep-09 12:39 
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 
ok, thanks.

Now I made the following steps in Visual Studio:

-> Add Class --->Simple ATL-Object with Connection Points. With that the ATL support was added to my project.

After that the project could be compiled without any problem.

Now I click with the right mouse on the new class I've created with the ATL OBject and choose "Implement interface". With that I can now navigate to the .exe file and implement all the interfaces I need.

And now after that I got the following message after I tried to compile it:
Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlcom.h(1868) : error C2259: 'ATL::CComObject<Base>': Instance of abstract class could not be built1> with
1> [
1> Base=CEGR_COM
1> ]
1> because of the following member:
1> "HRESULT ICOLE::cSetLanguage(BSTR,VARIANT_BOOL *)": is abstract
1> c:\dev\cw_source\vitra scene\release\configurator.tlh(605): Siehe Deklaration von 'ICOLE::cSetLanguage'
1> "HRESULT ICOLE::cSetDefaultCurrency(BSTR,VARIANT_BOOL *)": ist abstract
.
.
.
.
.

Ok, all these function bodys are now in an TEST_COM.h and in the configurator.tlh file. The TEST_COM.cpp is empty. I don't know why this error message now will come up. The error message will come only for a few of the functions in the .tlh file, not for all.

.
.
.
virtual HRESULT __stdcall get_DimensionZ (
/*[out,retval]*/ double * Value ) = 0;
virtual HRESULT __stdcall put_DimensionZ (
/*[in]*/ double Value ) = 0;
virtual HRESULT __stdcall get_ErrorCode (
/*[out,retval]*/ short * Value ) = 0;
virtual HRESULT __stdcall put_ErrorCode (
/*[in]*/ short Value ) = 0;
virtual HRESULT __stdcall cInitializeProperties ( ) = 0;

// All the functions below will cause an error message

virtual HRESULT __stdcall cSetLanguage (
/*[in]*/ BSTR pLanguage,
/*[out,retval]*/ VARIANT_BOOL * Result ) = 0;
virtual HRESULT __stdcall cSetDefaultCurrency (
/*[in]*/ BSTR pCurrency,
/*[out,retval]*/ VARIANT_BOOL * Result ) = 0;
virtual HRESULT __stdcall cShowCatalogChooser (
/*[out,retval]*/ VARIANT_BOOL * Result ) = 0;
.
.
.

Any ideas?
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 
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 

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.