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

Search:

Type: Posts; User: srinathduraisamy

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    1,758

    Re: Overriding new and delete operator

    Plus QWidget is a class.

    Is it leagal to allocate a memory for a class using malloc.

    How the constructor will be called?
  2. Replies
    13
    Views
    1,758

    Re: Overriding new and delete operator

    I have a basic question on this,

    QWidget *w = new QWidget()

    will it not call the new operator of QWidget class ?
  3. Re: Validity checks using Loops C++ Help

    You have added a semi colon at the end of the while loop, which will make an infinite while loop.

    Remove the semicolon and get the input again after printing the error message.

    hope this helps
  4. Replies
    1
    Views
    518

    Re: Array demo confusion

    You have to learn about the pointers to understand this.

    For readArray function, you are passing a pointer to inputValues array which gets the value form std input.

    If you go through your...
  5. Replies
    4
    Views
    1,974

    Re: Include Path

    why u need to run the qt application with wine. Qt code normally works both in linux and windows.

    Just try to replace the windows api calls with Qt calls. Else ask it in Qt forum.
  6. Replies
    5
    Views
    734

    Re: Issue with sscanf

    Hi,

    Thanks for the help.
    stringstream is very much useful. I have modified my code for stringstream, its working. Thanks

    is there any other better approach ?

    Regards
    Srinath.D
  7. Replies
    5
    Views
    734

    Re: Issue with sscanf

    Thanks for replying.

    I know it returns const char*.
    But how come c_str() returning the same memory and is there any other way to accomplish without using a char array.
  8. Replies
    5
    Views
    734

    Issue with sscanf

    HI all,

    I have an issue with sscanf

    <code>
    #include <iostream>

    int main( )
    {
    std::string str, str1;
  9. Re: Streaming Web cam Video In Both Party

    For streaming of videos you can use RTSP and RTP protocols.
    You can use Live555 library for it.
    Hope this might help
  10. Replies
    4
    Views
    5,397

    Re: multithreading in C++ using boost

    FYI

    http://www.ddj.com/cpp/184401518
  11. Re: Why My App is crazy with 1 Jan 1970

    What ever time function returns itself is number of seconds elapsed from 1 st jan 1970.
    Why do you want to calculate it separately?
  12. Replies
    13
    Views
    2,382

    Re: Derived class object in base class

    Hi all,

    Thanks all for your reply.
    I too believe that design pattern will be a better aproach but I am not able to convince my client.
    Once again thank you all for your help
  13. Replies
    13
    Views
    2,382

    Re: Derived class object in base class

    Hi,

    Now it is I can create the derived class object in base class constructor.
    You can also use (factory design) a static member function in base class which will create an instance of derived...
  14. Replies
    13
    Views
    2,382

    Re: Derived class object in base class

    Hi,
    Thanks for reply,

    Actually I thought it is not possible at all. I proposed factor design method to create the derived class object which I thought is a better solution. But my client is very...
  15. Replies
    13
    Views
    2,382

    Re: Derived class object in base class

    Hi,
    Thanks for your reply.

    Yes, unless the base class constructor that is invoked by that derived class constructor does not itself create an object of one of the derived classes.

    You mean...
  16. Replies
    13
    Views
    2,382

    Re: Derived class object in base class

    Hi
    Thanks for reply.

    Yes it is working. When I put the constructor after the derive class;

    But my doubt it should be a trivial condition rite.
    When derived class is created inside base...
  17. Replies
    13
    Views
    2,382

    Re: Derived class object in base class

    Hi

    Thanks for the reply.

    But when I tried creating in constructor. Compiler gives error like (consider class b as derived class)

    test.cpp:10: error: invalid use of undefined type `struct b'...
  18. Replies
    13
    Views
    2,382

    Derived class object in base class

    Hi all,

    I have a doubt. Is it possible to create a derived class object (either in stack or heap) inside base class constructor?
    I half know it is not possible. But I want to ensure it.
    Whether...
  19. Re: calling derived class fucntion in base class

    Hi Laserlight,

    First Thanks for your reply.
    I am adding new functionality to a exiting library. I cannot change the derived one which is the actual implementation and the application using that...
  20. calling derived class fucntion in base class

    Hi I have a doubt, my class structure is some thing like following one


    #include <iostream.h>


    class A
    {

    public:
Results 1 to 20 of 20





Click Here to Expand Forum to Full Width

Featured