Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to define a CATID and also which header file to include in order to define a CATID?

C++
HRESULT RegisterClassReqCategory(const CLSID* rclsid, CATID rgcatid,
BOOL bRegister = TRUE);

I am getting the below error if I define a CATID

error C2061: syntax error : identifier 'CATID'


Kindly provide some suggestions.
Posted
Updated 6-Feb-13 6:45am
v2

1 solution

Take a look on the MSDN page for the function RegisterClassReqCategory[^]. At the bottom of the page is the Requirements table which states the header files that should be included. In your case it is ComCat.h. When opening that file, you will find the definition.
 
Share this answer
 
Comments
H.Brydon 6-Feb-13 13:05pm    
Correct and complete... +5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900