Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Creating a new Brew MP Project

The Brew MP Application Wizard generates an application framework for a Brew MP application.

The application framework includes a Brew MP ClassID (BID) file containing a locally-generated ClassID, Component Information File (CIF), Component Application Resource File (CAR), a default icon displayed in the Brew MP Application Manager, and some of the required Brew MP header files.

Note: The locally-generated ClassID is for development use only. Applications ready for market require a unique ClassID, which can be obtained from the http://developer.brewmp.com/tools/class-id-generator on the Brew MP website. It is recommended to obtain a unique ClassID for your application prior to running it on device.

Generate Brew MP application framework

  1. Within Visual Studio select File > New > Project.
  2. Within Project Types, select Brew MP.
  3. Under Templates, select C Application.
  4. A default project name is provided. You can edit the project name, and designate the location on your machine. The Create directory for solution checkbox option should not be selected. Select OK.
  5. The summary screen for the Wizard will appear. Click Finish to create a default application. Click Next if you would like to modify the Brew MP Platform version or executable file format.
  6. If you selected Next, select the Brew MP Platform version and executable file format from the drop-down menus. Click Finish to create the project.
  7. The Wizard creates the Visual Studio Solution. Open the Solution Explorer in Visual Studio to view the generated files.

The build, run or debug command in Visual Studio automatically compiles resource files included in the project. If you want to compile resource files separately from the Visual Studio Solution Explorer, you have the option to right-click a CAR or CIF file, and select Compile. Upon successful compilation of your resource file, the results will display in the Build pane of the Visual Studio output window.

Generate Brew MP extension framework

  1. Within Visual Studio select File > New > Project.
  2. Within Project Types, select Brew MP.
  3. Under Templates, select C Extension.
  4. A default project name is provided. You can edit the project name, and designate the location on your machine. Select OK.
  5. The summary screen for the Wizard will appear. Click Next if you would like to modify the Brew MP Platform version or executable file format. Click Finish to create a default application, which includes a sample application for testing the extension.
  6. If you selected Next, select the Brew MP Platform version and executable file format from the drop-down menus. You are also given the option to include a default Brew MP application to test the extension. Click Finish to create the project.
  7. The Wizard creates the Visual Studio Solution. Open the Solution Explorer in Visual Studio to view the generated files.

Generate Brew MP C Widget framework

  1. Within Visual Studio select File > New > Project.
  2. Within Project Types, select Brew MP.
  3. Under Templates, select C Widget Application.
  4. A default project name is provided. You can edit the project name, and designate the location on your machine. Select OK.
  5. The summary screen for the Wizard will appear. Click Next if you would like to modify the Brew MP Platform version or executable file format. Click Finish to create a default application, which includes a sample application for testing the extension.
  6. If you selected Next, select the Brew MP Platform version and executable file format from the drop-down menus. You are also given the option to include a default Brew MP application to test the extension. Click Finish to create the project.
  7. The Wizard creates the Visual Studio Solution. Open the Solution Explorer in Visual Studio to view the generated files.

Generate Brew MP C Windowed application framework

  1. Within Visual Studio select File > New > Project.
  2. Within Project Types, select Brew MP.
  3. Under Templates, select C Windowed Application.
  4. A default project name is provided. You can edit the project name, and designate the location on your machine. Select OK.
  5. The summary screen for the Wizard will appear. Click Next if you would like to modify the Brew MP Platform version or executable file format. Click Finish to create a default application, which includes a sample application for testing the extension.
  6. If you selected Next, select the Brew MP Platform version and executable file format from the drop-down menus. You are also given the option to include a default Brew MP application to test the extension. Click Finish to create the project.
  7. The Wizard creates the Visual Studio Solution. Open the Solution Explorer in Visual Studio to view the generated files.