MAGIC101 QUICK START

Step1:

Open MS VC 6.0.

Step2: Setup your project

  1. Assume your MAGIC101 SDK is installed to D:\MAGIC101

  2. File>>New>>Projects

  3. Choose MAGIC101 AppWizard Beta 1 as your project's type.

  4. Make D:\MAGIC101\CodeTest\HelloWolrd as project's loacation dir.

  5. Make HelloWorld as your project's name. Press OK button.

  6. MAGIC101 AppWizard's option dialogs will appear. In step 1, choose Nokia 9210 640x200 as your target device. Click Next button.

  7. Input a string (such as HLW) as your project's symbol. Input a UID(such as 0x12345678. ) for your application. This is useful for make the device install SIS file. Click Fininsh button.

  8. Click OK in the poped-up dialog.

  9. Now your first MAGIC101 application's project(HelloWorld) are created.

Step3: Build and run your project

  1. Build HelloWorld. It should be no errors or warnings.

  2. Open project settings dialog

  3. At Debug sheet, input D:\MAGIC101\Bin\DRDConsole.exe as your "Executable for debug session" and input D:\MAGIC101\Bin as "Working directory"

  4. Run project. DRDConsole.exe will appear.

  5. Choose HelloWorld in the listbox. Then press "Start" button (or press F1) to run your application.

  6. You'll find two UI frame( MainUI / PlayUI ) are build automaticly for you.

Step4: Do something in your application

  1. Quit your application, back to VC.

  2. Open HWLPlayUI.cpp.

  3. In HWLPlayUI::RenderScene function: after "lpCanvas->Clear();" add tow line:
    lpCanvas->SetFont(lpFonts[0]);//Choose a font for canvas.
    lpCanvas->TextOut(120,20,MAGSTR("Hello World!!")) ;//Draw a label.

  4. Build your project and run again to see different.

Step5: Make your application run under SymbainOS emulator

  1. Open a MS-DOS command window. Goto D:\MAGIC101\CodeTest\HelloWorld\Epoc directory.

  2. Type "makmake HelloWorld vc6".

  3. Back to VC. Open D:\MAGIC101\CodeTest\HelloWorld\Epoc\HelloWorld.dsp

  4. Make sure your "Build target" is "Win32 Uni Debug"

  5. Build your project.

  6. Assume your SymbainOS SDK is installed at D:\Symbian\6.0\NokiaCPP and your emulator's "D:" driver is maped to folder D:\Symbian\6.0\NokiaCPP\Epoc32\Wins\d Copy D:\Symbian\6.0\NokiaCPP\Epoc32\Release\wins\udeb\HellowWorld.dll to D:\Symbian\6.0\NokiaCPP\Epoc32\Wins\d\101\Bin.

  7. Run the emulator's debug version.

  8. If this is your first time runing emulator after install MAGIC101 SDK. Install MGS.SIS located at your emulator's "C:\".

  9. Run "MGS" in "Extra" group.

  10. Same UI with DRDConsole will appear. You can check if your application runs ok.