|
Dear Rajesh,
I am very sorry, this happened automatically because in Germany marks at school are like that 1 = best, 6 = worst. I still can't get rid of that.
Thank you very much and best regards
Werner
|
|
|
|
|
WernerP wrote: I am very sorry, this happened automatically because in Germany marks at school are like that 1 = best, 6 = worst. I still can't get rid of that.
Thanks for the explanation. It is times like this when I realise CP is a truly global community.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
but the true question is : why would you do that ?
|
|
|
|
|
Perhaps he's a C# (or Java ) fan.
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
[My articles]
|
|
|
|
|
Hi,
Because dividing class function declaration from definition does make sense, if the interface is to be seen by other modules. If the interface is just for the imlementation namespace of a certain module, I would not even put it into a header.
Why? Because I don't want to recompile other modules, if the private interface changes. And because splitting declaration from definition means more administration of code and higher cost. It's overhead, if I don't want to export the functions it declares to others.
This I think is a common concern of software engineering, and does not have to do with loving either one programming language or the other. Look, C++ has been called a multiparadigmatic language by it's founder. It should make us free to implement whatever pattern makes sense to us.
Werner
|
|
|
|
|
WernerP wrote: This I think is a common concern of software engineering, and does not have to do with loving either one programming language or the other. Look, C++ has been called a multiparadigmatic language by it's founder. It should make us free to implement whatever pattern makes sense to us.
Consider why Tox asked the question he did (and that English is not his native tongue). It was not to belittle you, but more to find out if you actually knew what you were doing and why, or were just doing it because a friend's cousin's boss said it was the way to go. You'd be surprised at the number of questions we see here that should not be asked. That doesn't mean that the poster did not have a legitimate concern; it just means that they did not understand the problem first.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Well said David.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I do agree. Tox's question was the most interesting answer to mine I found, and so I was much interested in discussing it. I'm very sorry, if my message sounded unfriendly. It wasn't meant to be at all.
|
|
|
|
|
Hi All
I am useing CFolderDialog for Browser file and folder path.These path shwoing in Edit box.Now i want to open those file/folder which is currently showing in Edit Box.Plz help me
modified on Tuesday, October 14, 2008 6:59 AM
|
|
|
|
|
ShellExecute() with open may be?
I am not sure if I get what you want to do.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
yes you are right i am useing this code
ShellExecute(handle, "open",<pathname>, NULL, NULL, SW_SHOWNORMAL);
</pathname>
Then i am geting this error error C2065: 'handle' : undeclared identifier.
I include shellapi.h.Plz help me
|
|
|
|
|
From the doc:
To open a folder, use either of the following calls:
ShellExecute(handle, NULL, <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);</fully_qualified_path_to_folder> or
ShellExecute(handle, "open", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);</fully_qualified_path_to_folder>
And the handle should be the handle of your own window. The handle can be NULL too, but know what you're doing.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Thanks for reply.
But what it mean sir
The handle should be the handle of your own window
I am useing indos vista.So what can i do.I am new sir so plz help me
|
|
|
|
|
Every window will have a handle associated with it. If it doesn't matter to you, then pass NULL instead of your window handle.
BTW, Please stop saying "plz hlp me" in each and every message that you post. There isn't any real need for that. People will help you out here, provided you give adequate information.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
ok it's working..
There is any option for delete file and folder like ShellExecute.
|
|
|
|
|
NewVC++ wrote: There is any option for delete file and folder like ShellExecute.
yes, there is[^]
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
|
NewVC++ wrote: Then i am geting this error error C2065: 'handle' : undeclared identifier.
This is the handle to a parent window. It receives any message boxes that an application produces, such as error reporting.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi Friends,
I have CRichEditCtrl in my appln.
I want to chang the text selection color to Red(default is BLACK).
Any one have any idea?
Thanks
Prasanth
|
|
|
|
|
I think CRichEditCtrl::SetSelectionCharFormat() is the closest
you're going to get.
I don't see any specific message to set the default selection colors.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
40 minutes ago! WTF! Have you developed insomnia?
led mike
|
|
|
|
|
led mike wrote: Have you developed insomnia?
Man, I hope not!
I'll be ready for a nap by 10am.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have an MDI application using the MFC feature pack which has several dockable views. A couple of these views really need their width keeping above a certain size or else they become a bit pointless because you can't see anything on them which could confuse the less mentally agile of users.
I've tried setting the m_sizeMin variable in the CDockablePane derived view class but that only works in certain circumstances. When you dock with tabs and certain other situations it seems to get overridden. Is there a blindingly obvious way to do this that I'm missing?
|
|
|
|
|
Dear Friends,
I need to display a date exact month before from current date.
For Ex: todays date is 14-OCt-08.. then i should display 14-Sep-08.
Can anybody please help me out with this?
Thank u so much in advance
Megha
|
|
|
|
|
megha_gharote wrote: Can anybody please help me out with this?
What *exactly* is that you need help with?
Tell what have you tried or thought of so far.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|