Hello From SCI_CO,
Using a Memblock as a Structure
Rem SCI_CO Help
Rem Memblock as Rectanlge Structure
Rem Variables
Rem BYTEs
Size = 16
Rem DWORDs
Top = 0
Left = 0
Right = 256
Bottum = 256
Rem Memblock Structure
Rem ```````````````````````````````````````
MAKE MEMBLOCK 1,Size
WRITE MEMBLOCK DWORD 1,0,Top
WRITE MEMBLOCK DWORD 1,4,Left
WRITE MEMBLOCK DWORD 1,8,Right
WRITE MEMBLOCK DWORD 1,12,Bottum
Rem Pointer to Memblock Structure
RECT = GET MEMBLOCK PTR(1)
Rem ```````````````````````````````````````
Rem Clean up
DELETE MEMBLOCK 1
Remstart
You can use a Pointer to a Structure
to pass the Structures info to an API call
or a Function that needs a Structure or Pointer to work
Remend
I hope this is all good and that it helps.
If you need more help read up on Memblocks for DarkBASIC
and Structures & Pointers for VC++.