Search:
Type: Posts; User: srinathduraisamy
Search:
Search took 0.02 seconds.
-
March 3rd, 2011, 03:19 AM
Plus QWidget is a class.
Is it leagal to allocate a memory for a class using malloc.
How the constructor will be called?
-
March 3rd, 2011, 03:08 AM
I have a basic question on this,
QWidget *w = new QWidget()
will it not call the new operator of QWidget class ?
-
March 2nd, 2011, 01:49 AM
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
-
February 24th, 2011, 02:13 AM
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...
-
August 16th, 2010, 02:15 AM
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.
-
April 27th, 2010, 07:35 AM
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
-
April 27th, 2010, 05:35 AM
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.
-
April 27th, 2010, 05:08 AM
HI all,
I have an issue with sscanf
<code>
#include <iostream>
int main( )
{
std::string str, str1;
-
December 4th, 2009, 08:23 AM
For streaming of videos you can use RTSP and RTP protocols.
You can use Live555 library for it.
Hope this might help
-
November 23rd, 2009, 01:28 AM
FYI
http://www.ddj.com/cpp/184401518
-
November 20th, 2009, 04:05 AM
What ever time function returns itself is number of seconds elapsed from 1 st jan 1970.
Why do you want to calculate it separately?
-
November 9th, 2009, 11:58 AM
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
-
November 9th, 2009, 04:07 AM
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...
-
November 9th, 2009, 02:16 AM
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...
-
November 9th, 2009, 02:03 AM
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...
-
November 9th, 2009, 01:51 AM
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...
-
November 9th, 2009, 01:36 AM
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'...
-
November 9th, 2009, 01:27 AM
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...
-
October 15th, 2009, 03:51 AM
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...
-
October 15th, 2009, 02:13 AM
Hi I have a doubt, my class structure is some thing like following one
#include <iostream.h>
class A
{
public:
|
Click Here to Expand Forum to Full Width
|