Search found 62 matches

by hippy
Dec 27, 2005 15:47
Forum: Tips and Tricks
Topic: ASM Code
Replies: 29
Views: 9539

AMD K6-2/500 - Win98SE

1: 0.5900157562145978 sec
2: 0.4311101426437745 sec
3: 0.2104343016144412 sec
by hippy
Dec 27, 2005 15:38
Forum: General
Topic: is there any string replacement function in FB
Replies: 34
Views: 6986

This may help set you on your way. Code taken from a non-FB project so it could be made more FB-like ... Declare Function ReplaceFirst$(source$,match$,replacement$) Declare Function ReplaceAll$(source$,match$,replacement$) l$ = "XXX" l$ = ReplaceAll$(l$,"X",&q...
by hippy
Dec 27, 2005 3:30
Forum: Beginners
Topic: Integer Division Problem ?
Replies: 15
Views: 3231

Just for the record having tried it; 155.75\1 giving 156 is the behaviour for Visual Basic 6.0, FirstBasic and PowerBasic 2.10f.
by hippy
Dec 17, 2005 3:41
Forum: Tips and Tricks
Topic: FreeBASIC CRC32
Replies: 31
Views: 10783

Re: CRC32 wrong results

"It exists dozens of implementations of CRC-32, each one gives a diffrent result. The trick is in choosing the right one...." NO. The implementations can vary in speed, but they definitely MUST GIVE all same results. Says who ? CRC-32 is an algorithm which ( I paraphrase ) specifies how to calculat...
by hippy
Dec 10, 2005 18:52
Forum: Beginners
Topic: File Attributes
Replies: 10
Views: 3175

Thanks for the example code.
by hippy
Dec 07, 2005 18:24
Forum: Windows
Topic: Checking the serial interface?
Replies: 2
Views: 1248

OPEN COM "COM1:..." AS #fileHandle
IF LOC(fileHandle) > 0 THEN ...
by hippy
Dec 02, 2005 14:09
Forum: General
Topic: ByVal for strings
Replies: 4
Views: 1068

For most end-users, how the strings are implemented could be called an irrelevancy; to all intents and purposes they are no different to other variables and thus ByVal would be expected to work on strings, exactly as it does in VB. If one doesn't wish for a local copy to be pushed to the stack a ByR...
by hippy
Nov 29, 2005 10:08
Forum: General
Topic: Dir Bug?
Replies: 4
Views: 1130

I would like to see FB drop backward compatibility here in favor of simplicity I'd personally like to see FB retain the compatibility but add an equally simply mechanism to provide the new functionality. The number of attribute values used would allow new 'virtual attribute values' ( say, 128 ) to ...
by hippy
Nov 24, 2005 14:45
Forum: Beginners
Topic: Multidimensional array (as in FORTRAN or as in C)
Replies: 6
Views: 1453

See MID$

Code: Select all

a$ = "Hello"
Mid$(a$,3) = "xx"
PRINT a$ ' prints "Hexxo"
by hippy
Nov 23, 2005 17:13
Forum: Beginners
Topic: easy GUI?
Replies: 13
Views: 2937

I've put the latest version up, with that COM fixed - some compilation warnings but it runs okay for me. I'll admit that work on WinGuiFb has efectively stalled. I'm primarily interested in FB for porting to Linux. I have core code written in PowerBasic/DOS ( chosen to enforce a GUI/code split and t...
by hippy
Nov 16, 2005 17:22
Forum: Beginners
Topic: Why wont my prog wark?
Replies: 7
Views: 2030

seeing how this method was shot down, I don't guess I can use it with a sound mind or reccomend it. That is a question only answered by knowing how strong you want the protection on your encrypted files to be. Many end-users may look at a simply encrypted file and throw in the towel right away. I u...
by hippy
Nov 15, 2005 11:36
Forum: Windows
Topic: Windows SendMessage API - WM_GETTEXT
Replies: 2
Views: 1471

Many thanks. I'd got my Batch File pointing back at 0.14 when I thought I was testing 0.15. That worked but dropped the last char, but it was enough to get me sorted ... textLength% = SendMessage(hCtrl, WM_GETTEXTLENGTH, 0, 0) if textLength% = 0 then textData$ = "" else textData$ =...
by hippy
Nov 15, 2005 3:37
Forum: Windows
Topic: Windows SendMessage API - WM_GETTEXT
Replies: 2
Views: 1471

Windows SendMessage API - WM_GETTEXT

Demonstrating my ignorance of Windows API and FB ... How do I read the text from a Windows TextBox control ? The textLength% is correct, but I'm then doing something wrong or stupid ... textLength% = SendMessage(hCtrl, WM_GETTEXTLENGTH, 0, 0) textData$ = String$(textLength%+1, Chr$(0...
by hippy
Nov 14, 2005 22:34
Forum: General
Topic: DIR$
Replies: 4
Views: 1221

dir("*",32) only returns the filenames That's because Dir$("*",32) is only returning things which have the archive bits set; if any of your directories had the archive bit set they'd be returned also. At the command line use "ATTRIB +A directoryname" and your directory will then be returned with Di...
by hippy
Nov 13, 2005 3:13
Forum: Linux
Topic: Critical bug in Freebasic 0.14...
Replies: 17
Views: 6980

i agree Byval doesn't make much sense there Firstly apologies for also reporting this behaviour as a bug on SF when you'd already dealt with it here. I must say that I don't find the ByVal behaviour acceptable at all ( as a 'bodged, amateur effort' yes, but not for something like FB which is a qual...

Go to advanced search