Tuesday, January 12, 2016
vs2005 + ppc development environment, read the file path
Write a game, read a map, but the map does not know what position on wince environment, nor absolute path, CreateFile returns are 0xfffff, do not know how to engage.
Engage in a few days, I do not know what the file on!
Please heroes help, send the whole 50 minutes.
Reply:
Is there a ResourceView?
Right click and select Insert Resource, and then select your picture ... and then ...... Ha ha ..
Reply:
Pictures and other resources that can be loaded, but if I want to add other resources to squeeze, such as a txt file or binary stream files. I do not know.
Reply:
If the txt file or a binary stream ..
You put it in the same program in a file Bloom
Direct () opened with OpenFile, then read it ....
Path, you can get the program currently running path
Reply:
Ah these methods are not used up. Is not read, and now do not OpenFile, and with CreateFile
Reply:
Today, more people should be it, so a couple of days
Reply:
How no people?
Reply:
Put your code stickers out first and see what you write on the right path!
Reply:
Is not a file on what issues, and code relations
Reply:
dmMap = CreateFile (TEXT (". \\ map \\ map1"), GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_ARCHIVE, NULL);
I do not know what position the document on the pc machine
Reply:
It is in the "My Device" in the construction of a map folder like, which then build a map1 folder
Reply:
ppc concept is not only using a relative path absolute path ....
Reply:
Root Directory:\
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment