Notice to all users

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

Results 1 to 2 of 2
  1. #1
    Join Date
    January 2010

    [Solved] Use SDK 3 callbacks in C++


    I'm currently trying to move the C client example over to a C++ class but I face some problems- The C example runs fine.

    My problem is related to the callback functions which im sure is either not defined in the correct place for propper initializing and use of struct.

    I have declared these in the class as class variables.
    struct ClientUIFunctions funcs;

    Following is placed in constructor.
    /* Initialize all callbacks with NULL */
    memset(&funcs, 0, sizeof(struct ClientUIFunctions));

    funcs.onConnectStatusChangeEvent = onConnectStatusChangeEvent; ...etc.

    Is this correct or do someone have a small example i can use ?

    The problem that occurs is during runtime when i connect. All seems okay but the connection to the server is not seen on server and application terminates (CTD) short after.
    I'm sure it is related to the callbacks and the struct.

    Appreciate any feedback to get me moving.

    Last edited by Booster87; April 14th, 2010 at 11:33 AM.

  2. #2
    Join Date
    January 2010
    Ha, problem is solved :-)

    Turned out to be password fail that prevented the client to log in.

    So the class is working after all


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Forwarded] Plugin Audio callbacks not included in recording
    By Philosound in forum Bug Reports [EN/DE]
    Replies: 0
    Last Post: July 26th, 2013, 11:42 AM
  2. Problem using Callbacks with C++ (member function)
    By Stryder2k in forum General Questions
    Replies: 1
    Last Post: August 24th, 2012, 06:30 AM
  3. [Solved] URL For IP
    By BottleKid in forum General Questions
    Replies: 4
    Last Post: June 14th, 2010, 06:05 PM

Posting Permissions

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