|
Like I said, we really do want to help, I recommend considering this a lesson learned, and trying to use the site again in a day or so, when everyone has forgotten this episode. It's really a great resource, and we really are here to try and help you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
there's no need to delete a post i replied to, to just reask it exactly the same way 1 minute later...
I gave you advices[^]. it's up to you to follow them or not, but don't expect more from the community then.
one last thing. "help" is not a correct subject for a question.
ps: you've got my '1' !
|
|
|
|
|
1 - don't delete your posts, how rude
2 - don't ask something again when the answer is already visible two posts below
3 - don't use 'help' as a subject line, it's meaningless
4 - try not to ask questions that are too broad to answer in a forum post
5 - try not to ask questions without first typing them into google, for example 'GDI C++' will give you tons of information
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
dona jain wrote: i know C/C++ very well
I doubt that very much, else you'd have the skill set necessary to pick up C# very easily.
|
|
|
|
|
Firstly those who post for any help should make it clear what they want. And they shouldn't expect spot on answers. Usually directions towards results will be shown. After all we are not slaves here.
Second, commenting/mockering on once knowledge is not good.
Please spare me for any mistakes here
|
|
|
|
|
mandanani wrote:
Second, commenting/mockering on once knowledge is not good.
When that person is rude to a long standing member of this site it is not necessary to be nice back to them.
People who cannot follow the very simple and obvious rules do not deserve respect, especially when they are rude and ignorant (and no, I don't mean you mandanani , just the idiot who started this.
regards,
|
|
|
|
|
|
dona jain wrote: hey thanks for ur advice.. i know C/C++ very well...i also hav buk for this
IF the above is true AND the below also holds true
dona jain wrote: but still i cant...ok...can u just tell me.. that to make these dialog boxes , icons ...i hav to do coding or i can use resources directly...please tell me wat is GDI??
THEN you definitely need a book abot WINDOWS PROGRAMMING. There are a loot of book around: check out, for instance, the Petzold's one [^] rather old but still good, or the Prosise's book (for MFC programming) [^].
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.
|
|
|
|
|
Wheres your question? if you want an answer why delete your message?
|
|
|
|
|
WhiteSky wrote: Wheres your question? if you want an answer why delete your message?
i believe to save her face from further embrassment
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
But why we are here some times we have problem and need to answer and some times for answer to questions.
|
|
|
|
|
I have SDI application in which there are two dialogs which are opened at run time.
One dialog is modeless and onclick of button on this modeless dialog One modal dialog is coming. Now based on selection of listbox on modal dialog I want to fillup
fields on modeless dialog.
For the same I require the object of class which is running in memory.
How to achieve it.
|| ART OF LIVING ||
|
|
|
|
|
shivditya wrote: Now based on selection of listbox on modal dialog I want to fillup
fields on modeless dialog.
Not possible, since the modal dialog must be dismissed first before the modeless dialog can continue processing its messages.
shivditya wrote: For the same I require the object of class which is running in memory.
This makes no sense. Please elaborate.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Actually I myself was able to do it
cnc was object of my modeless class.
what I done is I declared it in MainFrame.h
Then by (CMainFrame*)AfxGetMainWindow()->cnc I was able to get
object of modeless class in modal dialog. From cnc I was
able to access all fields on form and everything worked out well.
Modification -- yes modal dialog closes once I confirm selection,I didnot mentioned that
condition,and I think that is even possible for a separate thread.
|| ART OF LIVING ||
|
|
|
|
|
Sounds rather kludgy, but glad you got it going.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi...
ca anyone tell me ...how to satrt with windows programming in .NET C++..i mean how to make dialog boxes and buttons in my window.?? plzzz answer..thanx in advance
|
|
|
|
|
oh man, that's too large topic to cover in a simple thread...
buy a book about MFC or Win32 and learn about it like this... but if you don't know C/C++ yet, i highly advise you to either learn those languages first, or move to a more easier one like C#
|
|
|
|
|
toxcct wrote: hey trhan for ur advice.. i know C/C++ very well...i also hav buk for this...but still i cant...ok...can u just tell me.. that to make these dialog boxes , icons ...i hav to do coding or i can use resources directly...please tel l me wat is GDI??
1) speak - correct - english
2) understand you books
3) try their examples/samples
4) ask specific questions
your issue(s) are too generals... no one can help.
explain what you already tried and where you're stuck, and then we'll see what we can do for you.
|
|
|
|
|
Doing it in .NET is not MFC, you should ask in the C++/CLI forum. But, if you're going to ask such broad questions, yes, buy a book.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Does this question for C++ or C++.Net?
|
|
|
|
|
WhiteSky wrote: Does this question for C++ or C++.Net?
both...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Maybe its possible becuase both has C with ++.;P
|
|
|
|
|
dona jain wrote: ca anyone tell me ...how to satrt with windows programming in .NET C++..i mean how to make dialog boxes and buttons in my window.?? plzzz answer..thanx in advance
isn't you not getting any help from your collegue!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
If some other program launches my MFC application from command line, such as
test.exe /a /b
is there a way to return the Exit Code to the caller?
If the caller launches my MFC application with CreateProcess , then my MFC application should return the Exit Code with ExitProcess , right?
If the caller runs a batch (script) file to launch my application, how do I do to return the Exit Code?
Thanks!
Maxwell Chen
|
|
|
|