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. CLSID..error [modified] urgent pls

CLSID..error [modified] urgent pls

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
8 Posts 5 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.
  • R Offline
    R Offline
    RockyJames
    wrote on last edited by
    #1

    how to avoid these error`s in my project... error C2065: 'CLSID_Test' : undeclared identifier error C2065: 'IID_ITest' : undeclared identifier i have added respective _i.c file also then the following error is coming fatal error C1010: unexpected end of file while looking for precompiled header directive why..? Thanks in before james.. -- modified at 13:32 Wednesday 12th July, 2006

    D N S 3 Replies Last reply
    0
    • R RockyJames

      how to avoid these error`s in my project... error C2065: 'CLSID_Test' : undeclared identifier error C2065: 'IID_ITest' : undeclared identifier i have added respective _i.c file also then the following error is coming fatal error C1010: unexpected end of file while looking for precompiled header directive why..? Thanks in before james.. -- modified at 13:32 Wednesday 12th July, 2006

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      RockyJames wrote:

      how to avoid these error`s in my project... error C2065: 'CLSID_Test' : undeclared identifier error C2065: 'IID_ITest' : undeclared identifier

      Without more information, I'd say a .h file was missing.


      "The largest fire starts but with the smallest spark." - David Crow

      "Judge not by the eye but by the heart." - Native American Proverb

      R 1 Reply Last reply
      0
      • D David Crow

        RockyJames wrote:

        how to avoid these error`s in my project... error C2065: 'CLSID_Test' : undeclared identifier error C2065: 'IID_ITest' : undeclared identifier

        Without more information, I'd say a .h file was missing.


        "The largest fire starts but with the smallest spark." - David Crow

        "Judge not by the eye but by the heart." - Native American Proverb

        R Offline
        R Offline
        RockyJames
        wrote on last edited by
        #3

        i have added .h and .cpp ,i have added them from classwizard,by selecting respective tlb file..

        1 Reply Last reply
        0
        • R RockyJames

          how to avoid these error`s in my project... error C2065: 'CLSID_Test' : undeclared identifier error C2065: 'IID_ITest' : undeclared identifier i have added respective _i.c file also then the following error is coming fatal error C1010: unexpected end of file while looking for precompiled header directive why..? Thanks in before james.. -- modified at 13:32 Wednesday 12th July, 2006

          N Offline
          N Offline
          Neil Van Eps
          wrote on last edited by
          #4

          RockyJames wrote:

          fatal error C1010: unexpected end of file while looking for precompiled header directive

          doesn't that error usually mean you need to include stdafx.h???

          Last modified: Wednesday, July 12, 2006 1:13:22 PM --

          R 1 Reply Last reply
          0
          • N Neil Van Eps

            RockyJames wrote:

            fatal error C1010: unexpected end of file while looking for precompiled header directive

            doesn't that error usually mean you need to include stdafx.h???

            Last modified: Wednesday, July 12, 2006 1:13:22 PM --

            R Offline
            R Offline
            RockyJames
            wrote on last edited by
            #5

            stdafx.h is included in the project..

            1 Reply Last reply
            0
            • R RockyJames

              how to avoid these error`s in my project... error C2065: 'CLSID_Test' : undeclared identifier error C2065: 'IID_ITest' : undeclared identifier i have added respective _i.c file also then the following error is coming fatal error C1010: unexpected end of file while looking for precompiled header directive why..? Thanks in before james.. -- modified at 13:32 Wednesday 12th July, 2006

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

              If the compiler says "undeclared identifier" it means it can't find it. There are two possibilities:  1. A missing header file.  2. The identifies name is wrong or it's in a namespace and you haven't qualified the name with it or put in a using statement to import it. Knock number two on the head by adding no_namespace after the #import. i.e. #import "Voodoo.tlb" no_namespace This tells the compiler not to use namespaces. Steve

              M 1 Reply Last reply
              0
              • S Stephen Hewitt

                If the compiler says "undeclared identifier" it means it can't find it. There are two possibilities:  1. A missing header file.  2. The identifies name is wrong or it's in a namespace and you haven't qualified the name with it or put in a using statement to import it. Knock number two on the head by adding no_namespace after the #import. i.e. #import "Voodoo.tlb" no_namespace This tells the compiler not to use namespaces. Steve

                M Offline
                M Offline
                Malli_S
                wrote on last edited by
                #7

                Is there any other way to use COM components in code without importing (#import) and server module (any compnent file like .tlb ). Can anybody suggest me a sample link for the same...? -Malli...! :rose:****

                S 1 Reply Last reply
                0
                • M Malli_S

                  Is there any other way to use COM components in code without importing (#import) and server module (any compnent file like .tlb ). Can anybody suggest me a sample link for the same...? -Malli...! :rose:****

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

                  When the component is authored the interface is probably described in an IDL or ODL file. If so, when it is compiled with MIDL a type library and some C++ header files are produced. If these files are distributed you can use these for C++. If the interfaces are IDispatch based you could use the library without any type information, but this hard to describe and not the best approach in C++ anyway. 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