Click here to Skip to main content
15,899,825 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: how to get the instance name of an ATL shown in the container. Pin
Rex.xie7-Jun-07 16:47
Rex.xie7-Jun-07 16:47 
GeneralRe: how to get the instance name of an ATL shown in the container. Pin
Steve S11-Jun-07 21:22
Steve S11-Jun-07 21:22 
GeneralRe: how to get the instance name of an ATL shown in the container. Pin
Rex.xie11-Jun-07 21:30
Rex.xie11-Jun-07 21:30 
Questionhow to block print screen with C++ Pin
satish_abiram5-Jun-07 3:17
satish_abiram5-Jun-07 3:17 
AnswerRe: how to block print screen with C++ Pin
Fatbuddha 113-Jun-07 2:21
Fatbuddha 113-Jun-07 2:21 
AnswerRe: how to block print screen with C++ Pin
Paul Conrad14-Jul-07 11:11
professionalPaul Conrad14-Jul-07 11:11 
QuestionATL ActiveX and WM_DEVICECHANGE Pin
jhinze4-Jun-07 6:19
jhinze4-Jun-07 6:19 
QuestionMultiple Inheritance by IDispatch Pin
ajitatif angajetor4-Jun-07 3:36
ajitatif angajetor4-Jun-07 3:36 
Hi everyone,

I have a class that implements an interface that derives from IDispatch directly,and I want to add a new interface which also derives from IDispatch,and then derive my class from this interface too.Expectedly,my problem is ambiguouty (did I spell it correctly??).I use COM_INTERFACE_ENTRY2 macro,but i keep getting error "cannot instantiate abstract class" error in atlcom.h

this is the IDL file:
<code>library TheLibrary
{
	importlib("stdole2.tlb");
	[
		object,
		uuid(),
		dual,
		nonextensible,
		helpstring("Primary dispatch interface for the class."),
		pointer_default(unique)
	]
	interface ISomething : IDispatch
	{
	};

	[
		uuid(),
		helpstring("help string.")
	]
	coclass CSomething
	{
		[default] interface ISomething};

	[
		uuid(),
		nonextensible,
		helpstring("the new Interface"),
	]
	dispinterface INewInterface
	{
	properties:
	methods:
			[id(0), helpstring("method default"), local] HRESULT DefaultMethod(void);
        };</code>


and this is the COM mapping

BEGIN_COM_MAP(CSomething)
    COM_INTERFACE_ENTRY(ISomething)
    COM_INTERFACE_ENTRY2(IDispatch, ISomething)
    COM_INTERFACE_ENTRY(IObjectWithSite)
    COM_INTERFACE_ENTRY_IID(IID_IOleWindow, IDeskBand)
    COM_INTERFACE_ENTRY_IID(IID_IDockingWindow, IDeskBand)
    COM_INTERFACE_ENTRY(IDeskBand)
    COM_INTERFACE_ENTRY_IID(IID_IInputObject,IInputObject)
    COM_INTERFACE_ENTRY(IPropertyNotifySink)
    COM_INTERFACE_ENTRY(INewInterface)
END_COM_MAP()


I tried using interface instead of dispinterface.Didn't help either.I know I'm missing something,but can't figure out what it is...
AnswerRe: Multiple Inheritance by IDispatch Pin
Stuart Dootson4-Jun-07 21:02
professionalStuart Dootson4-Jun-07 21:02 
GeneralRe: Multiple Inheritance by IDispatch Pin
ajitatif angajetor4-Jun-07 22:06
ajitatif angajetor4-Jun-07 22:06 
GeneralRe: Multiple Inheritance by IDispatch Pin
Stuart Dootson4-Jun-07 23:11
professionalStuart Dootson4-Jun-07 23:11 
QuestionCan't stop the ATL Service in windows 2003 Pin
sumathi pandarinathan3-Jun-07 17:08
sumathi pandarinathan3-Jun-07 17:08 
QuestionTwo Custom Context Menu Extensions are Now Mutually Exclusive (Vista) Pin
Jeffrey Walton3-Jun-07 16:58
Jeffrey Walton3-Jun-07 16:58 
AnswerRe: Two Custom Context Menu Extensions are Now Mutually Exclusive (Vista) Pin
Jeffrey Walton4-Jun-07 14:32
Jeffrey Walton4-Jun-07 14:32 
Questionproblem with adding toolbar using shared addin? Pin
Banks K31-May-07 1:37
Banks K31-May-07 1:37 
QuestionOLE DB Pin
User 1278230-May-07 18:59
User 1278230-May-07 18:59 
QuestionCreate an ActiveX control through code Pin
arjunmarwaha29-May-07 18:35
arjunmarwaha29-May-07 18:35 
AnswerRe: Create an ActiveX control through code Pin
Clebson Derivan31-May-07 4:17
Clebson Derivan31-May-07 4:17 
QuestionHow to represent correctly UTF8 strings in WTL controls? Pin
Vlad029-May-07 7:01
Vlad029-May-07 7:01 
AnswerRe: How to represent correctly UTF8 strings in WTL controls? Pin
Michael Dunn29-May-07 9:04
sitebuilderMichael Dunn29-May-07 9:04 
GeneralRe: How to represent correctly UTF8 strings in WTL controls? Pin
Vlad030-May-07 4:09
Vlad030-May-07 4:09 
QuestionHow can i use a ATL Simple Object as word addin? Pin
Banks K28-May-07 21:28
Banks K28-May-07 21:28 
QuestionBHO event about IE focus Pin
dynfrompoly24-May-07 11:21
dynfrompoly24-May-07 11:21 
QuestionCOM applications. Pin
tom groezer24-May-07 9:19
tom groezer24-May-07 9:19 
AnswerRe: COM applications. Pin
Michael Dunn24-May-07 13:46
sitebuilderMichael Dunn24-May-07 13:46 

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.