Click here to Skip to main content
15,920,111 members
Home / Discussions / COM
   

COM

 
GeneralComAddin and addin Pin
Gheyret4-Aug-02 18:53
Gheyret4-Aug-02 18:53 
QuestionATL Problems?? Pin
Leesen3-Aug-02 22:56
Leesen3-Aug-02 22:56 
AnswerRe: ATL Problems?? Pin
Vi24-Aug-02 20:12
Vi24-Aug-02 20:12 
QuestionHow to get CLSID for the underlying object. Pin
cagey2-Aug-02 10:04
cagey2-Aug-02 10:04 
AnswerRe: How to get CLSID for the underlying object. Pin
soptest2-Aug-02 13:17
soptest2-Aug-02 13:17 
GeneralRe: How to get CLSID for the underlying object. Pin
Gertjan Schuurmans4-Aug-02 2:55
Gertjan Schuurmans4-Aug-02 2:55 
GeneralCOM+ Remote Transient Event Subscription Pin
d2hilst2-Aug-02 3:56
d2hilst2-Aug-02 3:56 
QuestionImplemented QueryStatus... but I get idl errors? Pin
Tommy Svensson2-Aug-02 0:23
Tommy Svensson2-Aug-02 0:23 
Hi everybody,

I've implemented QueryStatus of the IOleCommandTarget interface. It looks like this:

interface IOleCommandTarget : IUnknown
{
	[helpstring("method Exec")] 
	HRESULT Exec(
		[in] const GUID *pguidCmdGroup, 
		[in] DWORD nCmdID, [in] DWORD nCmdExecOpt, 
		[in] VARIANTARG *pvaIn, 
		[in,out] VARIANTARG *pvaOut);
	[helpstring("method QueryStatus")] 
	HRESULT QueryStatus(
		[in] const GUID *pguidCmdGroup, 
		[in] ULONG cCmds, 
		[in,out] OLECMD *prgCmds, 
		[in,out] OLECMDTEXT *pCmdText);
};


But, when I try to compile the idl file I receive this error;

Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164  
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
Processing E:\development\COM experiments\ProxyObj\ProxyObj.idl
ProxyObj.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\objidl.idl
objidl.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\wtypes.idl
wtypes.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ocidl.idl
ocidl.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oleidl.idl
oleidl.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\servprov.idl
servprov.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\urlmon.idl
urlmon.idl
Processing D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
msxml.idl
E:\development\COM experiments\ProxyObj\ProxyObj.idl(59) : error MIDL2025 : syntax error : expecting a type specification near "OLECMD"
E:\development\COM experiments\ProxyObj\ProxyObj.idl(59) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation 
Error executing midl.exe.

ProxyObj.tlb - 2 error(s), 0 warning(s)


Any idea why? Should I include something special?

Thx,

/Tommy
AnswerRe: Implemented QueryStatus... but I get idl errors? Pin
Vi22-Aug-02 1:22
Vi22-Aug-02 1:22 
GeneralCreating a Typelib Pin
Brigg Thorp1-Aug-02 7:13
Brigg Thorp1-Aug-02 7:13 
GeneralRe: Creating a Typelib Pin
Vi21-Aug-02 19:31
Vi21-Aug-02 19:31 
GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:36
sussStanford Powers31-Jul-02 18:36 
General! SPAM ! Pin
soptest1-Aug-02 7:01
soptest1-Aug-02 7:01 
QuestionNow why doesn't this COMPILE!?!?!? Pin
Tommy Svensson31-Jul-02 6:42
Tommy Svensson31-Jul-02 6:42 
AnswerRe: Now why doesn't this COMPILE!?!?!? Pin
soptest31-Jul-02 9:07
soptest31-Jul-02 9:07 
GeneralNeed a starting point Pin
yeeeooowww31-Jul-02 6:18
yeeeooowww31-Jul-02 6:18 
GeneralIDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
tm31-Jul-02 5:34
tm31-Jul-02 5:34 
GeneralRe: IDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
Lily1831-Jul-02 6:14
Lily1831-Jul-02 6:14 
GeneralRe: IDispatch:Invoke - Runtime Access Violation error when accessing DISPARARAM &dp Pin
tm31-Jul-02 7:35
tm31-Jul-02 7:35 
GeneralCreating a Microsoft Word plugin ! Pin
Maerlin31-Jul-02 5:00
Maerlin31-Jul-02 5:00 
GeneralRe: Creating a Microsoft Word plugin ! Pin
Anonymous31-Jul-02 8:27
Anonymous31-Jul-02 8:27 
QuestionHow to talk to IE Internet Options + misc? Pin
Tommy Svensson31-Jul-02 1:31
Tommy Svensson31-Jul-02 1:31 
QuestionHow can I define packed structure in IDL? Pin
magicast30-Jul-02 22:21
magicast30-Jul-02 22:21 
AnswerRe: How can I define packed structure in IDL? Pin
Mark Janveaux4-Aug-02 20:34
Mark Janveaux4-Aug-02 20:34 
GeneralOLESCRIPT_E_SYNTAX Pin
Roman Nurik30-Jul-02 18:07
Roman Nurik30-Jul-02 18:07 

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.