Main
   Home
   About
   DiscussionBoard
Files
   About
   Submit
   Search
Downloads
   Action
   QB64
Links
   Link to us
QB45.org
[ Back to QB45 | FAQ | Search a message | Reply to this message | Back to messages ]

Stinktier on 09/04/08 - 04:41:56

This is probably veeery basic stuff to you guys, but i'm pretty new to this:

When i use FL35, and want to change the shape of the cursor, i need to refer to a certain segment and offset, which to me looks very much like ASM stuff. Stuff i simply can't do.

If i for example want to refer to some DATA statements, how do i know where it is in seg/offset terms?

I've already asked at a swedish messageboard but noone could give me an answer.

Todd on 09/04/08 - 07:51:55

Try this: http://qb45.com/download.php?id=1155

It's a program called "Meeses" which shows you how to change the shape of the cursor by calling Assembly commands in QB.

Jofers on 09/04/08 - 17:35:58

I've never used FL, but segments and offsets in DOS point to a location memory.

To get the segment of a variable:
myseg = VARSEG(myvar)

To get the offset of a variable:
myoff = VARPTR(myvar)

I looked at the FL documentation, and it only specifies that "the offset and segment should point to 256 pixels stored in memory"

To the best of my knowledge, you can't get this information from a DATA label directly... you have to load it into an array using READ and then use those functions on the array.

Stinktier on 09/05/08 - 11:26:27

I like FL so far but the documentation is rather poor; a thing that i think is pretty crucial when working with other developer's libraries.

Your help is very appreciated.

Jofers on 09/05/08 - 13:10:32

If you want some better documentation (and a more recent SVGA library), consider using UGL:
http://piptol.qbasicnews.com/files.htm

It was the library the V1ctor made before creating FreeBASIC. Furthermore, everything is done with integer handles, so no segments/offsets :)

Reply to this message
Name:
Message:
Please enter this number:
No HTML allowed. You may use BB-code in your posting.
Members
Login
Register
QB45 Members
Member List