User`s guide

2 Setting Up Your Build Environment
2-4
Creating an Adaptor Project Using Microsoft Visual C++
As the first step toward building an adaptor, open Microsoft Visual C++ and create a new
project.
Note It is strongly recommended that you use a version of Microsoft Visual Studio
®
. For
information on supported versions, see http://www.mathworks.com/support/compilers/
current_release.
1
Set up any required environment variables—see “Using Environment Variables” on
page 2-3.
2
Start Microsoft Visual C++ 2010.
3
On the Start Page, click New Project.... Visual Studio opens the New Project
dialog box, shown in the following figure. You can also open this dialog box from the
File > New > Project menu.
4
In the New Project dialog box:
Expand Visual C++, under Installed Templates, if needed, and select Win32.
Select Win32 Project.
Enter the name you want to assign to the project in the Name field and specify
where you want to locate the project in the Location field.
You can give your adaptor project any name. A convention used by the toolbox is
to name adaptors as follows:
vendor_name + imaq
where you replace the string vendor_name with something appropriate to
your project. For example, this documentation specifies the project name
MyDeviceImaq. Microsoft Visual C++ uses the project name as the default
adaptor DLL name. To specify a different name for the adaptor DLL, open the
project property pages (Project > Properties), open Linker, click General, and
edit the Output File field.