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. C / C++ / MFC
  4. Using the Library

Using the Library

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomtutorial
3 Posts 3 Posters 0 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.
  • I Offline
    I Offline
    itkid
    wrote on last edited by
    #1

    Hi, I want to pass the reference(test) of the interface (ITest) define inside the COM DLL (TestCom.dll) in my application function.Example GetMerchItemType( TestComLib::ITest &test, int Temp) However I am facing the following error. error C2653: 'TestComLib' : is not a class or namespace name error C2061: syntax error : identifier 'ITest' Can you please help me resolve this error. Thanks :) -- modified at 3:42 Friday 10th March, 2006

    M S 2 Replies Last reply
    0
    • I itkid

      Hi, I want to pass the reference(test) of the interface (ITest) define inside the COM DLL (TestCom.dll) in my application function.Example GetMerchItemType( TestComLib::ITest &test, int Temp) However I am facing the following error. error C2653: 'TestComLib' : is not a class or namespace name error C2061: syntax error : identifier 'ITest' Can you please help me resolve this error. Thanks :) -- modified at 3:42 Friday 10th March, 2006

      M Offline
      M Offline
      MF
      wrote on last edited by
      #2

      You have to import the typelib of the testcom.dll into your project.

      1 Reply Last reply
      0
      • I itkid

        Hi, I want to pass the reference(test) of the interface (ITest) define inside the COM DLL (TestCom.dll) in my application function.Example GetMerchItemType( TestComLib::ITest &test, int Temp) However I am facing the following error. error C2653: 'TestComLib' : is not a class or namespace name error C2061: syntax error : identifier 'ITest' Can you please help me resolve this error. Thanks :) -- modified at 3:42 Friday 10th March, 2006

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        Search for the definition of ITest. Is it enclosed in a namespace called TestComLib? I assume you're using #import. If you are you'll need to look in the .TLH and .TLI files. Steve

        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