Click here to Skip to main content
15,887,350 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak4-Jun-13 10:39
mveDave Kreskowiak4-Jun-13 10:39 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 11:04
treddie4-Jun-13 11:04 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak4-Jun-13 11:12
mveDave Kreskowiak4-Jun-13 11:12 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 11:32
treddie4-Jun-13 11:32 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 12:08
treddie4-Jun-13 12:08 
GeneralRe: FindFirstFileEx() and Unicode Pin
Garth J Lancaster4-Jun-13 12:41
professionalGarth J Lancaster4-Jun-13 12:41 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 16:25
treddie4-Jun-13 16:25 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak4-Jun-13 12:54
mveDave Kreskowiak4-Jun-13 12:54 
treddie wrote:
string variable cannot contain Unicode characters


Considering every single string in .NET is stored as Unicode, that statement is not true. The encoding is UTF-16.

treddie wrote:
for example, "\\?\UNC\d:\?????????\*


The problem with what your looking at is that not every font has glyphs for every Unicode character, so you get boxes for those. In addition, if the string is being displayed by a control or other rendering device that doesn't support the encoding, characters that are not recognized are replaced with question marks. Read this[^].


treddie wrote:
Now I think I see why the string parameter needs to be changed to a pointer to
the path, rather than a string representing the path


Hehe. You never pass a "string". Strings are always passed by pointer. You can only put one value, per parameter, on the stack when function call is made. In the case of strings, or other object that is not an intrinsic type, it's always a pointer.

GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 16:47
treddie4-Jun-13 16:47 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak4-Jun-13 17:37
mveDave Kreskowiak4-Jun-13 17:37 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 19:17
treddie4-Jun-13 19:17 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak4-Jun-13 12:44
mveDave Kreskowiak4-Jun-13 12:44 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 17:11
treddie4-Jun-13 17:11 
GeneralRe: FindFirstFileEx() and Unicode Pin
MicroVirus5-Jun-13 7:32
MicroVirus5-Jun-13 7:32 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak5-Jun-13 9:46
mveDave Kreskowiak5-Jun-13 9:46 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie5-Jun-13 16:29
treddie5-Jun-13 16:29 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 8:15
treddie6-Jun-13 8:15 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak6-Jun-13 10:10
mveDave Kreskowiak6-Jun-13 10:10 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 11:16
treddie6-Jun-13 11:16 
AnswerRe: FindFirstFileEx() and Unicode Pin
Alan N6-Jun-13 13:27
Alan N6-Jun-13 13:27 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 14:13
treddie6-Jun-13 14:13 
AnswerRe: FindFirstFileEx() and Unicode Pin
TnTinMn5-Jun-13 18:14
TnTinMn5-Jun-13 18:14 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 8:08
treddie6-Jun-13 8:08 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 8:22
TnTinMn6-Jun-13 8:22 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 8:53
treddie6-Jun-13 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.