Re: Feedback on recursive file search...
From: Mark Alexander Bertenshaw (mark.bertenshaw_at_virgin.net)
Date: 11/18/04
- Next message: Jim Carlock: "Re: Problems creating keys under the HKEY_LOCAL_MACHINE in Windows XP"
- Previous message: mayayana: "Re: Problems creating keys under the HKEY_LOCAL_MACHINE in Windows XP"
- In reply to: Schmidt: "Re: Feedback on recursive file search..."
- Next in thread: Schmidt: "Re: Feedback on recursive file search..."
- Reply: Schmidt: "Re: Feedback on recursive file search..."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 18 Nov 2004 00:48:00 -0000
Schmidt wrote:
> "Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> schrieb im
> Newsbeitrag news:%23hjbwnCzEHA.2656@TK2MSFTNGP14.phx.gbl...
>
>>> FindFirst/FindNext is a very good example:
>>> Regarding "light of new knowledge" - everybody who knows about the
>>> implicit Unicode-ANSI-Conversion VB does for String-Params (even in
>>> TypeDefs) sitting inside API-Declares, can speed up the classic
>>> File-Loop by factor 2-3, changing the Strings inside WIN32_FIND_DATA
>>> to ByteArrays.
>
>> Why do that when you can call the Unicode version of the API calls?
>> (I assume that you aren't writing for Win95/98/Me anymore :-) ).
> Because VB converts String-Params in API-Calls *always* to ANSI,
> regardless if the Function is the 'A' or the 'W'-Version - if the
> Params are Byref or Byval.
>
> If you can speed up the Unicode-Function 'FastFindW' in my posted
> example without using ByteArrays - I would like to see how.
What? You're still using Declares? That's what type libraries are for,
because Unicode declarations of parameters are never converted. Google for
WinU.tlb for a good start.
-- Mark Bertenshaw Kingston upon Thames UK
- Next message: Jim Carlock: "Re: Problems creating keys under the HKEY_LOCAL_MACHINE in Windows XP"
- Previous message: mayayana: "Re: Problems creating keys under the HKEY_LOCAL_MACHINE in Windows XP"
- In reply to: Schmidt: "Re: Feedback on recursive file search..."
- Next in thread: Schmidt: "Re: Feedback on recursive file search..."
- Reply: Schmidt: "Re: Feedback on recursive file search..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|