|
piul wrote: (in this side of the world),
piul wrote: Can a copy constructor be used by a method inside the object that wants to be copied??
Yes.
piul wrote: void Cobj::MyFunc()
{
//Can I use the copy constructor here to make a copy of this object???
Cobj NewObj(????) ;
// What do you put in the parameters?? the pointer 'this' can't be used because it's a pointer
// not a 'const Cobj &'
}
the parameter should be *this (i.e. Cobj NewObj(*this); ) you can use *this whenever a reference to this object is needed.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Of course!! ... oh man... my brain must be in the other side of the world...
Thanks!!
|
|
|
|
|
Hi I am trying to enable the maximixe item in system menu.
Here is the code what I am trying.
CMenu *pSystemMenu = m_pMainWnd->GetSystemMenu(false);
if( pSystemMenu != NULL )
{
pSystemMenu->EnableMenuItem(SC_MAXIMIZE,MF_ENABLED);
}
But It i not getting enabled.
Should I havwe to do anyting more?
With Reagards
Vikas
|
|
|
|
|
Try this:
CWnd *pWnd = AfxGetApp()->m_pMainWnd;
if( pWnd->GetStyle() & WS_MAXIMIZEBOX )
pWnd->ModifyStyle( WS_MAXIMIZEBOX, 0 );
else
pWnd->ModifyStyle( 0, WS_MAXIMIZEBOX );
pWnd->RedrawWindow(NULL, NULL, RDW_FRAME | RDW_INVALIDATE | RDW_UPDATENOW );
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
So I how do I Resize all the controls in my mainWindow to be proportionate with the size of the mainWindow?
With Reagards
Vikas
|
|
|
|
|
Here are a few options:
- Write the code yourself
- Google for a solution
- Post what you have already done here and indicate what you are having trouble with
And while you're at it, saying "please" and "thank you" is probably a good idea!
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
Okies Dude! Thanx!
With Reagards
Vikas
|
|
|
|
|
For real time application (Back End Exe and no GUI) which require interaction with Oracle, mathematical computations and use of multithreading also, which application will give better performance (exe executions time and memory management) VC++ / C#? And why?
xyz
|
|
|
|
|
The one you know better.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
definatly VC++! and i also agree with guy who answer before me ! i.e. the langauge you know better
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
If you have to ask this question then I suggest you get someone else to develop the application if you are concerned about performance issues.
led mike
|
|
|
|
|
I'm going with C++ all the way, but that's my opinion.
If C# was the answer you were looking for, then ask the same question on the C# board
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
That would depend on many things including:
- Who you ask.
- What you're doing.
- Which one you know best.
Steve
|
|
|
|
|
hi
i dont know wat is mean by COM in VC++? so please tell me procedure for study the COM project?
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
See the great wikipedia: COM[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
|
Hello All
I am Developing ATL Project in which i have added ATL Dialog.
Now on this Dialog i want to add ShockwaveFlash Activex Control.
I am able to add this control but Problem is that i can not add Variable to this Control.
So is there anybody who can solve my problem?
Any help will be appriciated
Thanks i advance
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Hi everyone,
I am doing concatination in my ActiveX control project.and i am returning that to my project back that string value.here i want to divide that whole concatinated string into different string like memid,memnane like this.so how can i do this. in VB we use split function but in VC++ by what method this can be done.Please Help me.
REPLY ME SOON..
THANKS AND REGARDS,
savitri.
|
|
|
|
|
See strtok[^].
Also, its considered bad form to type in uppercase as its considered to be the equivalent of shouting. You might want to review this[^].
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Once we figured out that taking our shoes and socks off would double our counting ability the technical glitch was quickly rectified. -- Chris Maunder, from the CP newsletter
|
|
|
|
|
Hi chris,
i used the strtok function how u told. but it is for characters.my concatinated string is like this:
strResult="cadb0952|1234|savitri|20/20/2030|1234|"
when i am using strtok function it is storing only first string in tagid field. please tell me how shall devide this whole string into different fields.i want to store m_tagId,m_memid,m_memname... from that concatinated string.So please Tell Me..
REPLY ME SOON.
THANKS AND REGARDS,
savitri.
|
|
|
|
|
Hi,
My handle is gleat! Not Chris! Anyway, have you tried googling[^]? See here[^] for an example on using strtok .
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
Sorry..i used m_tagid=strtok(string,delimit);
after this sentence my string is only tagid i loosing member is,name,date and balance so tell me how shall i use.
Sorry once again.
thanks and regards,
savitri.
|
|
|
|
|
Did you read the link[^] I gave you? There's a simple example there illustrating strtok .
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
ya i read..and one more proble is that i want to add delimeter as '|'.but the problem is when i am adding ss1[k]='|';for first time it is adding but for next time it is not adding at all.it means after tag id it is adding but after memid ,name,date and balance it is not adding ..why is it so.
i am doing like this:
memid=dstr;
i am coping memid into ss1.
after this ss1[k]='|';
but it is working..
please tell me how shall i add delimeter. PLEASE HELP ME...
THANKS AND REGARDS,
savitri.
|
|
|
|
|
I am not sure what it is that you are after! Do you wish to split a string or concatenate a bunch of strings?
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|