/* * * Zinzala SDK Introduction (Step 1) * * File : step1.cpp * Purpose : Calorie burner calculator * Author : JLV * Creation : 04/07/03 * Last Update : 08/29/04 * * (C) hexaZen 2003-2004 * * This file is part of an example program for Zinzala. It can be * used, distributed and modified without limitation. * */ #include #include #include #include using namespace zSDK::Cincinella; using namespace zSDK::Farfalla; int main() { // Create the application cApplication lMyApp("hexaZen/phalorieburn",0); if(lMyApp.IsValid()) { // Start the app (and the Photon connection) lMyApp.Run(); // Create lWindow cWindow lWin(uRect(250,100),"calc",eWinNormal,0,kCurrentWorkspace); lWin.SetTitle("Calories-burned Calculator"); lWin.MoveTo(10,10); // show the lWindow now lWin.Show(); // Wait for the end of the app lMyApp.WaitEnd(); } else fprintf(stderr,"Failed the init the application"); }