Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can my BREW application access resources and strings set in my applications MIF file?

0
Posted

Can my BREW application access resources and strings set in my applications MIF file?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123