|
jhwurmbach wrote: That wouldn't help, now that you have quoted it
I know, he has to be scared about it !
|
|
|
|
|
JennK wrote: Can anyone tell me is it possible in Visual Studio to add an icon to system menu that would call a dialog box?
Yes, it's possible.
JennK wrote: On the other hand I could set up a mnemonic that would work throughout the whole application to call a particular dialog box.
Yes, you can do that, too.
JennK wrote: alternatively contact me via email @ jonnysmonny@hotmail.com
That probably won't happen.
JennK wrote: P.S this is for a college project i am doing and want to add in this extra function.
Take my advice. If it's for a programming class project, don't add anything more than the instructor wants. He doesn't have time to wade through extra crap, and is generally only interested in whether or not you understand the concept(s) contained within the assignment.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
It has to be at a very high standard it's my third year project and i really would like to add this in. Can I have a mnemonic without having a menu bar? The mnemonic would call a dialog.
I could just create a button on every dialog linking to that dialog and change it to a bitmap or something but i'd prefer to do it the other way.
Jenn
|
|
|
|
|
If you create an MFC application via ClassWizard (Ctrl+W), you can see how this is done with the About dialog.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am nearing towards the end of my project do you know if i can still do it.
|
|
|
|
|
Sure. Why would a project's end be a factor?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Sorry, I said that because i meant i couldn't restart to create the project differently. I suppose i want to know is it possible to set up a mnemonic that will operate throughout the project to call a particular dialog box???
|
|
|
|
|
JennK wrote: i couldn't restart to create the project differently.
Who said anything about restarting the project or creating it differently?
JennK wrote: I suppose i want to know is it possible to set up a mnemonic that will operate throughout the project to call a particular dialog box???
Yes. They are called accelerator keys (which are often times confused with mnemonics).
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Ok great sorry for the confusion... So do you know how to use accelerator keys???
|
|
|
|
|
JennK wrote: So do you know how to use accelerator keys???
Yes. Search for LoadAccelerators() and TranslateAccelerator() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks! I'll have a go at it then cheers...
|
|
|
|
|
Hi
I have used many times calloc().But this time it is going fail.
What may be the reason when calloc() fails(return bad pointer)
Thanx
manu
|
|
|
|
|
are you coding in C or C++ ?
|
|
|
|
|
It MUST be C++ as this is the Visual C++ / MFC board
|
|
|
|
|
here is a scoop : The Visual C++ compiler also compiles C code !
|
|
|
|
|
Here's another scoop.
This is the C++/MFC board, C questions do not belong here.
So it's irrelevant whether the VC++ compiler can compile C code.
|
|
|
|
|
ok, and tell me where you ask C question on CP elsewhere that this board ?
|
|
|
|
|
I'd say the soapbox
|
|
|
|
|
Jonathan [Darka] wrote: I'd say the soapbox
The SoapBox is for VB... Sorry
|
|
|
|
|
There is such a place: http//cboard.cprogramming.com --- Purely 'C'.
John P.
|
|
|
|
|
toxcct wrote: ok, and tell me where you ask C question on CP elsewhere that this board ?
CP means Codeproject.
|
|
|
|
|
ya coding in c++ VS2003.
manu
|
|
|
|
|
manu_2205 wrote: c++ VS2003
Why on earth would you need calloc , then?
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
It may be a legacy product that has been ported to the new compiler.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: It may be a legacy product that has been ported to the new compiler.
He would have told us that, right?
But then, if he would have been really interested in help, he would have given us enough information to help him!
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|