Error LNK2001: unresolved external character _CLSID_XYS

There is one idl file in the microsoft sdk file that is not available in VS2005. I use some interfaces from this IDL.

Now this works fine on VS 2010. I want to compile it on VS2005.

I copied the header file to the project directory. But this gives me a compilation error.

When I looked into the header file, the class identifier is defined in it as EXTERN_C const CLSID CLSID_Xyz.

Now it is defined as extern, so it means that it must be declared somewhere else in the code.

So my question is only whether the .h file is sufficient or do I need to include the _i.c file as well.

Any suggestions

+3
source share
1

_i.c, , CLSID. , .c - .c .cpp, , , .

+4

Source: https://habr.com/ru/post/1777012/


All Articles