News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Fill a listbox 40*faster

Started by jj2007, November 29, 2009, 02:07:05 AM

Previous topic - Next topic

jj2007

Quote from: Jimg on December 03, 2009, 06:07:43 PM
When I run it, it says linecount 1.

It's being read somewhere in masmbasic, right?


Right. Recall is based on the getlines algo. If it fails, then it might be that:
- there is a problem with the fact that it uses SSE2 - do you have a recent CPU?
- you have a modified windows.inc with linefeeds or CR's only instead of CRLF's.

Jimg

duh.....

No, I didn't know it needed sse2.  I have an AMD Athlon XP 3000+, no sse2.  Sorry.

jj2007

#17
Quote from: Jimg on December 03, 2009, 08:53:57 PM
duh.....

No, I didn't know it needed sse2.  I have an AMD Athlon XP 3000+, no sse2.  Sorry.

My fault, not yours. Thanks for testing, Jim. I was convinced that I had implemented a check for SSE2 but nope, it's just an assembly time check for the Masm version...

TestMasmVersion MACRO
  ifidn @Version, <614>
echo You cannot use the MasmBasic library with ml.exe version 614, sorry
.err
  endif
ENDM


Next MasmBasic version will have a runtime check, too.
EDIT: Done

hwnd

Very impressive!

I've always wondered how to fill up the LB really fast (40k+ lines).  Thanks for sharing!   :clap:

Farabi

Nice job jj  :U
17 k+ lines only for a second.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"