CLSID..error [modified] urgent pls
-
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
-
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
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
-
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
i have added .h and .cpp ,i have added them from classwizard,by selecting respective tlb file..
-
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
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 --
-
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 --
stdafx.h is included in the project..
-
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
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 addingno_namespace
after the#import
. i.e.#import "Voodoo.tlb" no_namespace
This tells the compiler not to use namespaces. Steve -
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 addingno_namespace
after the#import
. i.e.#import "Voodoo.tlb" no_namespace
This tells the compiler not to use namespaces. Steve -
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:****
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