Click here to Skip to main content
16,016,227 members
Home / Discussions / COM
   

COM

 
GeneralRe: DCOM and ConnectionPoint Pin
Firoz11-Oct-01 2:35
Firoz11-Oct-01 2:35 
GeneralCalling a COM object in an MFC exe Pin
Aza7-Oct-01 5:37
Aza7-Oct-01 5:37 
GeneralRe: Calling a COM object in an MFC exe Pin
Rashid Thadha9-Oct-01 2:40
Rashid Thadha9-Oct-01 2:40 
Generalusing list view in ATL property page Pin
Sameer Bhat7-Oct-01 4:11
Sameer Bhat7-Oct-01 4:11 
GeneralRe: using list view in ATL property page Pin
Amit Dey13-Oct-01 6:27
Amit Dey13-Oct-01 6:27 
GeneralRe: using list view in ATL property page Pin
Sameer Bhat14-Oct-01 2:20
Sameer Bhat14-Oct-01 2:20 
GeneralOLE Control in Visual Basic Pin
7-Oct-01 0:22
suss7-Oct-01 0:22 
QuestionAbout Com:I need help with the following code(simplified)? Pin
star_see5-Oct-01 19:52
star_see5-Oct-01 19:52 
The following is the simplified code:
#include <objbase.h>
interface ix:IUnknown
{
virtual void __stdcall fx()=0;

};
class Try:public ix
{
public:
HRESULT __stdcall QueryInterface(IID& iid,void** ppv){return S_OK;}
virtual ULONG __stdcall AddRef(){return 0;}
virtual ULONG __stdcall Release(){return 0;}
virtual void __stdcall fx(){}
Try(){}
};

void f()
{
Try ptry;
}
--------------------Configuration: try - Win32 Debug-------
d:\files\vc\com\try\try.cpp(23) : error C2259: 'Try' : cannot instantiate abstract class due to following members:
d:\files\vc\com\try\try.cpp(7) : see declaration of 'Try'
d:\files\vc\com\try\try.cpp(23) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
d:\microsoft visual studio\vc98\include\unknwn.h(109) : see declaration of 'QueryInterface'
d:\files\vc\com\try\try.cpp(23) : error C2259: 'Try' : cannot instantiate abstract class due to following members:
d:\files\vc\com\try\try.cpp(7) : see declaration of 'Try'
d:\files\vc\com\try\try.cpp(23) : warning C4259: 'long __stdcall IUnknown::QueryInterface(const struct _GUID &,void ** )' : pure virtual function was not defined
d:\microsoft visual studio\vc98\include\unknwn.h(109) : see declaration of 'QueryInterface'
**********************************************************
I really don't know what's wrong with the code.
Confused | :confused: Confused | :confused: Confused | :confused:
AnswerRe: About Com:I need help with the following code(simplified)? Pin
Shadi Al-Kahwaji6-Oct-01 23:21
Shadi Al-Kahwaji6-Oct-01 23:21 
GeneralRe: About Com:I need help with the following code(simplified)? Pin
star_see20-Oct-01 5:34
star_see20-Oct-01 5:34 
GeneralBeginning - direction Pin
john john mackey5-Oct-01 7:37
john john mackey5-Oct-01 7:37 
GeneralCreating a new thread from within an MTA Pin
Jeremy Pullicino4-Oct-01 5:15
Jeremy Pullicino4-Oct-01 5:15 
GeneralRe: Creating a new thread from within an MTA Pin
Shadi Al-Kahwaji6-Oct-01 23:33
Shadi Al-Kahwaji6-Oct-01 23:33 
GeneralRe: Creating a new thread from within an MTA Pin
Jeremy Pullicino8-Oct-01 21:07
Jeremy Pullicino8-Oct-01 21:07 
GeneralRe: Creating a new thread from within an MTA Pin
13-Oct-01 16:18
suss13-Oct-01 16:18 
GeneralUsing COM object in a C++ software Pin
3-Oct-01 1:06
suss3-Oct-01 1:06 
GeneralRe: Using COM object in a C++ software Pin
Michael P Butler3-Oct-01 1:09
Michael P Butler3-Oct-01 1:09 
GeneralRe: Using COM object in a C++ software Pin
4-Oct-01 22:47
suss4-Oct-01 22:47 
GeneralRe: Using COM object in a C++ software Pin
moliate9-Oct-01 2:15
moliate9-Oct-01 2:15 
GeneralCannot instantiate abstract class due to following members Pin
Shadi Al-Kahwaji2-Oct-01 22:10
Shadi Al-Kahwaji2-Oct-01 22:10 
GeneralRe: Cannot instantiate abstract class due to following members Pin
Michael P Butler2-Oct-01 22:24
Michael P Butler2-Oct-01 22:24 
GeneralRe: Cannot instantiate abstract class due to following members Pin
Shadi Al-Kahwaji2-Oct-01 22:43
Shadi Al-Kahwaji2-Oct-01 22:43 
GeneralRe: Cannot instantiate abstract class due to following members Pin
Michael P Butler3-Oct-01 0:06
Michael P Butler3-Oct-01 0:06 
GeneralRe: Cannot instantiate abstract class due to following members Pin
Michael Dunn2-Oct-01 22:57
sitebuilderMichael Dunn2-Oct-01 22:57 
GeneralRe: Cannot instantiate abstract class due to following members Pin
Michael A Barnhart3-Oct-01 3:19
Michael A Barnhart3-Oct-01 3:19 

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.