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

Search:

Type: Posts; User: sunnypalsingh

Page 1 of 21 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    7
    Views
    1,042

    Re: A question of thorey

    Check this FAQ entry

    Is it a bad idea to bind() to a particular port in a client program?
  2. Replies
    11
    Views
    1,844

    Re: winsock bind ()

    TCP Client and Server Interaction:

    http://www.tutorialspoint.com/images/socket_client_server.gif
  3. Replies
    2
    Views
    1,334

    Re: [IPv6] Getting Gateway Info

    Try with WindowsXP SP2
  4. Re: Prefferred method of inserting in map

    std::map associate key with only one value. So, why would others not replace?


    I am not sure but I think others will also be first constructed then they will be put in map. So, why inefficient?...
  5. Prefferred method of inserting in map

    Suppose I have map

    map<string, int> Employees;

    Which of the following method are best to use for insertion?

    1. Assignment using array index notation


    Employees["Mike C."] = 5234;
  6. Replies
    5
    Views
    572

    Re: compiling in visual studio

    I think directly nmake will also work.
  7. Replies
    5
    Views
    572

    Re: compiling in visual studio

    Not sure whether you can compile this on Visual Studio or not by just seeing the names of files.
    Source might be for some unix /linux flavour which you might need to modify for it to work on...
  8. Replies
    5
    Views
    3,230

    Re: Make select() return

    If you want your other thread which is in your control to make select call return, you can also send a signal.
  9. Re: assignment of value by thread problem

    Try using select call. select() gives you the power to monitor several sockets at the same time. It'll tell you which ones are ready for reading, which are ready for writing, and which sockets have...
  10. Replies
    7
    Views
    3,321

    Re: Help on Multithreading in C

    You can make use of POSIX Thread Programming which can work on both on Linux and Windows.
  11. Re: multihreading on multi-cpu slower than on multi-core

    I believe you would also need to play with SetProcessAffinityMask
    From MSDN:


    Caveat:


    Also you can take a look at SetThreadIdealProcessor
    Which sets a preferred processor for a thread....
  12. Replies
    52
    Views
    4,424

    Re: Is using goto a bad practice

    goto is a tool and since there is no proof for whether its usage is correct or not, use it where it is needed and be prepared to be wrong in your decision :)
  13. Replies
    10
    Views
    694

    Re: Strange macro, valid?

    Why does it appear fine to you :eek:
    Preprocessing directive are of the form


    # define identifier replacement-list new-line
    which defines an object-like macro that causes each subsequent...
  14. Replies
    8
    Views
    1,184

    Re: Simple... TOO simple

    One way to validate input for integers


    #include <iostream>
    #include <limits>

    using namespace std;

    int main() {
    int number = 0;
  15. Replies
    22
    Views
    2,027

    Re: [RESOLVED Thanks] when is the destructor called ?

    If the class of an object has a destructor, C++ guarantees that the destructor is called when the object dies. A local (auto) object dies at the close of the block ({...}) in which it was created...
  16. Thread: L macro

    by sunnypalsingh
    Replies
    8
    Views
    863

    Re: L macro

    wcout - The object controls insertions to the standard output as a wide stream.
    wstring - A type that describes a specialization of the template class basic_string with elements of type wchar_t.
  17. Replies
    21
    Views
    1,290

    Re: Friend function

    Directly it's not possible but you might put those variables which you don't want friend function to access in separate base classes holding that variable. Not sure on this. Maybe someone will...
  18. Thread: char*

    by sunnypalsingh
    Replies
    12
    Views
    828

    Re: char*

    Because of historical reasons a string literal can be assigned to a char*. This is allowed because in previous definitions of C and C++ , the type of a string literal was char*. Allowing the...
  19. Replies
    16
    Views
    1,179

    Re: vector or list?

    vector< > uses contiguous memory to store its elements. vector automatically grabs a chunk of memory(say 256 Kbytes) and puts all the data into this memory.When you keep adding data, you will run out...
  20. Replies
    4
    Views
    1,083

    Re: Turbo C++ IDE 3.0 Needed Urgently ...

    Forget Turbo C++ 3.0. It's old & non-standard. Get a more powerful & more standard conformant compiler.
    www.codeblocks.org
  21. Thread: char*

    by sunnypalsingh
    Replies
    12
    Views
    828

    Re: char*

    When a function returns, its automatic, local variables are discarded, so the returned pointer in this case is invalid (it points to an array that no longer exists).

    This fix is imperfect, since...
  22. Replies
    2
    Views
    585

    Re: is not a member of 'std'

    Like Zuk said, you need to include <cmath> for log function. You can find all the details of library functions and header from this link
  23. Replies
    1,585
    Views
    141,518

    Re: AAAh A joke(Lets share Jokes)

    For All Beerholder

    http://media.santabanta.com//joke/visuals/8520.jpg

    How true!!!! Beauty lies in the eyes of Beer holder....
  24. Replies
    1,585
    Views
    141,518

    Re: AAAh A joke(Lets share Jokes)

    http://media.santabanta.com//joke/visuals/8521.jpg

    It was supposed to be a family magazine till they chose to publish this cover....
  25. Replies
    30
    Views
    2,770

    Re: Fed up of a concept in c++

    Classes are a way to localize all the state (data) and services (typically member functions) associated with a cohesive concept. The main idea is to organize things so that when changes to the...
Results 1 to 25 of 522
Page 1 of 21 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center