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. problem in query interface

problem in query interface

Scheduled Pinned Locked Moved COM
databasecomwindows-adminhardwarehelp
4 Posts 4 Posters 3 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.
  • C Offline
    C Offline
    chandrakar ashish
    wrote on last edited by
    #1

    hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar

    S _ J 3 Replies Last reply
    0
    • C chandrakar ashish

      hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Have a look at the appropriate documentation[^]. You generally create a DllRegisterServer[^] entry point in your DLL and use regsvr32[^] to register it.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • C chandrakar ashish

        hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        You cannot use a COM component unless it is registered on the system.

        «_Superman_» I love work. It gives me something to do between weekends.

        1 Reply Last reply
        0
        • C chandrakar ashish

          hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar

          J Offline
          J Offline
          Jurgen Jung
          wrote on last edited by
          #4

          Google for "Registration-Free COM" you will find lots of information, mostly by microsoft. The "trick" is done by using manifests and activation contexts. :)

          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