Click here to Skip to main content
15,505,126 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie4-Jun-13 18:11
treddie4-Jun-13 18:11 
GeneralRe: FindFirstFileEx() and Unicode Pin
MicroVirus5-Jun-13 8:32
MicroVirus5-Jun-13 8:32 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak5-Jun-13 10:46
mveDave Kreskowiak5-Jun-13 10:46 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie5-Jun-13 17:29
treddie5-Jun-13 17:29 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 9:15
treddie6-Jun-13 9:15 
GeneralRe: FindFirstFileEx() and Unicode Pin
Dave Kreskowiak6-Jun-13 11:10
mveDave Kreskowiak6-Jun-13 11:10 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 12:16
treddie6-Jun-13 12:16 
AnswerRe: FindFirstFileEx() and Unicode Pin
Alan N6-Jun-13 14:27
Alan N6-Jun-13 14:27 
I haven't read all of this thread but I don't see either the Auto or Unicode character set modifiers in your external procedure declarations, which means that the default of Ansi is being applied. This could be the root cause of your string problems as UTF16 encoded strings treated as Ansi will get truncated at the first null, i.e. after the first character.

See Declare statement[^] and also Calling Windows APIs[^] for examples using both Declare and DllImport.

Alan.
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 15:13
treddie6-Jun-13 15:13 
AnswerRe: FindFirstFileEx() and Unicode Pin
TnTinMn5-Jun-13 19:14
TnTinMn5-Jun-13 19:14 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 9:08
treddie6-Jun-13 9:08 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 9:22
TnTinMn6-Jun-13 9:22 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 9:53
treddie6-Jun-13 9:53 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 10:17
TnTinMn6-Jun-13 10:17 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 11:07
treddie6-Jun-13 11:07 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 15:29
treddie6-Jun-13 15:29 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 16:06
TnTinMn6-Jun-13 16:06 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn6-Jun-13 16:41
TnTinMn6-Jun-13 16:41 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 17:07
treddie6-Jun-13 17:07 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie6-Jun-13 19:04
treddie6-Jun-13 19:04 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie10-Jun-13 11:02
treddie10-Jun-13 11:02 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn10-Jun-13 15:44
TnTinMn10-Jun-13 15:44 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie10-Jun-13 17:45
treddie10-Jun-13 17:45 
GeneralRe: FindFirstFileEx() and Unicode Pin
TnTinMn10-Jun-13 18:18
TnTinMn10-Jun-13 18:18 
GeneralRe: FindFirstFileEx() and Unicode Pin
treddie10-Jun-13 19:30
treddie10-Jun-13 19:30 

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.