Click here to Skip to main content
15,917,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ and IDL code sync issue Pin
George_George24-Sep-08 20:51
George_George24-Sep-08 20:51 
QuestionHow a.dll inject into SVCHOST.EXE (process) Pin
ChinaTJBoy23-Sep-08 22:46
ChinaTJBoy23-Sep-08 22:46 
AnswerRe: How a.dll inject into SVCHOST.EXE (process) Pin
Michael Schubert24-Sep-08 0:05
Michael Schubert24-Sep-08 0:05 
AnswerRe: How a.dll inject into SVCHOST.EXE (process) Pin
Sarath C24-Sep-08 1:02
Sarath C24-Sep-08 1:02 
QuestionSTA message pump code in ATL Pin
George_George23-Sep-08 22:07
George_George23-Sep-08 22:07 
Questioncontrol problem Pin
ashishmax4723-Sep-08 22:06
ashishmax4723-Sep-08 22:06 
AnswerRe: control problem Pin
Roger Allen24-Sep-08 1:12
Roger Allen24-Sep-08 1:12 
QuestionTime Format Pin
john563223-Sep-08 21:11
john563223-Sep-08 21:11 
AnswerRe: Time Format Pin
Cedric Moonen23-Sep-08 21:19
Cedric Moonen23-Sep-08 21:19 
AnswerRe: Time Format Pin
Mahesh Kulkarni23-Sep-08 22:39
Mahesh Kulkarni23-Sep-08 22:39 
AnswerRe: Time Format Pin
David Crow24-Sep-08 4:14
David Crow24-Sep-08 4:14 
Questiondispinterface v.s. IDispatch Pin
George_George23-Sep-08 21:00
George_George23-Sep-08 21:00 
AnswerRe: dispinterface v.s. IDispatch Pin
followait23-Sep-08 21:47
followait23-Sep-08 21:47 
GeneralRe: dispinterface v.s. IDispatch Pin
George_George23-Sep-08 21:58
George_George23-Sep-08 21:58 
GeneralRe: dispinterface v.s. IDispatch Pin
CPallini23-Sep-08 22:11
mveCPallini23-Sep-08 22:11 
GeneralRe: dispinterface v.s. IDispatch Pin
George_George23-Sep-08 22:18
George_George23-Sep-08 22:18 
GeneralRe: dispinterface v.s. IDispatch Pin
CPallini23-Sep-08 22:26
mveCPallini23-Sep-08 22:26 
GeneralRe: dispinterface v.s. IDispatch Pin
George_George23-Sep-08 22:47
George_George23-Sep-08 22:47 
There are 3 ways to provide IDispatch interface,

1. Expose interface say IX in QueryInterface, and marking IX dispinterface IDL;

2. Expose interface IDispatch directly in QueryInterface, and coclass implements IDispatch directly;

3. Expose interface say IX (and IX inherits from IDispatch) in QueryInterface, and making coclass implements IX (i.e. dual interface).

I think the differences between 1 and 2 is just we can use dispid property in IDL file if we mark an interface dispinterface, but can not use dispid property in IDL if it is not dispinterface.

Any comments?


regards,
George
AnswerRe: dispinterface v.s. IDispatch Pin
CPallini23-Sep-08 22:09
mveCPallini23-Sep-08 22:09 
GeneralRe: dispinterface v.s. IDispatch Pin
George_George23-Sep-08 22:17
George_George23-Sep-08 22:17 
QuestionCopy Folder File Data [modified] Pin
Davitor23-Sep-08 20:25
Davitor23-Sep-08 20:25 
AnswerRe: Copy Folder File Data Pin
SandipG 23-Sep-08 20:31
SandipG 23-Sep-08 20:31 
GeneralRe: Copy Folder File Data Pin
Davitor23-Sep-08 20:43
Davitor23-Sep-08 20:43 
GeneralRe: Copy Folder File Data Pin
SandipG 23-Sep-08 20:50
SandipG 23-Sep-08 20:50 
GeneralRe: Copy Folder File Data Pin
Davitor23-Sep-08 21:00
Davitor23-Sep-08 21:00 

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.