Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

RevathiRamakumar

@RevathiRamakumar
About
Posts
26
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • BalloonTip on systray
    R RevathiRamakumar

    Thank u...If the code is in VC++ it would be more helpful..

    C / C++ / MFC sysadmin performance tutorial question

  • BalloonTip on systray
    R RevathiRamakumar

    Thank u ... Will Try and let u know....

    C / C++ / MFC sysadmin performance tutorial question

  • BalloonTip on systray
    R RevathiRamakumar

    Hi 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...

    C / C++ / MFC sysadmin performance tutorial question

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Hi 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... :)

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Hi.. 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

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Thank u....Ya I tried them but ,getting Access Denied Error..

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Thanks 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...

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Thanks 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... :(

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Thanks 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...

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Is there something to do with the firewall settings...I'm not sure if firewall settings has to something with COM..Thank u in advance..

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Ho extremely sorry...Now no errors..But y is the access denied...sorry to bug u alot..Thank u..

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Thank 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:

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Thank 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:

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    Hi.. 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

    COM help c++ com sysadmin performance

  • Access Denied in VC++ COM
    R RevathiRamakumar

    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: 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); } }

    COM help c++ com sysadmin performance

  • Remote COM
    R RevathiRamakumar

    Hi.. 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:

    C / C++ / MFC c++ com sysadmin help question

  • Remote COM
    R RevathiRamakumar

    Thank u..So,u mean to say that it has nothing to do with my remote access...Right..

    C / C++ / MFC c++ com sysadmin help question

  • Remote COM
    R RevathiRamakumar

    Hi...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...

    C / C++ / MFC c++ com sysadmin help question

  • Remote COM
    R RevathiRamakumar

    Thank u...Let me try out... :)

    C / C++ / MFC c++ com sysadmin help question

  • Remote COM
    R RevathiRamakumar

    No, Its RDSServer ..I have given it correctly...:confused: CoCreateinstanceEx hr=-2147023174 and for qi.hr I get access violation exception...

    C / C++ / MFC c++ com sysadmin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups