Create swdisp.cpp and swdisp.h Files
To create swdisp.cpp and swdisp.h:
In Microsoft Visual C++ 6.0, click File,
New.
Select ATL
COM AppWizard, type a project name in Project
name, and type a location for the files in Location.
Click OK.
Click Finish
and click OK.
Click View,
ClassWizard, click Yes,
and click OK.
Click Add Class,
and then select From a type library.
Browse to the folder where SolidWorks is installed,
select sldworks.tlb, and click
Open.
Select all of the classes, change Header
file to swdisp.h,
and change Implementation file
to swdisp.cpp.
Click OK and
click OK again.
You can also use #import .tlb references.