Can my BREW application access resources and strings set in my applications MIF file?
You can access strings in your application’s MIF file via the following APIs: ISHELL_GetAppAuthor(), ISHELL_GetAppCopyright(), ISHELL_GetAppVersion(), ISHELL_ShowCopyright(). These APIs are available in the BREW 2.0 SDK onwards. In all SDK versions, it is possible to use the MIF file as a normal resource file. When developing/submitting an application one does not know what the name of the MIF file will be when the application is downloaded onto the handset. To get the name of the MIF file the following snippet of code can be used. AEEAppInfo ai; // Get the app info, which contains the name of the MIF file if (ISHELL_QueryClass(pMe->a.m_pIShell, AEECLSID_MYAPP, &ai)) { char * szMIFName; // ai.pszMIFcontains the name of the MIF file. szMIFName = ai.pszMIF; } To load the resources from the MIF File the ISHELL_LoadResString() and ISHELL_LoadResImage() functions can be used. BREW will first look for the resource file in the application directory. If not found, BREW will look in the /brew d