Search found 67 matches

by Max
Thu Sep 27, 2007 8:33 am
Forum: Coding Questions
Topic: ListIcon Items margins
Replies: 4
Views: 1530

Thanks, Sparkie & srod, I will try it.

Nevertheless, I'm not sure of using so many complex form for so little result.

thanks, again.
by Max
Wed Sep 26, 2007 10:41 am
Forum: Coding Questions
Topic: ListIcon Items margins
Replies: 4
Views: 1530

ListIcon Items margins

Hi @all

I'm setting StringGadget margins* with this message:
SendMessage_(GadgetID(#Gadget), #EM_SETMARGINS, #EC_LEFTMARGIN | #EC_RIGHTMARGIN, margins)


It's possible also to set ListIcon items margings*?. I've looked for in msdn and I've no find anything.


(* margins refers to space between ...
by Max
Sun Sep 16, 2007 9:14 am
Forum: Off Topic
Topic: Help on configure Sygate Personal Firewall
Replies: 8
Views: 1553

Help on configure Sygate Personal Firewall

Hi,
I'm using for longtime this firewall, but it have an annoyance warning:

On first time, I've allowed full access to every new program and I've checked "Remember my answer and do not ask me again for this application".

But on re-compilations for testing the program, firewall says something like ...
by Max
Sat Jul 14, 2007 5:30 pm
Forum: Coding Questions
Topic: Prototype or Import, what's better (and faster)?
Replies: 6
Views: 1843

Thanks for the explanation.
Now it's clear for me. I will continue using IMPORT.
by Max
Sat Jul 14, 2007 10:18 am
Forum: Coding Questions
Topic: Create sticky notes? Ideas/suggestions
Replies: 8
Views: 1682

by Max
Sat Jul 14, 2007 10:12 am
Forum: Coding Questions
Topic: Prototype or Import, what's better (and faster)?
Replies: 6
Views: 1843

thanks, DarkDragon
Now, I know the difference, and I know that I need static imports.
But, there is some advantage in doing it on a way or another one?
I've read somewhere on this forum that Prototypes are faster, is 't true?
by Max
Sat Jul 14, 2007 9:23 am
Forum: Coding Questions
Topic: Prototype or Import, what's better (and faster)?
Replies: 6
Views: 1843

Prototype or Import, what's better (and faster)?

Hi,
Somebody can explain me what construction is better and faster, for use dlls?:

Prototype.l sql_init(mysql.l)
nlib = OpenLibrary(#PB_Any, "libmysql.lib")
mysql_init.sql_init=GetFunction(nlib, "mysql_init")


OR:
Import "libmysql.lib"
mysql_init.l(*mysql.l)


I know the "theoretical ...
by Max
Tue Jul 10, 2007 9:24 am
Forum: Tricks 'n' Tips
Topic: QuickSearch Algorithm (Blitzes Findstring)
Replies: 41
Views: 25883

You're right.
In my example, I've tried only 1 times and it's not significant.
It must try a high number of "len()"....
by Max
Tue Jul 10, 2007 8:52 am
Forum: Tricks 'n' Tips
Topic: QuickSearch Algorithm (Blitzes Findstring)
Replies: 41
Views: 25883


It seems that PB strings being null terminated rather than BSTRs don't have their size pre calced and so when you do a len() (guessing a bit here) the string needs to be traversed to find the null. If you think about other string functions, most would require the length to be calculated at some ...
by Max
Mon Jul 09, 2007 2:55 pm
Forum: Tricks 'n' Tips
Topic: QuickSearch Algorithm (Blitzes Findstring)
Replies: 41
Views: 25883

Can you please give an example of how to use it?

OpenConsole()
Texto.s = "This is a text of any number of characters"
LenBase = 5 * 1024 * 1024
StringBase.s = space(LenBase)
*MemBase = @StringBase
For x = 0 To LenBase-1
PokeB(*MemBase + x, Random(240)+15) ; avoid x00 character
Next ...
by Max
Mon Jul 09, 2007 9:59 am
Forum: Tricks 'n' Tips
Topic: QuickSearch Algorithm (Blitzes Findstring)
Replies: 41
Views: 25883

Very good job :D :D :D

But you 've forget the memoryArray structure:

Code: Select all

Structure MemoryArray
    char.c[0]
EndStructure
my results on 5MB string (5000 searches) are:
FindString: 93.578 secs
QuickSearch: 19.766 secs
by Max
Fri Jul 06, 2007 10:28 am
Forum: General Discussion
Topic: Code on forum
Replies: 12
Views: 2057

michaeled314 wrote:But if the version is out of date then it will take a long time to edit the match the current version. Especially on searches.
I agree. But I prefer, if possible, that the "forum search" could search between dates.
Very often, I read posts so ancient that their code already is not useful.
by Max
Wed Jul 04, 2007 11:52 am
Forum: Announcement
Topic: ListerPlugin for TotalCommander
Replies: 15
Views: 4638

OK!, this way, it runs fine.
many thanks
by Max
Wed Jul 04, 2007 10:17 am
Forum: Announcement
Topic: ListerPlugin for TotalCommander
Replies: 15
Views: 4638

Sorry, ts-soft

CTRL-C or "Copy like text" in "Edit menu" don't work.

At this moment it's the only bug I've find.

BR.