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

Search:

Type: Posts; User: avi123

Page 1 of 33 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    2,946

    setsockopt - keep alive

    Hi,

    I would like to use setsockopt with the SO_KEEPALIVE parameter
    What I can't find is how I set the following:
    1. How often to send the keep alive message from the client to server
    2....
  2. Replies
    3
    Views
    902

    Re: what are the possible outputs

    sure, but what are the possible outputs and why?

    Thanks
    Avi123
  3. Replies
    3
    Views
    902

    what are the possible outputs

    Hi,

    Suppuse I have the following function

    static int staticIntX = 2;

    int inc()
    {
    staticIntX++;
    return staticIntX;
  4. Replies
    12
    Views
    1,204

    Re: do while loops with &&

    Thanks Philip,

    Are there any other operators where left to right order is not guaranteed?

    Thanks
    Avi123
  5. Replies
    12
    Views
    1,204

    Re: do while loops with &&

    Thank you both for your quick response
    However I still not sure,

    Krishnaa: you say that the left side will be calulated first, however then you say that in order not to depend on compiler, are...
  6. Replies
    12
    Views
    1,204

    do while loops with &&

    Hi,

    Can I do something like this:

    X *pX;

    do
    {
    //.....
    }while((pX != NULL) && (pX->func() >2))
  7. Replies
    2
    Views
    681

    Difference between new () and []

    Hi,

    Is there a difference between those 2 statements:

    str1 = new char[50];
    and
    str2 = new char(50);

    both str1 and str2 were defined like this:
    char* str1=null;
  8. Replies
    4
    Views
    1,003

    Re: 2 basic question

    Thanks

    That's exactly what I have needed
  9. Replies
    4
    Views
    1,003

    Re: 2 basic question

    I still do not understnad what is the different meaning of the const location:

    1. What is the difference meaning of the const location?
    a. static const char* x = "abc"
    b. const static char* y...
  10. Replies
    3
    Views
    704

    simple c++ question

    Hi,

    I have 2 C++ basic questions:

    1. I understood that using this:

    for(int i=0; i<5; ++i)
    is better than using this:
    for(int i=0; i<5; i++)
  11. Replies
    4
    Views
    1,003

    2 basic question

    Hi,

    I have 2 basics (or at least I think they are) C++ question

    1. What is the difference meaning of the const location?
    a. static const char* x = "abc"
    b. const static char* y =...
  12. Replies
    1
    Views
    1,885

    MST algorithm for Multi Graph

    Hi,

    I hope that this is the correct forum for this question, if not I ask for your forgiveness.
    I need to find the Minimal Spanning Tree, on a Multi Graph,
    I'm using Java in Eclipse enviroment....
  13. Thread: const reference

    by avi123
    Replies
    12
    Views
    2,347

    Re: const reference

    Then what is the probelm using it?
    I mean besdie efficency...

    Thanks
    avi123
  14. Thread: const reference

    by avi123
    Replies
    12
    Views
    2,347

    Re: const reference

    and if I have a copy constructor will it be called when I use:
    Baz bazObject = foo.GetBaz(); // Works, but takes a copy of the baz object


    Thanks again
    avi123
  15. Thread: const reference

    by avi123
    Replies
    12
    Views
    2,347

    Re: const reference

    what if I use this:
    Baz bazObject = foo.GetBaz(); // Works, but takes a copy of the baz object

    I understand it really copies the object, but does it have any pthere problems? for example what if...
  16. Thread: const reference

    by avi123
    Replies
    12
    Views
    2,347

    Re: const reference

    Hi,

    I'm not really returning an int but a reference to a struct I defined, it was just a simple example

    The thing is that I don't really understand the meaing of a const reference return value,...
  17. Thread: const reference

    by avi123
    Replies
    12
    Views
    2,347

    Re: const reference

    about the first answer, I don't understand if I use int num = getNum() , does it mean that I canceled the const?

    another thing abuot the first answer, what if I get out of the scope of the int num...
  18. Thread: const reference

    by avi123
    Replies
    12
    Views
    2,347

    const reference

    Hi,

    I was wondering what is the meaning of a function returning a const reference?

    for example I have a function that defined like this:

    const int& getNum() const;

    how do I call this...
  19. Thread: ultoa

    by avi123
    Replies
    5
    Views
    3,330

    ultoa

    Hi,

    I'm using ultoa to convert an unsigned long to string
    but I'm having trouble to find the opposite function that will turn my string back to unsigned long

    Can anyone help me?
    Thanks in...
  20. Replies
    5
    Views
    1,920

    Re: killing a process according to its PID

    Thank you all very much :)
  21. Replies
    5
    Views
    1,920

    Re: killing a process according to its PID

    I know about all the other ways I can kill a process
    and I would like to kill it according to the PID, is it possible?
    If not how do I kill it if all I have is the name (xxx.exe) & the pid
    ...
  22. Replies
    5
    Views
    1,920

    killing a process according to its PID

    Hi,

    I'm looking for an API which enable killing a process according to its process ID.

    Is there an API like that, I didn't find it
    If not how can I kill a process, if I have its name (xxx.exe)...
  23. Thread: Screen Snapshot

    by avi123
    Replies
    6
    Views
    1,771

    Re: Screen Snapshot

    I can't download the source! (Article not found!)

    Thanks
    Avi123
  24. Thread: Screen Snapshot

    by avi123
    Replies
    6
    Views
    1,771

    Re: Screen Snapshot

    and how do I save it to a (bmp?) file & open this bmp (programmaticly) by some other application?

    Thanks
    Avi123
  25. Thread: Screen Snapshot

    by avi123
    Replies
    6
    Views
    1,771

    Screen Snapshot

    Hello,

    How do I get the screen snapshot, is there an API for that?

    Thanks
    Avi123
Results 1 to 25 of 824
Page 1 of 33 1 2 3 4





Click Here to Expand Forum to Full Width

Featured