Thank u...If the code is in VC++ it would be more helpful..
RevathiRamakumar
Posts
-
BalloonTip on systray -
BalloonTip on systrayThank u ... Will Try and let u know....
-
BalloonTip on systrayHi all... I need to associate a balloon tip to an icon on the system tray.. I have generated the icon and tooltip associated to it... But, I do not know how to associate the balloon tip...The balloon tip appears some where on the top left corner of the screen... How do I ASSOCIATE TO THE SYSTEM TRAY ICON... Code: Show( msg , _T("Server Performance Monitor"),lpPoint, m_hIcon); Thank u...
-
Access Denied in VC++ COMHi Mr.Roger I got it working after changing the Authentication level to NONE in dcomcnfg...Initially it was dEFAULT after changing it to NONE its working fine.. Thank u... :)
-
Access Denied in VC++ COMHi.. Now I could call the methods... I changed the Authentication level as NONE in the DCOM configuration... Its working fine.. Thank u ... :)
modified on Wednesday, April 15, 2009 6:28 AM
-
Access Denied in VC++ COMThank u....Ya I tried them but ,getting Access Denied Error..
-
Access Denied in VC++ COMThanks for ur reply...When I tried calling AddRef() It worked fine... ULONG i = pGetStatus->AddRef();//i=2 But, when the other methods are being called, it gives me access denied error..K I'll keep trying ..Thank u...
-
Access Denied in VC++ COMThanks for the reply Roger..I tried the way u suggested.. I unregistered the server ,built it again and then registered it..I also cleaned up the client and tried to built it again..HRESULT Of ::CoCreateInstance() returned 0 and the interface pointer points a valid address..But, again Access Denied while calling the server method... :(
-
Access Denied in VC++ COMThanks for ur reply..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... HRESULT hr1; hr1 = pGetStatus->raw_Get_Beat(&pbstrTheBeat);//This raises Access Denied /*BSTR does not point to a valid String..It shows 0xc000000 */ if( SUCCEEDED( hr1 ) ) { AfxMessageBox("Text"); } else { _com_error e(hr1); AfxMessageBox(e.ErrorMessage()); } } catch(_com_error e) { AfxMessageBox(e.ErrorMessage(),MB_ICONSTOP);//This tells me ACCESS IS DENIED } I tried to debug..Actually the purpose is that I need to get the CPU and Memory usuage of a Server machine which is remote..I wanted to try it on a local machine first and then to implement on a remote machine..But, in the local machine itself I get Access Denied..Can u please tell me how to solve this...Thank u in advance...
-
Access Denied in VC++ COMIs there something to do with the firewall settings...I'm not sure if firewall settings has to something with COM..Thank u in advance..
-
Access Denied in VC++ COMHo extremely sorry...Now no errors..But y is the access denied...sorry to bug u alot..Thank u..
-
Access Denied in VC++ COMThank u... NO It doesn't work... error C2664: 'raw_GetBeat' : cannot convert parameter 1 from 'unsigned short *** ' to 'unsigned short ** ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast. So, I tried this one.. hr1 = pGetStatus->raw_GetBeat((BSTR*)&pbstrTheBeat); But, still I get ACCESS DENIED... :doh:
-
Access Denied in VC++ COMThank u..Ho it seems I need to know alot...I tried the following... BSTR* pbstrTheBeat = NULL; hr1 = pGetStatus->raw_Get_Beat(pbstrTheBeat); if( SUCCEEDED( hr1 ) ) //-2147023116 { AfxMessageBox("Text"); } else { _com_error e(hr1); AfxMessageBox(e.ErrorMessage()); } And I got the error message ...A null pointer reference was passed to stub... hr1=-2147023116 :doh:
-
Access Denied in VC++ COMHi.. Thanks for the help extended...I have added oleautomation...its an ordinary Interface.. I tried ur suggestion.. But,in the following code I get error ... BSTR* pbstrTheBeat = NULL; hr = pGetStatus->GetBeat(pbstrTheBeat); C2660: 'Get_Beat' : function does not take 1 parameters The prototype and the definition are similar and they just return a single value only..And also the intelligence shows me two methods ie 1.HRESULT raw_Get_Beat(BSTR*) and 2._bstr_t GetBeat(). When I use hr = pGetStatus->raw_Get_Beat(pbstrTheBeat) I dont get any error..But, HRESULT fails.. Why is that so?I dont understand...Can u please help me.. Thank u..
modified on Tuesday, March 31, 2009 2:33 AM
-
Access Denied in VC++ COMHi 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: 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); } }
-
Remote COMHi.. I tried the code.. When I'm trying to create an instance on the remote machine I get ACCESS DENIED error.. I have the security permissions for the DCOM though.. Thank U...:confused:
-
Remote COMThank u..So,u mean to say that it has nothing to do with my remote access...Right..
-
Remote COMHi...I have another doubt..In case of testing both client and server on the local machine I have used this include statement... #import "..\FileServer\FileServer.tlb" using namespace FILESERVERLib; But, When testing the server on the remote machine what kind of import statement Should I give..? Thank u...
-
Remote COMThank u...Let me try out... :)
-
Remote COMNo, Its RDSServer ..I have given it correctly...:confused: CoCreateinstanceEx hr=-2147023174 and for qi.hr I get access violation exception...