Developer Documentation Library > Data Model > Extending the UNICOM Intelligence Data Model > Creating a Metadata Source Component (MDSC) > Creating an MDSC in Visual C++
 
Creating an MDSC in Visual C++
This topic describes the steps you need to take to create a read-enabled MDSC in Visual C++.
Creating the project
1 From the File menu in Visual C++, choose New, and then select the Project tab.
2 From the list of project types, select ATL COM AppWizard.
3 Enter the Project name and Location, and then click OK.
The ATL COM AppWizard dialog opens.
4 Select Dynamic Link Library (DLL) and click Finish.
Visual C++ now creates your MDSC project.
Creating the COM class
1 From the Insert menu, choose New Class.
The New Class dialog opens.
2 In the Class Type list, select ATL Class, then enter a Name, and click OK.
Visual C++ now creates an interface and an .rgs file with names based on the name you gave the class. For example, if you named your class CMyMetadata, the interface is called IMyMetadata and the .rgs file is called MyMetadata.rgs.
See also
Adding MDSC.idl and DMProperties.idl to the project
Specifying the include directory for MDSC.idl
Including MDSC_i.c in the .cpp file
Setting up the project to implement the MDSC interface
Creating a Metadata Source Component (MDSC)