Click here to Skip to main content
15,900,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to force a thread to end?? Pin
Olli2-Aug-02 3:05
Olli2-Aug-02 3:05 
AnswerRe: How to force a thread to end?? Pin
Navin2-Aug-02 3:08
Navin2-Aug-02 3:08 
GeneralRe: How to force a thread to end?? Pin
Olli2-Aug-02 3:16
Olli2-Aug-02 3:16 
GeneralRe: How to force a thread to end?? Pin
Daniel Lohmann2-Aug-02 3:53
Daniel Lohmann2-Aug-02 3:53 
GeneralRe: How to force a thread to end?? Pin
Todd Smith2-Aug-02 4:48
Todd Smith2-Aug-02 4:48 
GeneralRe: How to force a thread to end?? Pin
Navin2-Aug-02 4:53
Navin2-Aug-02 4:53 
AnswerRe: How to force a thread to end?? Pin
Joao Vaz2-Aug-02 5:19
Joao Vaz2-Aug-02 5:19 
QuestionQueryStatus of IOleCommandTarget implemented... errors? Pin
Tommy Svensson2-Aug-02 0:25
Tommy Svensson2-Aug-02 0:25 
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
Generalusing assembly in turbo c++, help Pin
asif m@hmood1-Aug-02 23:42
asif m@hmood1-Aug-02 23:42 
GeneralRe: using assembly in turbo c++, help Pin
PJ Arends2-Aug-02 8:01
professionalPJ Arends2-Aug-02 8:01 
GeneralRe: using assembly in turbo c++, help Pin
asifmahmood2-Aug-02 8:24
asifmahmood2-Aug-02 8:24 
GeneralRe: using assembly in turbo c++, help Pin
PJ Arends2-Aug-02 10:06
professionalPJ Arends2-Aug-02 10:06 
GeneralRe: GOTOXY Pin
RaCeRx30-Oct-02 19:36
RaCeRx30-Oct-02 19:36 
GeneralDate serial <-> day month year Pin
Victor Vogelpoel1-Aug-02 23:31
Victor Vogelpoel1-Aug-02 23:31 
GeneralRe: Date serial <-> day month year Pin
[James Pullicino]1-Aug-02 23:37
[James Pullicino]1-Aug-02 23:37 
GeneralRe: Date serial <-> day month year Pin
Victor Vogelpoel3-Aug-02 7:01
Victor Vogelpoel3-Aug-02 7:01 
Generalchange the tab font of a property sheet from the same tab. Pin
Joan M1-Aug-02 23:14
professionalJoan M1-Aug-02 23:14 
GeneralRe: change the tab font of a property sheet from the same tab. Pin
Tomasz Sowinski1-Aug-02 23:51
Tomasz Sowinski1-Aug-02 23:51 
GeneralCRichEditCtrl MFC Pin
Anonymous1-Aug-02 22:55
Anonymous1-Aug-02 22:55 
GeneralRe: CRichEditCtrl MFC Pin
[James Pullicino]1-Aug-02 23:38
[James Pullicino]1-Aug-02 23:38 
GeneralRe: CRichEditCtrl MFC Pin
Olli2-Aug-02 1:16
Olli2-Aug-02 1:16 
GeneralBitmap -please help Pin
suresh_sathya1-Aug-02 22:06
suresh_sathya1-Aug-02 22:06 
GeneralRe: Bitmap -please help Pin
Christian Graus1-Aug-02 22:33
protectorChristian Graus1-Aug-02 22:33 
GeneralRe: Bitmap -please help Pin
suresh_sathya1-Aug-02 23:15
suresh_sathya1-Aug-02 23:15 
GeneralRe: Bitmap -please help Pin
Davide Pizzolato2-Aug-02 0:30
Davide Pizzolato2-Aug-02 0:30 

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.