How to start APP and EXE programs

xiaoxiao2021-03-06  98

The Symbian system has two applications: 1, the App program has a graphical user interface (GUI), so it can be seen by the user. 2, the EXE program has no graphical user interface, and cannot run directly from the main menu, so the Exe program is generally hidden running server programs or command line programs. First, manual running procedure If you are a terminal user and you want to run an app program, you only need to properly install this program, then you will discover it in your phone, you can run it directly. Because the EXE program cannot be seen from the main menu, such programs cannot be run directly; if you try to run from Inbox, it will cause security errors (SECURITY ERROR). Small Note: If you pass infrared interface (Irda) or Bluetooth (Bluetooth) If you download this program, it is usually stored in Inbox. So, if you want to run EXE, you first need to install file browsing (file explorer) software, such as Fileman or Fexplorer, browse and locate place to program storage (in mine) 3650 The Inbox directory is E: / system / mail / xxx), then run it. Second, using the code running program Once you know which API functions should be used, you will be a simple matter to run the app or exe file. 1. Run the exe file #include ... _LIT (KmyAppname, "C: //system//apps/Myapp/Myapp.exe"); Eikdll :: Startexel (kmyappname); 2, run The code of the App file is slightly complex, but it allows us to specify a document (document). #include #include ... _LIT (kmyappname, "c: //system//apps//myapp/Myapp.app"); _lit (kmydocname, "C: // Documents // MyApp.dat "); CApaCommandLine * cmd = CApaCommandLine :: NewL (); cmd-> SetLibraryNameL (KMyAppName); cmd-> SetDocumentNameL (KMyDocName); cmd-> SetCommandL (EApaCommandRun); EikDll :: StartAppL (* CMD); 3. Run a browser or other Nokia applications If you want to run a ROM-based Series60 application, you'd better look at this article "Utilizing External Application Views" on the NOKIA forum. Below this code will start the browser (Browser) on the specified page (this code is part of the above article. #include // Apgrfx.lib

Void nnewlcutils :: StartBrowser (const tdesc&) {hbufc * param = hbufc :: newlc (256); param-> des (). Format (_L ("4% s"), & aurl;

// WAP Browser's Constants UidConst Tint KwmlBrowSeruid = 0x10008D39; Tuid ID (Tuid :: UID (Kwmlbrowseruid);

转载请注明原文地址:https://www.9cbs.com/read-124353.html

New Post(0)