|
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
Reply to this message
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 :) |
|