Monday, February 1, 2016
WM5 PPC problem? Consult experts? ? ?
Is using vs 2005 based on mfc, PDA write a small program, mainly reading and writing files (mainly ini, txt), but when used in reading and writing ini WritePrivateProfileString, but suggesting that the function is not defined;
Read txt file in time to use the following code: CFile Myfile; Myfile.Open ("a.txt", CFile :: modeReadWrite); but that it can not find the corresponding txt file; the same code
It not on pda simulation platform is possible!
Consult experts Why is this? ? ?
Reply:
Myfile.Open ("a.txt", CFile :: modeReadWrite); If the file does not exist it should have created a
Reply:
L "a.txt"
Reply:
pc = new CFile;
pc- & gt; Open (PATH, CFile :: modeRead | CFile :: shareDenyNone)
Reply:
On Mobile is best to use an absolute path
L "\\ a.txt"
Reply:
Then you should check this function resides under WritePrivateProfileString library or header files.
You can also refer to the specific SDK Sample related inside.
Reply:
Ini to read and write the API, are not supported on the wince platform, you need to write your own, I have here a reading program
http://blog.csdn.net/yefanqiu/archive/2007/03/16/1531085.aspx
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment