Re: About createFile
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
=?Utf-8?B?c2FzaQ==?= <sasi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:D9DDCADE-AAA6-4979-8B17-F0E96391F5FE@xxxxxxxxxxxxx:
Hai,
I want to read a file.In this code i am getting the
invalid
handle.But the Filename is displaying correctly.can any one
suggest me where i did the mistake.
void ReadFILE(char *filename)
{
sprintf(Filename, "TEXT(\"\\\\Storage Card\\\\%s\")", filename);
You shouldn't use TEXT("") inside a string variable.
TEXT("") should be used to declare unicode strings inside your code.
And you are using ASCII strings in your code.
--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.
Relevant Pages
- Re: About createFile
... printf("filename is %s", Filename); ... iam getting invalid handle because it cant able to find the file.I ... not to put unicode text in variables. ... (l'indirizzo di reply di questo messaggio non è ... (microsoft.public.windowsce.platbuilder) - Re: Forward slashes in filenames
... >> for all the strings in temp.txt and replaces all those strings with ... character in a filename or directory record with '/', ... I think Grunff might want to say which kernel he's running. ... What would really help me here is the ISO file generated from the ... (comp.os.linux.misc) - Re: ID3 Tags (#136)
... this script assumes Ruby 1.8.6 style handeling of strings. ... #usage id3.rb filename ... (comp.lang.ruby) - Re: Help required to read and print lines based on the type of first character
... In the above case, "accurate, unambigous and well-expressed specs" are almost pseudocode. ... print "an invalid line" ... I'd say that the most "tricky" part is c., since there's more than one possible solution, but since it's about strings, looking for what features Python strings has to offer, and trying them out in the interactive interpreter should solve the problem very quickly. ... (comp.lang.python) - vfat creates multiple files with the same filename
... invalid utf-8 character in it's name, ... removed from the filename silently. ... mount -o loop,utf8 fatfs /mnt/fatfs ... (Linux-Kernel) |
|