Click here to Skip to main content
15,883,337 members
Home / Discussions / COM
   

COM

 
AnswerRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
Jonathan Davies2-Apr-09 5:32
Jonathan Davies2-Apr-09 5:32 
GeneralRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
ipforce2-Apr-09 6:08
ipforce2-Apr-09 6:08 
GeneralRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
ipforce2-Apr-09 6:59
ipforce2-Apr-09 6:59 
QuestionUpdating Resource Pin
sumedh_code30-Mar-09 0:55
sumedh_code30-Mar-09 0:55 
QuestionAccess Denied in VC++ COM Pin
RevathiRamakumar30-Mar-09 0:20
RevathiRamakumar30-Mar-09 0:20 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz30-Mar-09 3:35
Roger Stoltz30-Mar-09 3:35 
GeneralRe: Access Denied in VC++ COM [modified] Pin
RevathiRamakumar30-Mar-09 19:39
RevathiRamakumar30-Mar-09 19:39 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz30-Mar-09 22:17
Roger Stoltz30-Mar-09 22:17 
You probably have the "dual" attribute added to the interface.
If this is the case you should remove it.

The dual attribute mean that a client can use the interface as an ordinary COM virtual table based interface and as a dispatch (automation) interface.
Read more here[^].

When the typelib is imported and the interface is a "dual" interface, two functions will be declared for each interface function; one for the dispinterface and one for the "raw" virtual table based interface.
If you add the "raw_interfaces_only" attribute to the #import you tell the preprocessor to declare functions only for the vtable based part of the interface.
Read more here[^].


RevathiRamakumar wrote:
When I use hr = pGetStatus->raw_Get_Beat(pbstrTheBeat) I dont get any error..But, HRESULT fails..


If you add the "raw_interfaces_only" attribute, the "raw" prefix will be removed from the name of this function.

So, the call fails....
What is the error code and what do you suspect may be wrong?


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar30-Mar-09 22:46
RevathiRamakumar30-Mar-09 22:46 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz30-Mar-09 23:04
Roger Stoltz30-Mar-09 23:04 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar30-Mar-09 23:10
RevathiRamakumar30-Mar-09 23:10 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz30-Mar-09 23:13
Roger Stoltz30-Mar-09 23:13 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar30-Mar-09 23:16
RevathiRamakumar30-Mar-09 23:16 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar30-Mar-09 23:56
RevathiRamakumar30-Mar-09 23:56 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz31-Mar-09 3:17
Roger Stoltz31-Mar-09 3:17 
QuestionRe: Access Denied in VC++ COM Pin
Roger Stoltz31-Mar-09 3:17
Roger Stoltz31-Mar-09 3:17 
AnswerRe: Access Denied in VC++ COM Pin
RevathiRamakumar31-Mar-09 18:32
RevathiRamakumar31-Mar-09 18:32 
GeneralRe: Access Denied in VC++ COM Pin
Roger Stoltz1-Apr-09 6:08
Roger Stoltz1-Apr-09 6:08 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar1-Apr-09 18:11
RevathiRamakumar1-Apr-09 18:11 
QuestionRe: Access Denied in VC++ COM Pin
Roger Stoltz1-Apr-09 22:57
Roger Stoltz1-Apr-09 22:57 
AnswerRe: Access Denied in VC++ COM Pin
RevathiRamakumar1-Apr-09 23:33
RevathiRamakumar1-Apr-09 23:33 
AnswerRe: Access Denied in VC++ COM Pin
RevathiRamakumar8-Apr-09 1:17
RevathiRamakumar8-Apr-09 1:17 
AnswerRe: Access Denied in VC++ COM Pin
Vi21-Apr-09 21:20
Vi21-Apr-09 21:20 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar1-Apr-09 23:38
RevathiRamakumar1-Apr-09 23:38 
GeneralRe: Access Denied in VC++ COM [RESOLVED] Pin
RevathiRamakumar8-Apr-09 1:08
RevathiRamakumar8-Apr-09 1:08 

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.