Create or import a project

You can create a project or open an existing one in Microsoft Visual Studio and populate it with your resources. You can also import a project that you created using the Momentics IDE for BlackBerry.

Convert a Win32 project

If you create a project using the Win32 template, a new BlackBerry solution target is created using the Win32 build target configuration as its template.

To convert a Win32 project to a BlackBerry 10 OS project:

  1. In Microsoft Visual Studio, on the File menu, click Open > Project/Solution and open your Win32 project.
  2. Create a BlackBerry solution target.
  3. Click Close.

Import a Native SDK project

If you have a BlackBerry 10 OS project that was created using the Momentics IDE for BlackBerry and the BlackBerry 10 Native SDK, you can import your existing project into Microsoft Visual Studio. Currently, only C and C++ are supported.

  1. In Microsoft Visual Studio, on the File menu, click New > Project.
  2. In the New Project dialog box, click Empty Project.
  3. In the Name field, enter a name for the project.
  4. In the Location field, choose a location for the project.
  5. If you already have a solution open, in the Solution drop-down list, click Create new solution or Add to solution. If this is a new project, the Solution drop-down list is not available.
  6. Click OK.
  7. In the Solution Explorer, right-click the project name.
  8. Click Import BlackBerry Core Native Project.
  9. In the browser, navigate to your Momentics IDE project and double-click the .cproject file.
  10. In the Import Summary window, review the files that were imported. All files are imported, including the bar-descriptor.xml and error files.
  11. Click OK.

Create a project

You can create a project from scratch. When you use the <Empty> template, a new BlackBerry solution target is created using the default settings defined by Microsoft Visual Studio. When you use this configuration to build or run your app, Microsoft Visual Studio builds using the BlackBerry 10 Native SDK compilers rather than the default Win32 compilers.

  1. In Microsoft Visual Studio, on the File menu, click New > Project.
  2. Click <Empty>.
  3. Enter a name for your project and click OK.
  4. Create a BlackBerry solution target.

When you set your targets, you can start developing your app.

Last modified: 2014-02-25



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus