CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: keenlearner

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Server socket can connect few times only (Winsock C++)

    Finally it works, I wasn't quite understand on the winsock functions, flow, etc. This is the working one. The key is to let the listener socket keep alive, then store the client/accepted socket in...
  2. Server socket can connect few times only (Winsock C++)

    Hi I am trying to write a server winsock in C++ to allow connection from PHP client code. The PHP will request the data from server, receive then close the connection. However, after 2-3 times of...
  3. Determine if a Variable is of Type Reference

    StringBuilder first = new StringBuilder();
    StringBuilder second = first;

    String str = "Love";


    Is there a way to check if the variable second is Type Reference, whereas the variable "str" is...
  4. Replies
    3
    Views
    1,376

    Re: windows.h header in Linux

    Thanks everyone, I found that I think I would be using GTK+ and for C++ is gtkmm for me to create GUI.
  5. Replies
    3
    Views
    1,376

    windows.h header in Linux

    Hello, I have had been using linux for a few months. I need to do a school project, I want it to have the Windows based Interface because my lecturer would going to run in Windows only, not linux....
  6. Re: ifstream file gives weird character for .html extension

    lol found more information in Wikipedia, in case if anyone like to know what is those three weird characters that I just knew as well. This is the three weird characters I saw "", exactly in...
  7. Re: ifstream file gives weird character for .html extension

    So C programming is standardize by ANSI ?! Have heard of this very often, but never really put an emphasize on it, now I realize how important to follow the standard. lol
  8. Re: ifstream file gives weird character for .html extension

    Yeah, thanks, lol, it gives weird character only in UTF-8 encoding, I am so eager to know why is it so ? But never realized that I had saved the file as UTF-8 encoding. Thanks.
  9. Re: ifstream file gives weird character for .html extension

    Yeah, it's around three weird characters printed out, now I delete both the .html and .txt and I go to my project file and recreate both file with following steps, then it works fine with my...
  10. Re: ifstream file gives weird character for .html extension

    I had tried that, at first it gives me the same problem also, then I tried my own code again, but sometimes .html prints out well when I recreate the .html file
  11. Re: ifstream file gives weird character for .html extension

    I am using Visual Studio 2005 Professional edition by MSDNAA, now it's getting more weird, event the .txt extension giving me the same problem. Thanks for the reply.
  12. Re: ifstream file gives weird character for .html extension

    So if my file all are .html extension, I have to modified the file extension to .txt ? Thanks
  13. Re: ifstream file gives weird character for .html extension

    When I used binary as Tavo method, it still printing weird characters, even when I have one character "a" inside the htmlfile.html.
  14. Re: ifstream file gives weird character for .html extension

    Thanks, for the reply, but Mitsukai, can you clarify a little bit more clear ? You mean when I open file using ifstream, it's a text mode by default ? so I have to use binary ? Thanks.
  15. ifstream file gives weird character for .html extension

    When I open htmlfile.html file i got a few weird characters printed out which preceding the content inside the htmlfile.html file. But when I have the same file content with .txt extension, it has...
  16. Replies
    7
    Views
    7,855

    Re: Single Server Multiple Clients

    He needs to support multiple clients, so I assume that he like to built the server application. Even if it's a client application, after reading the link and understand how IOCP work, we will be able...
  17. Replies
    6
    Views
    947

    Re: hash_set visual C compile error

    Thanks, you are right, because of the hash_function, it makes my hash_set list unordered. Got to use the std::map then. Thanks.
  18. Replies
    7
    Views
    7,855

    Re: Single Server Multiple Clients

    You might one to consider the IO completion port of Winsock strategy, it's the most efficient IO strategy that I have seen so far, it can receive many clients connection and perform IO operations...
  19. Replies
    3
    Views
    1,896

    Re: http basic authentication

    I wish I could help, not very familiar with POST method. But maybe this could help a little bit
    http://www.ietf.org/rfc/rfc2617.txt
  20. Replies
    3
    Views
    1,896

    Re: http basic authentication

    Why is your host header field is "MyFirm" instead of "localhost" ?
  21. Replies
    1
    Views
    3,036

    WSABUF structure

    Hi I am using Winsock overlapped IOCP, I got one issues about WSABUF structure, when I have the buffer that I am going to use for WSASend(), the wsabuf.len should be filled as strlen(buf) or...
  22. Replies
    6
    Views
    947

    Re: hash_set visual C compile error

    I have test out with


    strHashSet.insert(string("january"));
    strHashSet.insert(string("february"));
    strHashSet.insert(string("march"));
    strHashSet.insert(string("april"));...
  23. Replies
    6
    Views
    947

    Re: hash_set visual C compile error

    Thanks, to both of you, that is such a careless mistake. But I thought the compiler should complain since the first line of


    strHashSet.insert(string("c"));
    strHashSet.insert(string("b"));...
  24. Replies
    6
    Views
    947

    hash_set visual C compile error

    Hello, I got compile error as stated in the comment line below using Visual C++, what's wrong with that cout ?
    And I got one more issue to ask, about strcmp (not used below), what does it compare...
  25. Replies
    7
    Views
    673

    Re: using map to store two data values

    Thanks, I prefer to use C++ string too, it's less error prone, but I still have not idea why does many C++ source that I read, manyt of them still using C-style string, I only thought of one reason...
Results 1 to 25 of 90
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured