|
Project properties->Linker->Debugging->Generate map file
|
|
|
|
|
In project properties navigate to Configuration Properties/Linker/Debugging. There you'll
find the MAP file settings.
Mark
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
Hi,
well, i am starting c++ programmer. I want to practice to get better programmer, but i don't really know how. Before some minutes i was trying to write own small program, but then i understood, i don't know really how to do it, compiler generated different errors for my code, that had 10-15 lines. I am asking to experienced, skilled c++ programmers, how to practice best c++ programming, also i need to understand structure of header file, which i don't understand now.
Best regards,
reyyy
|
|
|
|
|
Many members on here will suggest you buy a book. But I would suggest you find a free step-by-step C++ tutorial online.
As for your problem with the header files. In C/C++ there are two types of files. The .cpp holds the code, the .h is what joins all the files together. When you add a header file, you are really telling the compiler which code file you want to use.
|
|
|
|
|
I was reading online c++ book, but now i need practical part.
|
|
|
|
|
Personally, I still feel learning C++ should start with a quick intro to C since understanding Win32 comes much easier. Also, if you end up using CString, it's nice to have some background in printf (or it's many variations).
Don't spend too much time on C but getting a book like Schildt's "C++ The Complete Reference (Fourth Edition)" will help in the basics since he spends a good portion of the book on C, later C++, and he describes the differences and what is common to both. He avoids Windows programming so it avoids those distractions that cause the Attention Deficit that occurs when touching a page in MSDN or Wikipedia with all those shiny links ("What did I come here for again?")
For the first month or two, you should reserve yourself to command line programs (as painful as that sounds) so you focus on the language(s) and some basic libraries before jumping into the deep end of the pool. You should start with C programs without header files so it's not a major source of distraction for the first few days. Once C becomes boring, then you know your ready to learn OOP and C++.
The single most important thing to learn, is that C or C++ cannot let you use something like a function, variable, class, library, etc... if you haven't told the compiler about it. This is easier to conceptualize in a program written in a single .c or .cpp file since it's basically being parsed top down. As your programs become bigger, you will be forced to use function declarations. This is when the concept of using header files starts to make sense and becomes appreciated. This is also usually where you realize you are ready to start learning OOP and C++.
Resist the temptation to jump into GUI based programs for about another month or at least until you built some polymorphic classes. This is where you will likely start contemplating STL, GUI based programming, COM, etc...
Thats just my opinion, but I hope that helps you piece together a roadmap of where you are going.
Good Luck.
|
|
|
|
|
I agree with WalderMort buy buy a book but maybe this site will helpfuls for you www.cplusplus.com
|
|
|
|
|
First of all:
Do NOT learn C. C supports things you should never do in C++, and learning C first will encourage you to do C++ badly
Next - buy a book and work through it. I used 'teach yourself C++ in 24 hours', it was an excellent beginner book.
Finally, if you write a program of 15 lines and it doesn't compile and you don't know why, post it here, we'd be happy to offer advice on it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
I read this Article about "Overlay"
I was trying to create an overlay which works above 3D applications (eg. games like Halo, Warcraft 3, etc), but I couldn't set the right parameters to direct draw.
can anyone rewrite the overlay class, that it is working always over all other applications?
|
|
|
|
|
Sorry, I don't pay for code. I only do it as hobby.
but does anyone have a free information, how to do this?
|
|
|
|
|
Get a life, dude.
Let us not listen to those who think we ought to be angry with our enemies, and who believe this to be great and manly. Nothing is so praiseworthy, nothing so clearly shows a great and noble soul, as clemency and readiness to forgive.
- Marcus Tullius Cicero
|
|
|
|
|
So your hobby is trying to get others to rewrite code for you, for free?
Cool
-- modified at 14:35 Tuesday 27th February, 2007
Added a 'B'
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Mark Salsbery wrote: So your hoby is trying to get others to rewrite code for you, for free?
Well asked!
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hello,
I have a dialog application and I would like start hided that why I used in OnWindowPosChanging(WINDOWPOS* lpwndpos) :
void CGMMWS1800Dlg::OnWindowPosChanging(WINDOWPOS* lpwndpos)
{
if(!m_visible)
lpwndpos->flags &= ~SWP_SHOWWINDOW;
CDialog::OnWindowPosChanging(lpwndpos);
// TODO: Add your message handler code here
}
My problem is that this function is never called. In IniDialog I change the size with a MoveWindow().
I do not understand why this function is never called.
Waht can I check to fix my problem.
Thank you for help me
AutreChien
|
|
|
|
|
If you want the window to be created hidden then how about not creating it with the WS_VISIBLE
style?
Mark
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
(Rex Kramer "Airplane!")
|
|
|
|
|
Hi!
Old laptop died so I took it as a sign to upgrade Laptop, W2k->Xp, VC6 to VS2005, Crystal Reports 8.5 ->9 , InstallShield 5->11 etc..
Can anyone recommend any good resources (books, links) to get up to speed in VS2005? I have no identions to develop for .NET or switch to C# or anything. Windows executables, written in C++ is what I do...
|
|
|
|
|
|
Excellent! Any other resources?
|
|
|
|
|
There's not much to learn, except that the IDE itself is very different. The compiler is significantly more C++ compliant, so if your old code is not standards compliant, you could have some issues at first, until you fix it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
hi there,
I have a problem in conversion of char.
If i have a char with the decimal value of -42, how do i convert this to char of '1' and '0'. It must be only characters and not int of '1' and '0'.
For example, a char with the decimal value of -42 is equal to a string of char 11010110. Anyone can help me? i've tried various method, but can't seem to find the solutions.
Thanks for any help or guidance.
-- modified at 11:12 Sunday 25th February, 2007
|
|
|
|
|
/*
On Visual C++ 6.0, this works (Disclaimer: but be careful with char/int conversions in the general sense)
*/
char ch = -42;
char szBuffer[33]={0}; // 32-bit
itoa(ch,szBuffer,2);
TRACE("Binary of %d : %s\n",ch,szBuffer+24); // 8-bit
|
|
|
|
|
spy++ track message
P WM_LBUTTONDOWN fwKeys:MK_LBUTTON xPos:39 yPos:11
S WM_GETDLGCODE
R WM_GETDLGCODE fuDlgCode:DLGC_UNDEFPUSHBUTTON | DLGC_BUTTON
S WM_GETDLGCODE
R WM_GETDLGCODE fuDlgCode:DLGC_UNDEFPUSHBUTTON | DLGC_BUTTON
S BM_SETSTYLE dwStyle:BS_DEFPUSHBUTTON fRedraw:True
p WM_LBUTTONUP fwKeys:00000 xPos:20 yPos:84
S WM_CAPTURECHANGED hwndNewCapture:00000000
R WM_CAPTURECHANGED
P WM_MOUSELEAVE
P WM_PAINT hdc:00000000
S WM_GETDLGCODE
R WM_GETDLGCODE fuDlgCode:DLGC_DEFPUSHBUTTON | DLGC_BUTTON
S BM_SETSTYLE dwStyle:BS_PUSHBUTTON fRedraw:True
thanks.
|
|
|
|
|
That's how the button control works, the button that has the focus also becomes the default button, so you can click it by hitting Enter.
|
|
|
|
|
Hi experts,
I build one page of document which is a result of some calculation.
What control can I use to display one of document or HTML document?
How can I print it?
I want to use dialog box.
Thanks,
|
|
|
|
|
Hi,
I am trying to catch a message when a dead character is pressed:
I created a single document project and tried the following:
1. Add ON_WM_DEADCHAR() and a corresponding OnDeadChar() method
2. Implemented WindowProc() and search for WM_DEADCHAR message.
To make sure that keyboard message are catched, I catch WM_KEYDOWN as well and it is works fine.
Does someone have a clue how to get a message when a dead key is pressed?
Thanks, Udi Raz
|
|
|
|