User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 26

Thread: Some questions about OINC

  1. #11
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    Could you just add a null character to it in the receive code inside OINC? Leaving the size passed to the callback the same. Then people could treat it as binary or a null-terminated string as they wanted.

  2. #12
    No Products Registered

    Join Date
    May 2008
    Location
    California
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    Thank you all so much! Everything is working great now! :grin:

  3. #13
    No Products Registered

    Join Date
    May 2008
    Location
    California
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    ...Except whenever I call Client.StringIP() inside of a printf or sprintf I get an "unresolved external symbol" compiler error and I can't do
    Code:
    char* ip = CLient.StringIP();
    because StringIP() returns a const char*.

  4. #14
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    What's wrong with doing:
    const char* ip = Client.StringIP();
    ?

  5. #15
    No Products Registered

    Join Date
    May 2008
    Location
    California
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    Well I'm making a master server for a "server lobby" in my game and there is an array of server structures and they need to have an IP variable that can be changed if that server were to stop hosting and another one took its place.

  6. #16
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Some questions about OINC

    char* ip = (const char*)Client.StringIP(); should work...

  7. #17
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    If StringIP generates an unresolved external symbol error, it sounds like the function isn't implemented in that build of the DLL. You could use sprintf and the byte IP array, or you could wait until the next build. Sorry about that.

  8. #18
    No Products Registered

    Join Date
    May 2008
    Location
    California
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    Alright I'll try the byte IP array.

    Thanks again for the help.

  9. #19
    No Products Registered

    Join Date
    May 2008
    Location
    California
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    Hmmm
    Code:
    sprintf(ip, "%i.%i.%i.%i", Client.IP[0], Client.IP[1], Client.IP[2], Client.IP[3]);
    seems to crash the app. I guess I'll just wait for the next build.

  10. #20
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some questions about OINC

    Is "ip" a char* or a char array?
    sprintf has to be given the memory it's going to use, you can't just pass it an uninitialized pointer.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. OINC help
    By regs23 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th August 2009, 05:17 PM
  2. OINC 1.0
    By Jeff in forum News
    Replies: 0
    Last Post: 3rd July 2009, 06:17 PM
  3. oinc
    By Zabooza in forum Lacewing
    Replies: 2
    Last Post: 20th February 2009, 10:53 PM
  4. OINC-bug?
    By mmf2 in forum Lacewing
    Replies: 11
    Last Post: 13th February 2009, 12:52 PM
  5. What is OINC?
    By Watermelon786 in forum Lacewing
    Replies: 5
    Last Post: 7th February 2009, 03:07 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
  •