Search:

Type: Posts; User: klipseracer

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    8,282

    Sorry about the crap questions, I can tell I need...

    Sorry about the crap questions, I can tell I need to brush up on my strings.
  2. Replies
    14
    Views
    8,282

    I understand now, I tried to make it 2000, which...

    I understand now, I tried to make it 2000, which is way too big, and if sprintf_s needs the size to be exact, then that makes sense, In any case i'm now making great use of std::string!! Btw, how...
  3. Replies
    14
    Views
    8,282

    Well, not to beat a dead horse, but I still don't...

    Well, not to beat a dead horse, but I still don't understand where I went wrong. I pass the size of the buffer.. Or does it need the sizeof()??? I'm lost

    this is the code that i've been trying to...
  4. Replies
    14
    Views
    8,282

    THANK YOU SO MUCH!!!!!!!!!!!!!!!! I will try...

    THANK YOU SO MUCH!!!!!!!!!!!!!!!!

    I will try this later.

    /bowdown
  5. Replies
    14
    Views
    8,282

    Hell, you should see the way I currently have it...

    Hell, you should see the way I currently have it set up. its done all manually. I'll definately look into stringstream. Put it this way, I never took any coding classes, and i'm dependent on using...
  6. Replies
    14
    Views
    8,282

    More than anything i was asking about syntax...

    More than anything i was asking about syntax correctness...

    In any case, it gives me a 'Buffer too small',0 Error in the window that pops up, then when JIT catches it it opens up dbgrptt.c and...
  7. Replies
    14
    Views
    8,282

    Ok, so now i have a new problem. This code...

    Ok, so now i have a new problem. This code doesn't work:


    RandomVar=(22+client[cNum].nicklen);
    RandomData= new char[RandomVar];
    sprintf_s(RandomData,RandomVar,":%s!u@h PART...
  8. Replies
    14
    Views
    8,282

    Error: C2664 : sprintf_s() cannot convert

    i think i've fixed it, i'll repost with correct question in a sec

    here was my question:

    Ok, i'm on VS2005 and i've got this line of code:


    sprintf_s(RandomData,client[cNum].Name,":%s!u@h...
  9. Replies
    1
    Views
    3,621

    i've found that closing the socket automatically...

    i've found that closing the socket automatically adds the FIN.
  10. Replies
    1
    Views
    3,621

    How to send a FIN with my last packet???

    Ok, so i'm working on this server program, and I want to tell my client that its the last data packet that i'm sending by passing the FIN flag WITH the data.

    DATA + FIN, PSH, ACK -> Client
    ACK ->...
  11. Replies
    3
    Views
    3,288

    I've found that if I comment out ...

    I've found that if I comment out


    AcceptSocket = accept(m_socket, NULL, NULL);

    the program doesn't hang, and it works like normal, but of course the connections aren't made.


    EDIT:
  12. Replies
    3
    Views
    3,288

    I use VC++ 2005 and i have a form for the GUI,...

    I use VC++ 2005 and i have a form for the GUI, its dialog based with a LIST that I output to.
    The code i'm showing here actually isn't the same code with the select() but I can post it if you want....
  13. Replies
    3
    Views
    3,288

    Select(); server help!

    Ok, so I've done a select server before, but i've lost my code and I need the same flexability for a new app i'm making. There are a couple problems. When I run the program, the sockets seam to bind...
  14. I looked through the properties for something...

    I looked through the properties for something like that before, but hopefully I missed it, Thanks! I'll try this when I get home.
  15. ListBox: Everything is alphabetized, How to change this to just add to the bottom?

    Ok, I have a list box, and i've been considering converting to a Listview, but for temporary purposes, how do I get my listbox to not be alphabetized? I have it as a log window and it dumps a TON of...
  16. Replies
    5
    Views
    4,795

    I have a list box as my main window, with also a...

    I have a list box as my main window, with also a File, Tools etc menu on it. I just open up a dialog as the main 'window' without all that extra window crap, then used Visual Studio to make a List...
  17. Replies
    5
    Views
    2,746

    well, thats good to know I suppose. I really just...

    well, thats good to know I suppose. I really just don't see any functions from the 'printf' derivation show up much without being in a .c source. I like printf a lot more anyhow for most things :)
  18. Replies
    5
    Views
    2,746

    Thanks, worked great. I don't think there is any...

    Thanks, worked great. I don't think there is any way to do this in true cpp and not C, is there?
  19. Replies
    39
    Views
    17,620

    you can use Buffer = new char[szBuffer]; for...

    you can use
    Buffer = new char[szBuffer]; for dynamically creating a buffer of any size on the fly.

    but you can't change the size of an existing buffer, at least not that I am aware of...
  20. Replies
    5
    Views
    2,746

    Display a hex value in a list box?

    Ok, so I've got a Dialog, with a listbox inside of it. I want to display a hex calue in '0xFF' format, or even just 'FF'. I'm trying to use this list box as a crappy debug/log window for a program...
Results 1 to 20 of 20