Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 6 of 6

Thread: anyID = UInt32

  1. #1
    Join Date
    December 2009
    Location
    Frankfurt/Main
    Posts
    15

    anyID = UInt32

    Hello,

    i have a question, is it true that the anyID Type is an unsigned Integer 32-Bit (so 4 Bytes)

    When I call ts3server_getChannelList I get a result-array with only 16-Bit values. (2 Bytes)

    I hope for fast answer,

    greets

  2. #2
    Join Date
    June 2008
    Location
    Krün, Germany
    Posts
    510
    Look in the public_definitions.h header of the SDK, line 21 or 30 depending on your operating system. You will see that anyID is defined as a signed 16 bit integer.

  3. #3
    Join Date
    December 2009
    Location
    Frankfurt/Main
    Posts
    15
    Perfect, but I already found it. Please correct it in your C# Example. There it is defined as UInt32!

  4. #4
    Join Date
    April 2009
    Location
    Germany / Deutschland
    Posts
    71
    Its defined as unsigned 16 bit integer.
    PHP Code:
    #if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
        
    typedef unsigned __int16 anyID;
        
    typedef unsigned __int64 uint64;
        
    #ifdef BUILDING_DLL
            #define EXPORTDLL __declspec(dllexport)
        #else
            #define EXPORTDLL
        #endif
    #else 

  5. #5
    Join Date
    December 2009
    Location
    Frankfurt/Main
    Posts
    15
    Quote Originally Posted by 4nt1h4cker View Post
    Its defined as unsigned 16 bit integer.
    Quote Originally Posted by MeisterM View Post
    Perfect, but I already found it. Please correct it in your C# Example. There it is defined as UInt32!
    In the C# example its defined as UInt32 as I already said!

    Code:
    using System;
    using System.Runtime.InteropServices;
    using System.IO;
    
    using anyID = System.UInt32;

  6. #6
    Join Date
    June 2008
    Location
    Krün, Germany
    Posts
    510
    Yeah, that doesn't look right with uint32 in the C# SDK sample. Good catch.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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