Developer Documentation Library > Data Model > Extending the UNICOM Intelligence Data Model > Creating a Metadata Source Component (MDSC) > Creating an MDSC in Visual C++ > Setting up the project to implement the MDSC interface
 
Setting up the project to implement the MDSC interface
You now need to amend the project's .idl file so that it implements the MDSC Interface.
1 In the File view in Visual C++, double-click the project’s .idl file.
2 Add the line import "MDSC.idl"; at the top of the file, for example:
import "oaidl.idl";
import "ocidl.idl";
import "MDSC.idl";
3 Add the line interface IMetadataLoad; to the definition of the coclass:
coclass myMetadata
{
  [default] interface IMyMetadata;
  interface IMetadataLoad;
};
4 Compile project .idl file.
Visual C++ now generates the type library for the project and includes the IMetadataLoad interface.
5 In the Class view in Visual C++, right‑click the new class, and then click Implement Interface.
6 Select IMetadataLoad, and then click OK.
When Visual C++ has generated the additional code, the project is ready for you to add the code that populates the MDM Document with your proprietary metadata.
For information about registering the MDSC, see Adding registration support to a DSC.
See also
MDSC interface
Populating the MDM Document
Visual C++ examples
Adding registration support to a DSC
Creating a Metadata Source Component (MDSC)
Creating an MDSC in Visual Basic
Creating an MDSC in Visual C++