Click here to Skip to main content
16,010,876 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralWTL "shared-source" news update Pin
Mike.NET6-Oct-03 10:29
Mike.NET6-Oct-03 10:29 
GeneralAtl Server - CBlobCache Pin
rbeckett6-Oct-03 7:55
rbeckett6-Oct-03 7:55 
GeneralRe: Atl Server - CBlobCache Pin
rbeckett6-Oct-03 8:54
rbeckett6-Oct-03 8:54 
GeneralATL header file... Pin
byblostas5-Oct-03 12:25
byblostas5-Oct-03 12:25 
GeneralRe: ATL header file... Pin
Michael Dunn7-Oct-03 16:19
sitebuilderMichael Dunn7-Oct-03 16:19 
GeneralAbout interface ISimpleFrameSite Pin
Foxray3-Oct-03 20:51
Foxray3-Oct-03 20:51 
GeneralDeskbands with HTML content based on URL Pin
riberollesb@fsb.fr3-Oct-03 6:03
riberollesb@fsb.fr3-Oct-03 6:03 
Generaladding a second interface to coclass Pin
rob agar2-Oct-03 22:08
rob agar2-Oct-03 22:08 
hiya

I have a coclass that implements a dual interface (for use in C#), and I want to add a low level custom interface with the same methods for use by clients written in c++. But I have a couple of problems: firstly, C# picks the wrong method and refuses to compile unless I explicitly cast to the dual interface. Secondly, how do I implement methods from different interfaces with the same signature?

here's the code...
// IFuzzyLogic<br />
[<br />
	object,<br />
	uuid("32273BE2-CB15-47c2-BE09-DAA824A44916"),<br />
	helpstring("IFuzzyLogic Interface"),<br />
	pointer_default(unique),<br />
	hidden<br />
]<br />
__interface IFuzzyLogic : IUnknown<br />
{<br />
	[id(1), helpstring("method CreateModel")] HRESULT CreateModel([in] const char* szFileName, [out,retval] IFuzzyModel** ppModel);<br />
};<br />
<br />
// IFuzzyLogicDual<br />
[<br />
	object,<br />
	uuid("529A2190-6BB0-47A9-B1B4-001CD5981597"),<br />
	dual,	<br />
	helpstring("IFuzzyLogicDual Interface"),<br />
	pointer_default(unique)<br />
]<br />
__interface IFuzzyLogicDual : IDispatch<br />
{<br />
	[id(1), helpstring("method CreateModel")] HRESULT CreateModel([in] BSTR sFileName, [out,retval] IFuzzyModelDual** ppModel);<br />
};



cheers,
Rob
GeneralWTL download Pin
Gaz2-Oct-03 9:49
Gaz2-Oct-03 9:49 
GeneralRe: WTL download Pin
Michael Dunn2-Oct-03 10:53
sitebuilderMichael Dunn2-Oct-03 10:53 
GeneralCreating instances of COM objects inside the module Pin
jparsons2-Oct-03 7:12
jparsons2-Oct-03 7:12 
GeneralRe: Creating instances of COM objects inside the module Pin
Michael Dunn2-Oct-03 7:55
sitebuilderMichael Dunn2-Oct-03 7:55 
GeneralRe: Creating instances of COM objects inside the module Pin
jparsons2-Oct-03 9:37
jparsons2-Oct-03 9:37 
GeneralCompilation error C3702 &quot;ATL is required for COM events&quot; Pin
jparsons2-Oct-03 5:49
jparsons2-Oct-03 5:49 
GeneralRe: Compilation error C3702 &quot;ATL is required for COM events&quot; Pin
jparsons2-Oct-03 7:07
jparsons2-Oct-03 7:07 
GeneralWTL ListViewCtrl Pin
Michael P Butler2-Oct-03 2:26
Michael P Butler2-Oct-03 2:26 
Generalspeed Pin
raastad1-Oct-03 22:20
raastad1-Oct-03 22:20 
GeneralRe: speed Pin
jhwurmbach2-Oct-03 0:02
jhwurmbach2-Oct-03 0:02 
GeneralLine numbers in Edit Control Pin
Derick Cyril Thomas1-Oct-03 16:02
Derick Cyril Thomas1-Oct-03 16:02 
GeneralAn Outlook plug-in issue Pin
dorutzu1-Oct-03 8:03
dorutzu1-Oct-03 8:03 
Generaltyplib marshalling or custom marshalling Pin
umarcool28-Sep-03 22:01
umarcool28-Sep-03 22:01 
GeneralATL 7.0 Book Pin
jparsons27-Sep-03 14:22
jparsons27-Sep-03 14:22 
GeneralHTML PARAM question Pin
alex.barylski27-Sep-03 12:51
alex.barylski27-Sep-03 12:51 
GeneralProblem with ContextMenu Pin
Tommy2k27-Sep-03 10:14
Tommy2k27-Sep-03 10:14 
GeneralRe: Problem with ContextMenu Pin
Michael Dunn27-Sep-03 10:33
sitebuilderMichael Dunn27-Sep-03 10:33 

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.