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
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    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
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

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

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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