Results 1 to 2 of 2

Thread: missing info on pointers

  1. #1

    missing info on pointers

    don't see anything on pointers also nothing on type "any"
    for example, yesterday I was adding declarations for the gmp library and the gmp_sprintf will take mpf, mpz and mpq types
    so I made three aliases to the same function but today tried this
    DECLARE function MPF_Sprintf CDECL LIB "gmp.dll" ALIAS "__gmp_sprintf"  (BYREF s AS ASCIIZ, BYREF fmt AS ASCIIZ, BYREF X AS ANY ) as long
    and it works for all three types.
    hope am not overlooking something.

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Milan - Italy
    Blog Entries
    Rep Power

    Re: missing info on pointers

    You are right jack.

    I didn't cover much that area in help material. I need to feel this hole.
    To be honest I'm still working on the many different ways a parameter can be passed to an external function. Some "ways" a re not 100% covered but I'm working on that in the development background so every new thinBasic version brings improvements on this area even if not mentioned in help.

    So, I promise I will work on it.
    Eros | |
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Similar Threads

  1. Pointers...
    By matthew in forum TBGL General
    Replies: 5
    Last Post: 09-05-2013, 13:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts