Click here to Skip to main content
15,847,263 members
Home / Discussions / COM
   

COM

 
QuestionUsing COM to receive cell updates from excel in VB .NET Pin
mmiller0391-Apr-09 6:07
mmiller0391-Apr-09 6:07 
Questionhow to get mail address in outlook express Pin
nikhil3131-Mar-09 23:25
nikhil3131-Mar-09 23:25 
QuestionC++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
ipforce30-Mar-09 5:57
ipforce30-Mar-09 5:57 
AnswerRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
Jonathan Davies2-Apr-09 6:32
Jonathan Davies2-Apr-09 6:32 
GeneralRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
ipforce2-Apr-09 7:08
ipforce2-Apr-09 7:08 
GeneralRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
ipforce2-Apr-09 7:59
ipforce2-Apr-09 7:59 
QuestionUpdating Resource Pin
sumedh_code30-Mar-09 1:55
sumedh_code30-Mar-09 1:55 
QuestionAccess Denied in VC++ COM Pin
RevathiRamakumar30-Mar-09 1:20
RevathiRamakumar30-Mar-09 1:20 
Hi all...I have a server Component which is a inprocess exe and a dialog based client... Server has 3 methods ..One method returning CPU usuage , other method returning the memory usuage and the third method just returns a BSTR String... In client code ,when I try to call the third method(returns the BSTR srting) I get Access Denied error.. How can I overcome this issue...Confused | :confused:
Thank u..

Here's my sample code..(Client).

CoInitialize(NULL);
HRESULT hr = NULL,hr1=NULL;
IGetStatus* pGetStatus;

hr=CoCreateInstance(CLSID_GetStatus,NULL,CLSCTX_LOCAL_SERVER,IID_IGetStatus,(void **)&pGetStatus);

if(SUCCEEDED(hr))
{
try
{
_bstr_t str1 ;
str1 = pGetStatus->GetBeat();
char* Text = _com_util::ConvertBSTRToString(str1);
AfxMessageBox(Text);
::SysFreeString(str1);
UINT CPU_Info = pGetStatus->Get_CPU();
int Memory_Info = pGetStatus->Get_Memory();
}
catch(_com_error e)
{
AfxMessageBox(e.ErrorMessage(),MB_ICONSTOP);
}
}
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz30-Mar-09 4:35
Roger Stoltz30-Mar-09 4:35 
GeneralRe: Access Denied in VC++ COM [modified] Pin
RevathiRamakumar30-Mar-09 20:39
RevathiRamakumar30-Mar-09 20:39 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz30-Mar-09 23:17
Roger Stoltz30-Mar-09 23:17 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar30-Mar-09 23:46
RevathiRamakumar30-Mar-09 23:46 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz31-Mar-09 0:04
Roger Stoltz31-Mar-09 0:04 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar31-Mar-09 0:10
RevathiRamakumar31-Mar-09 0:10 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz31-Mar-09 0:13
Roger Stoltz31-Mar-09 0:13 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar31-Mar-09 0:16
RevathiRamakumar31-Mar-09 0:16 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar31-Mar-09 0:56
RevathiRamakumar31-Mar-09 0:56 
AnswerRe: Access Denied in VC++ COM Pin
Roger Stoltz31-Mar-09 4:17
Roger Stoltz31-Mar-09 4:17 
QuestionRe: Access Denied in VC++ COM Pin
Roger Stoltz31-Mar-09 4:17
Roger Stoltz31-Mar-09 4:17 
AnswerRe: Access Denied in VC++ COM Pin
RevathiRamakumar31-Mar-09 19:32
RevathiRamakumar31-Mar-09 19:32 
GeneralRe: Access Denied in VC++ COM Pin
Roger Stoltz1-Apr-09 7:08
Roger Stoltz1-Apr-09 7:08 
GeneralRe: Access Denied in VC++ COM Pin
RevathiRamakumar1-Apr-09 19:11
RevathiRamakumar1-Apr-09 19:11 
QuestionRe: Access Denied in VC++ COM Pin
Roger Stoltz1-Apr-09 23:57
Roger Stoltz1-Apr-09 23:57 
AnswerRe: Access Denied in VC++ COM Pin
RevathiRamakumar2-Apr-09 0:33
RevathiRamakumar2-Apr-09 0:33 
AnswerRe: Access Denied in VC++ COM Pin
RevathiRamakumar8-Apr-09 2:17
RevathiRamakumar8-Apr-09 2:17 

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.