Click here to Skip to main content
15,921,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A notepad-like class... Pin
Christian Graus27-Oct-02 14:46
protectorChristian Graus27-Oct-02 14:46 
GeneralRe: A notepad-like class... Pin
Mr.Freeze27-Oct-02 17:10
Mr.Freeze27-Oct-02 17:10 
Generalstupid beginner Pin
Anonymous27-Oct-02 13:33
Anonymous27-Oct-02 13:33 
GeneralRe: stupid beginner Pin
Maximilien27-Oct-02 13:59
Maximilien27-Oct-02 13:59 
GeneralRe: stupid beginner Pin
Anonymous27-Oct-02 14:05
Anonymous27-Oct-02 14:05 
GeneralRe: stupid beginner Pin
Christian Graus27-Oct-02 14:21
protectorChristian Graus27-Oct-02 14:21 
GeneralRe: stupid beginner Pin
Anonymous27-Oct-02 17:32
Anonymous27-Oct-02 17:32 
GeneralRe: stupid beginner Pin
Christian Graus27-Oct-02 17:34
protectorChristian Graus27-Oct-02 17:34 
You have more than one main() in your code. Try creating a new console application and choosing a 'hello world' application. VC will create a hello world app ( although it may put 'using namespace std', which is very bad, you should only use the bits you need, as I did in my example. It MAY also include iostream.h instead of iostream, if it does that, it won't have any namespace stuff at all ), you can replace the code with the stuff I posted and it will all be fine. Obviously, you don't need a hello world app, you want to learn, so you may like to do a 'find in files' ( in the edit menu ) and look for main, see if you can find more than one. If not, your main is in a header which is being included elsewhere. It sounds messy enough that I would start afresh though.

What book are you using ?

P.S. if you create an account on CP, you'll actually get my responses via email, which means you'll know they happened, and have them to refer to, even offline.


Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
GeneralEnableToolTips for view (doc/view) affects main toolbar tooltips!? :\ Pin
Janeko27-Oct-02 12:59
Janeko27-Oct-02 12:59 
GeneralCDockContext Pin
MaTrIX2k227-Oct-02 11:50
MaTrIX2k227-Oct-02 11:50 
Generalconsole app disappearing VS.NET Pin
User 814727-Oct-02 11:02
User 814727-Oct-02 11:02 
GeneralListBox Characteristics Pin
Ayush27-Oct-02 9:03
Ayush27-Oct-02 9:03 
GeneralRe: ListBox Characteristics Pin
Ravi Bhavnani27-Oct-02 9:36
professionalRavi Bhavnani27-Oct-02 9:36 
QuestionHow it Possible.? Pin
Renjith Ramachandran27-Oct-02 7:01
Renjith Ramachandran27-Oct-02 7:01 
Generalproblems with changing list items' image icon Pin
Matias27-Oct-02 6:29
Matias27-Oct-02 6:29 
GeneralRe: problems with changing list items' image icon Pin
Chris Losinger27-Oct-02 7:00
professionalChris Losinger27-Oct-02 7:00 
GeneralRe: problems with changing list items' image icon Pin
Matias27-Oct-02 7:06
Matias27-Oct-02 7:06 
GeneralRe: problems with changing list items' image icon Pin
peterchen27-Oct-02 7:29
peterchen27-Oct-02 7:29 
GeneralRe: problems with changing list items' image icon Pin
Matias27-Oct-02 7:39
Matias27-Oct-02 7:39 
Questionfor (; !Free; ) ; ???? Pin
tongc27-Oct-02 5:51
tongc27-Oct-02 5:51 
AnswerRe: for (; !Free; ) ; ???? Pin
Chris Losinger27-Oct-02 6:25
professionalChris Losinger27-Oct-02 6:25 
AnswerRe: for (; !Free; ) ; ???? Pin
Joaquín M López Muñoz27-Oct-02 10:56
Joaquín M López Muñoz27-Oct-02 10:56 
GeneralRe: for (; !Free; ) ; ???? Pin
tongc27-Oct-02 11:18
tongc27-Oct-02 11:18 
AnswerRe: for (; !Free; ) ; ???? Pin
ian mariano27-Oct-02 21:51
ian mariano27-Oct-02 21:51 
QuestionHelp! LNK2005 Error? Pin
Dean_Lee27-Oct-02 4:35
Dean_Lee27-Oct-02 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.