Setup the project.
Use the "MFC AppWizard(exe)". Call the project "MatlabInterfacingEngine".
Install the "Automation" option.
Install the "Single Documents" and "Document/View architecture support".
Remove "Printing and print preview". Leave "Initial status
bar".
Change the basic view class to "CEditView".
Install other options on your preference.
Add the file libeng.lib (Matlab component) to your project.