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

COM

 
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 
RevathiRamakumar wrote:
Actually I couldn't call any of the methods in the interface..Whenever I try to call any of these methods I get Access denied exception...


Confused | :confused:

I assumed you were able to call the two other functions successfully since you wrote
RevathiRamakumar wrote:
when I try to call the third method(returns the BSTR srting) I get Access Denied error.

in your original post.

I suggest you unregister the server, rebuild the complete server and register it.
Clean up the client project, and especially the files generated when #importing the typelib of the server.
Rebuild the client, debug it and verify that the server can be successfully created, i.e. make sure that the HRESULT returned from ::CoCreateInstance() equals zero and your interface pointer points to a valid address.
Also make sure you have the named_guids attribute when #importing since this will declare the CLSID and IIDs correctly for you.


"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
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 
QuestionHow do I programmatically change the Configuration Permissions on a DCOM Object? Pin
raven8er27-Mar-09 0:32
raven8er27-Mar-09 0:32 
AnswerRe: How do I programmatically change the Configuration Permissions on a DCOM Object? Pin
«_Superman_»28-Mar-09 18:20
professional«_Superman_»28-Mar-09 18:20 
GeneralRe: How do I programmatically change the Configuration Permissions on a DCOM Object? Pin
raven8er29-Mar-09 22:35
raven8er29-Mar-09 22:35 
AnswerRe: How do I programmatically change the Configuration Permissions on a DCOM Object? Pin
raven8er29-Mar-09 22:34
raven8er29-Mar-09 22:34 
QuestionHelp with serial scanner to PC connection? Pin
TonyTrokodero26-Mar-09 9:05
TonyTrokodero26-Mar-09 9:05 
AnswerRe: Help with serial scanner to PC connection? Pin
«_Superman_»28-Mar-09 18:23
professional«_Superman_»28-Mar-09 18:23 
QuestionActiveX in IE Pin
Member 471608725-Mar-09 20:54
Member 471608725-Mar-09 20:54 
QuestionAsserting in afxwin1.inl Line: 29 Pin
vibindia24-Mar-09 20:57
vibindia24-Mar-09 20:57 
AnswerAlmost impossible to tell Pin
Baltoro29-Mar-09 10:55
Baltoro29-Mar-09 10:55 
QuestionCustomize context menu of Outlook Express Pin
Crazy Kiya re24-Mar-09 18:05
Crazy Kiya re24-Mar-09 18:05 

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.