How to Dynamically Retrieve MBM file names

Source: Internet
Author: User

In SymbianProgramDuring development, many programmers may directly use "C: // resource/apps //***. A string such as MBM indicates the MBM file. The result is that the C drive can run normally only when the program is installed on the real machine, and the C drive cannot run normally after the program is installed on another drive letter. Therefore, a good practice is to dynamically obtain the MBM file name Based on the installation directory of the program.

BelowCode:

/* "***" Indicates your MBM name, the directory "// resource // apps //" corresponds to the relevant field */<br/> _ partition (kmbmfilename, "C: // resource // apps //***. MBM "); </P> <p> tbuf <64> mbmfile; <br/> mbmfile. copy (kmbmfilename); </P> <p> # ifndef _ wins __< br/>/* for a real machine */<br/> tfilename fullname = ceikonenv :: static ()-> eikappui ()-> application ()-> appfullname (); <br/> tint Pos = fullname. find (_ L (":"); <br/> mbmfile. replace (0, 1, fullname. left (POS); <br/> # endif 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.