Search found 719 matches

by Gonzo
Dec 18, 2010 13:56
Forum: Beginners
Topic: [BUG] For .. statement
Replies: 12
Views: 1202

The first reason that a ubyte or ushort iterator will not work with a negative step value is that FBC, or at least 0.21.1 (08-11-2010) for win32, emits a jump instruction to bypass the loop code. For unsigned 32 or 64-bit iterators FBC does not bypass the loop code, and while the loop will work cor...
by Gonzo
Dec 18, 2010 0:07
Forum: Beginners
Topic: [BUG] For .. statement
Replies: 12
Views: 1202

[BUG] For .. statement

Found a bug in the for statement, havent tested any other situations

Code: Select all

Dim y as ubyte

for y = 15 to 1 step -1
  do stuff
next


the statement will be skipped altogether

edit to confirm: it works with byte, integer (signed vartypes)
by Gonzo
Nov 27, 2010 23:09
Forum: Tips and Tricks
Topic: BASE64 En/Decoder
Replies: 1
Views: 1366

cool, i needed that =)
looks like you know your stuff too
by Gonzo
Nov 16, 2010 16:48
Forum: Beginners
Topic: [solved] need help calling external dll
Replies: 11
Views: 1166

my god! its alive!

thank you so much =)
by Gonzo
Nov 16, 2010 7:58
Forum: Beginners
Topic: [solved] need help calling external dll
Replies: 11
Views: 1166

Illegal parameter specification in 'Sub Display()' Declare Sub Display Cdecl () In this code, there is no Illegal parameter specification . Try to give all needed information, if you want somebody to help you. actually that is the compiler error testclient.bas(75) error 40: Illegal paramete...
by Gonzo
Nov 15, 2010 23:27
Forum: Beginners
Topic: [solved] need help calling external dll
Replies: 11
Views: 1166

Illegal parameter specification in 'Sub Display()'

Code: Select all

Declare Sub Display Cdecl ()
by Gonzo
Nov 15, 2010 23:10
Forum: Beginners
Topic: [solved] need help calling external dll
Replies: 11
Views: 1166

display reshape and keyboard are procedures written by myself in freebasic glut is supposed to call them when necessary =) also, each of the external functions have parameter: func:Sub cdecl() # define FGAPIENTRY __stdcall # if defined(FREEGLUT_EXPORTS) # define FGAPI __declspec(dllexpor...
by Gonzo
Nov 15, 2010 22:56
Forum: Beginners
Topic: [solved] need help calling external dll
Replies: 11
Views: 1166

Declare Sub Display() Declare Sub Reshape(ByVal w As Integer, ByVal h As Integer) Declare Sub Keyboard(ByVal key As UByte, Byval x As Integer, ByVal y As Integer) btw. i realize unsigned char _can_ be <> byte, but ive tried with and without keyboard func (i replaced it with ubyte) and i doubt its an...
by Gonzo
Nov 15, 2010 22:28
Forum: Beginners
Topic: [solved] need help calling external dll
Replies: 11
Views: 1166

[solved] need help calling external dll

ill keep this short and sweet: making opengl thingie, just to learn from it =) so far everything has been good, except im currently trying GLUT which makes things simpler, perhaps too simple for my taste but regardless im using an "updated" version of glut, namely freeglut but at the same time using...
by Gonzo
May 10, 2008 18:23
Forum: Beginners
Topic: Freebasic Multiuser Chat / netwin.bi / need help
Replies: 1
Views: 1194

you need to make a proper message splitter, like IrcSplit :x y z :x y z 0 1 2 3 0 = from servers only, origin of message 1 = command 2 = first parametere 3 = a special parameter starting with : that can contain spaces (chr 32) the simplest way of splitting a message is just using chr 32 as a delimit...
by Gonzo
Aug 19, 2006 14:23
Forum: General
Topic: How to convert 3d to 2d
Replies: 3
Views: 1222

as far as i know its
(x,y,z) -> (x/z, y/z)
by Gonzo
Dec 16, 2005 0:12
Forum: Beginners
Topic: help!
Replies: 3
Views: 1127

Thanks
かんしゃします.
by Gonzo
Dec 12, 2005 18:40
Forum: Beginners
Topic: help!
Replies: 3
Views: 1127

help!

No matter what i write in the #INCLUDE or '$include statements for example: #INCLUDE ONCE "win/kernel32.bi" #INCLUDE ONCE "win/user32.bi" Ill get this: fbc -s gui "WebBrowser.bas" "WebBrowser.res" WebBrowser.bas(7) : error 24: File not found, "win/kernel32.bi" #INCLUDE ONCE "win/kernel32.bi" ^ I ins...
by Gonzo
Dec 11, 2005 22:58
Forum: Beginners
Topic: VB6->FB
Replies: 3
Views: 1165

VB6->FB

I am a hardcore VB6 programmer yes as dubious as it sounds, i really am, and i have some questions concerning some of the commands i find i might need if i started coding in FB instead :) truth be told i find this project very interesting stringarray = Split(s$, delimiter, [maxubound]) string = Join...

Go to advanced search