Stringpoints
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 15 articles for 0.303 sec
Dear all, I need to sort a number of strings. Until now, I've done that with ArmSort, but I'd like to abandon the use of arrays, since they cannot be redimensioned and since they tend to eat memory each time when you DIM them locally. Is it possible to sort a number of strings that are kept in a memory block, without the intervention of arrays? I believe that OS_HeapSort has been designed     

Group: comp.sys.acorn.programmer · Group Profile · Search for Stringpoints in comp.sys.acorn.programmer
Author: Paul Sprangers
Date: Apr 4, 2008 07:57

Ah! Thanks, corrected now and all fine. RBS "Schmidt" <sss@online.de> wrote in message news:OvxrfbIgIHA.4536@TK2MSFTNGP06.phx.gbl... "RB Smissaert" <bartsmissaert@blueyonder.co.uk> schrieb im Newsbeitrag news:uQS$TMIgIHA.5036@TK2MSFTNGP06.phx.gbl... Or do I have this code block wrong: 50 On Error Resume Next 'spans a Long-Array (pArr()) over the StringPointers
Show full article (0.82Kb)
"RB Smissaert" <bartsmissaert@blueyonder.co.uk> schrieb im Newsbeitrag news:uQS$TMIgIHA.5036@TK2MSFTNGP06.phx.gbl... > Or do I have this code block wrong: > > 50 On Error Resume Next > 'spans a Long-Array (pArr()) over the StringPointers in Arr() > 60 sapArr.cDims = 1 > 70 sapArr.cbElements = 4 'Bytes used by each StrPointer > 80 sapArr.lLbound = LBound(Arr     

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: RB Smissaert
Date: Mar 7, 2008 12:00

Olaf, I just found something that seems somewhat worrying. When I run this function from VBA or if I have Remove array bounds checks unchecked then there are array out of bounds errors. First one is at this line: pV(0) = pArr((Lo + Hi) \ 2) When I put On Error Resume Next before that line then I get an out of bounds error at: Do While Arr(j) V(0) as j is -1 At a quick test it
Show full article (5.54Kb) · Show article thread
Thanks, have tested and that indeed fixes it all nicely. I was trying to fix this, but not being familiar with SafeArray etc. I gave up after a few crashes (fatal) of Excel. RBS "Schmidt" <sss@online.de> wrote in message news:u2XbLPGgIHA.3400@TK2MSFTNGP03.phx.gbl... > > "RB Smissaert" <bartsmissaert@blueyonder.co.uk> schrieb im Newsbeitrag > news:OhgkOnDgIHA.5164@TK2MSFTNGP03.phx.gbl     

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: Schmidt
Date: Mar 7, 2008 10:58

"RB Smissaert" <bartsmissaert@blueyonder.co.uk> schrieb im Newsbeitrag news:OhgkOnDgIHA.5164@TK2MSFTNGP03.phx.gbl... [pointerbased, nonrecursive QSort for String-Arrays] I was trying to adapt this to sort 1-D 1-based string arrays, but sofar no success yet. Could anybody tell me how this should be adapted? Sorry about that, the routine was already meant to work with 1D-Stringarrays
Show full article (5.19Kb) · Show article thread
Use this code posted by Olaf Schmidt to sort a 1-D 0-based string array and it is very fast. I was trying to adapt this to sort 1-D 1-based string arrays, but sofar no success yet. Could anybody tell me how this should be adapted? Option Explicit '(native compiled, all options this Sort needs 0.19 sec for 20000 'Random Strings of 200'er length on a PIII 500). Private Type SAFEARRAY1D     

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: RB Smissaert
Date: Mar 7, 2008 10:42

Using a database for this definitely is overkill, but if you want to use database (as a learning experience) then SQLite seems a good option. Free, very fast and very simple. Secondly, if you want a very fast sort of a 1-D string array then this code, which I got from Olaf Schmidt will do the job. Compile with all fast compiler options: Option Explicit '***Into a form '(native compiled
Show full article (3.02Kb) · Show article thread
Ah, no, good point Robert! In C/C++, the built-in type char is for 8-bit characters, and wchar_t is a typedef for wide characters (usually 16 bits). TCHAR is a macro that points to one of the other depending on whether you're compiling with UNICODE support or not. However, a BSTR is a physical structure rather than a mere character type. It contains Unicode characters, preceded by a 32-bit character     

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: RB Smissaert
Date: Mar 7, 2008 09:49

I take it that TCHAR* is the equivalent of BSTR? Just asking so I can file it away for future reference if it is. Rob "Tony Proctor" <tony_proctor@aimtechnology_NoMoreSPAM_.com> wrote in message news:eryaILD0HHA.3788@TK2MSFTNGP02.phx.gbl... Since the C++ code is already waiting for a real Unicode BSTR argument then it should be just a matter of changing the VB code For
Show full article (2.31Kb) · Show article thread
    

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: Schmidt
Date: Mar 7, 2008 06:47

Show full article (1.95Kb) · Show article thread
    

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: RB Smissaert
Date: Mar 7, 2008 01:58

Show full article (3.90Kb)
    

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: RB Smissaert
Date: Sep 27, 2007 14:55

Show full article (7.60Kb) · Show article thread
    

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: Tony Proctor
Date: Jul 27, 2007 12:25

Show full article (3.73Kb) · Show article thread
    

Group: microsoft.public.vb.general.discussion · Group Profile · Search for Stringpoints in microsoft.public.vb.general.discussion
Author: Robert Morley
Date: Jul 27, 2007 10:52

Show full article (2.69Kb) · Show article thread
1 · 2 · next