Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    January 2010
    Location
    Denmark
    Posts
    13

    [Solved] Use SDK 3 callbacks in C++

    Hi,

    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.

    Booster
    Last edited by Booster87; April 14th, 2010 at 12:33 PM.

  2. #2
    Join Date
    January 2010
    Location
    Denmark
    Posts
    13
    Ha, problem is solved :-)

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

    So the class is working after all

    Booster

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, 12:42 PM
  2. Problem using Callbacks with C++ (member function)
    By Stryder2k in forum General Questions
    Replies: 1
    Last Post: August 24th, 2012, 07:30 AM
  3. [Solved] URL For IP
    By BottleKid in forum General Questions
    Replies: 4
    Last Post: June 14th, 2010, 07: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
  •