Search found 75 matches

by diffeecult
Sep 01, 2010 1:54
Forum: Community Discussion
Topic: QB45 in Win7
Replies: 24
Views: 9803

Windows Virtual PC looks interesting.

http://www.microsoft.com/windows/virtual-pc/
by diffeecult
Apr 02, 2010 22:33
Forum: Libraries Questions
Topic: [Allergo] Timer?
Replies: 9
Views: 2362

Try going back to your original main loop by removing the if statement, moving the call to Shutdown outside the while loop and decrementing speed_counter instead of incrementing. Then move Render_Sprites to the outer while loop. I'm trying to think through those loops but I may be getting confused. ...
by diffeecult
Mar 31, 2010 23:01
Forum: Libraries Questions
Topic: [Allergo] Timer?
Replies: 9
Views: 2362

It's been a while since I played around with Allegro so this may not be exactly right. But it seems like I remember that you declare it with your other functions. cdecl() tells the compiler to handle parameters like a C function. Declare Sub increment_speed_counter cdecl() Then your sub would look l...
by diffeecult
Mar 12, 2010 1:09
Forum: Libraries Questions
Topic: [Allergo] Typedef?
Replies: 2
Views: 1797

That's an old C thing. typedef struct { x As Integer y As Integer } Point; This creates a synonym for the structure that you can declare instances of without using the "struct" keyword. Point topleft; This is the same thing as... struct Point { x As Integer y As Integer }; struct Point top...
by diffeecult
Mar 06, 2010 0:52
Forum: Libraries Questions
Topic: [Allergo] Printing the Score?
Replies: 3
Views: 1601

Try the Str function to convert the score to a string.

Code: Select all

textout(screen,font,Str(score1),0,0,15) 
by diffeecult
Mar 05, 2010 22:43
Forum: Libraries Questions
Topic: [Allergo] Clear the Flicker?
Replies: 9
Views: 2740

Global variables are declared as Shared.

Code: Select all

Dim Shared BDX,BDY As Integer
by diffeecult
Mar 05, 2010 0:46
Forum: Libraries Questions
Topic: [Allergo] Clear the Flicker?
Replies: 9
Views: 2740

You need to declare your function. Declare Function bounding_box_collision(x,y,w,h, bx,by,bw,bh) Just stick it up there after your variable declarations. I would change it to a Sub instead of a Function though. Functions are generally reserved for routines that need to return a value. Also on Allegr...
by diffeecult
Sep 03, 2008 3:34
Forum: Beginners
Topic: Sizeof Array question
Replies: 19
Views: 5315

axipher wrote:Code

Code: Select all

Dim As integer integerArray(10)
Print "Size of integerArray =";(ubound(integerArray) * sizeof(integerarray));" bytes"
sleep
Output

Code: Select all

Size of integerArray = 40 bytes
That's it !!!
Thanks
by diffeecult
Sep 03, 2008 3:31
Forum: Beginners
Topic: Sizeof Array question
Replies: 19
Views: 5315

Hmm...
Sizeof gives me 4, len gives 4 and ubound 10. I was thinking it should be 40 bytes but I'm not sure.

Thanks
by diffeecult
Sep 03, 2008 3:05
Forum: Beginners
Topic: Sizeof Array question
Replies: 19
Views: 5315

Sizeof Array question

Hey everyone,

What would be the correct way to get the size of an array. I ain't doin something right.

Code: Select all

Dim As Integer integerArray(10)
Print "Size of integerArray =";Sizeof(integerArray);" bytes"
Thanks, diffeecult
by diffeecult
Sep 29, 2007 0:45
Forum: Beginners
Topic: Movin' Circles
Replies: 26
Views: 7022

The period after fb in the Using fb line is causing that error and Frame1 and Frame2 are not declared.
by diffeecult
Sep 18, 2007 22:41
Forum: DOS
Topic: ld.exe cannot find -lfbgfx
Replies: 15
Views: 9277

Could it be a long file name problem? You might try renaming your directory to FB or something.
by diffeecult
Sep 17, 2007 12:29
Forum: General
Topic: Can't access archive
Replies: 5
Views: 2259

Yeah, it's all good now.
by diffeecult
Sep 17, 2007 3:51
Forum: General
Topic: Can't access archive
Replies: 5
Views: 2259

I logged in a couple of hours ago but I can't seem to now
by diffeecult
Sep 14, 2007 2:00
Forum: Community Discussion
Topic: QB Express #24 Now Available!
Replies: 12
Views: 6956

Thanks guys, I really enjoy this magazine. I learn lots of good stuff from every issue. Great job to everyone.

diffeecult