Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

VC++ bug?

  • 13-08-2001 05:05PM
    #1
    Registered Users, Registered Users 2 Posts: 7,314 ✭✭✭


    char *pBuf = new char[1025];
    int iBufSize = 1024;
    int iRcvd;
    CString strRecvd;
    UINT sockports = 0; // remote port
    CString sockky; // ip address

    // Receive the message
    iRcvd = masterserver.ReceiveFrom(pBuf,iBufSize,sockky,sockports);


    i've used this exact code in about 6 diff programs and in my latest its throwing an error not being able to write to the unsigned int sockports of the remote port, since i didn't require the remote details for this program i tried recieve i'm just getting access violations any ideas?


Advertisement