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
  1. Home
  2. General Programming
  3. COM
  4. DCOM CLASSNOTREG error

DCOM CLASSNOTREG error

Scheduled Pinned Locked Moved COM
helpwindows-admincomsysadminjson
4 Posts 2 Posters 15 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Billy Bang
    wrote on last edited by
    #1

    COSERVERINFO si;
    si.dwReserved1=0;
    si.pwszName=szIP;
    si.pAuthInfo=NULL;
    si.dwReserved2=0;
    IID iid=__uuidof(ITCSUser);
    MULTI_QI qi={&iid,0,0};
    HRESULT hRes=CoCreateInstanceEx(__uuidof(TCSUser),NULL,CLSCTX_REMOTE_SERVER,&si,1,&qi);
    if (FAILED(hRes))
    {
    Log(_T("Can't create user object, error 0x%.8X"),hRes);
    return false;
    }

    I am developing a third party app by using this so-called TCS Api, the GUID of both class and interface(ITCSUser,CTCSUser) can be found in registry. while the CLASSNOTREG error will be generated after executing CoCreateInstanceEx. I have been stuck here so long and not yet figure it out. I am a beginner of COM/DCOM, could anyone help or give a little hint. By the way, this app is run on Windows server 2008 r2, someone told me the OS is not supported DCOM. Is this really mattered?

    L 1 Reply Last reply
    0
    • B Billy Bang

      COSERVERINFO si;
      si.dwReserved1=0;
      si.pwszName=szIP;
      si.pAuthInfo=NULL;
      si.dwReserved2=0;
      IID iid=__uuidof(ITCSUser);
      MULTI_QI qi={&iid,0,0};
      HRESULT hRes=CoCreateInstanceEx(__uuidof(TCSUser),NULL,CLSCTX_REMOTE_SERVER,&si,1,&qi);
      if (FAILED(hRes))
      {
      Log(_T("Can't create user object, error 0x%.8X"),hRes);
      return false;
      }

      I am developing a third party app by using this so-called TCS Api, the GUID of both class and interface(ITCSUser,CTCSUser) can be found in registry. while the CLASSNOTREG error will be generated after executing CoCreateInstanceEx. I have been stuck here so long and not yet figure it out. I am a beginner of COM/DCOM, could anyone help or give a little hint. By the way, this app is run on Windows server 2008 r2, someone told me the OS is not supported DCOM. Is this really mattered?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Billy Bang wrote:

      this so-called TCS Api,

      If this is a third-party product you might want to talk to the people who create it. Also check in your code that all parameters are correct, particularly the value returned by __uuidof(TCSUser).

      B 1 Reply Last reply
      0
      • L Lost User

        Billy Bang wrote:

        this so-called TCS Api,

        If this is a third-party product you might want to talk to the people who create it. Also check in your code that all parameters are correct, particularly the value returned by __uuidof(TCSUser).

        B Offline
        B Offline
        Billy Bang
        wrote on last edited by
        #3

        Thanks for your reply, maybe there is something I did not express very clear. Here is the thing, I was asked to develop a third-party app by using the API of "TCS" which is a app developed by Nokia, it is short for Tetra Connectivity Server and basically a programm used in telecommunication. By adopting this "#import XXX/tcsapi.dll" in my code, I can freely used the api of it(e.g getVoiceCall()). The __uuidof(TCSUser) has value and can be checked in the registry, but the error still be there.

        L 1 Reply Last reply
        0
        • B Billy Bang

          Thanks for your reply, maybe there is something I did not express very clear. Here is the thing, I was asked to develop a third-party app by using the API of "TCS" which is a app developed by Nokia, it is short for Tetra Connectivity Server and basically a programm used in telecommunication. By adopting this "#import XXX/tcsapi.dll" in my code, I can freely used the api of it(e.g getVoiceCall()). The __uuidof(TCSUser) has value and can be checked in the registry, but the error still be there.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It's impossible to guess why that may be happening; maybe you should try re-installing the library. Alternatively, ask Nokia for assistance.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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