|
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.
|
|
|
|
|
jhwurmbach wrote: He would have told us that, right?
Not necessarily.
jhwurmbach wrote: But then, if he would have been really interested in help, he would have given us enough information to help him!
You are making assumptions. Plenty of folks may genuinely want help but may not know how to properly ask for it. The same can be said for folks that may genuinely want to provide help but may not know how to properly do it.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
then what the hell is a calloc() call doing on a C++ code ?
C++ deprecates the use of C memory management such as malloc, calloc, realloc and free.
instead, you have to use new and delete, and you MUSTN'T miw the two ways together !!!
|
|
|
|
|
It may be that you want to much memory so the working set memory is fully used. There is a compiler option to tweak it, but i dont know which.
Greetings from Germany
|
|
|
|
|
Can you show code, that is failing ?
|
|
|
|
|