Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Vis c++ problems!

Options
  • 25-03-2004 9:46am
    #1
    Registered Users Posts: 1,253 ✭✭✭


    hey all....

    im working for a company in germany at the moment (as an intern). basically, my task requires that i can program using visual c++. i have a limited amount of c and at the moment i am trying to teach myself how to use visual.

    i got hold of a few tutorials. the one i am using at the moment is "teach yourself visual c++ 6 in 21 days". it has a lot of worked examples in it. and here lies my problem...

    i am in the middle of a worked example (ch. 10) and i am at a stage where the code should compile. when i build the code i get some errors as shown:

    e:\menus\day10\day10doc.h(35) : error C2143: syntax error : missing ';' before '*'
    e:\menus\day10\day10doc.h(35) : error C2501: 'CLine' : missing storage-class or type specifiers
    e:\menus\day10\day10doc.h(35) : error C2501: 'GetLine' : missing storage-class or type specifiers
    e:\menus\day10\day10doc.h(37) : error C2143: syntax error : missing ';' before '*'
    e:\menus\day10\day10doc.h(37) : error C2501: 'CLine' : missing storage-class or type specifiers
    e:\menus\day10\day10doc.h(37) : error C2501: 'AddLine' : missing storage-class or type specifiers

    now i am not sure why this has happened as i have not even edited the code in this header file.

    maybe someone could shed some light on this for me....?


Comments

  • Registered Users Posts: 491 ✭✭Silent Bob


    Step 1) post some code.

    Now, are you using VC++6.0 or the new one? VC++6.0 is a nasty nasty compiler.


Advertisement