Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Vis c++ problems!

  • 25-03-2004 09:46AM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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