Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

VC++ bug?

  • 13-08-2001 04: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