constructor, destructor

This is a discussion on constructor, destructor within the C++ Programming forums, part of the General Programming Boards category; Code: GAUGE_HEADER_FS700(GAUGE_W, cs_gauge_name, &cs;_list, \ cs_mouse_rect, 0, 0, 0, 0); the error expected constructor, destructor, or type conversion before ',' ...

  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    37

    constructor, destructor

    Code:
    GAUGE_HEADER_FS700(GAUGE_W, cs_gauge_name, &cs;_list,    \
                            cs_mouse_rect, 0, 0, 0, 0);
    the error
    expected constructor, destructor, or type conversion before ',' token|

    Ive been searching high and low to fix this but dont understand
    whats wrong

    any tips?
    and a little off the topic for a second does anyone now if its ok to post
    code from the Microsoft example library that's copyrighted?

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Glyfada,Athens
    Posts
    2,649
    I think you should try this
    Code:
    GAUGE_HEADER_FS700(GAUGE_W, cs_gauge_name, &cs_list,    
                            cs_mouse_rect, 0, 0, 0, 0);
    without the ';' after the cs.Also the '\' i think is not necessary

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    37
    making progress
    I think the fix is good it removed 3 errors
    I will look to see if i can figure the rest out by doing a little homework
    Thanks

  4. #4
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Glyfada,Athens
    Posts
    2,649
    Ok.Try it by your own,but if the errors are still there,feel free to post them

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. constructor and destructor
    By Micko in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 07:51 AM
  2. using constructor & destructor
    By tinkerbelle in forum C++ Programming
    Replies: 2
    Last Post: 08-06-2003, 06:30 PM
  3. Constructor and destructor
    By gogo in forum C++ Programming
    Replies: 4
    Last Post: 03-12-2003, 09:03 PM
  4. 1 constructor, 2 destructor!
    By Hunter2 in forum Game Programming
    Replies: 13
    Last Post: 02-05-2003, 12:34 PM
  5. constructor and destructor
    By Sekti in forum C++ Programming
    Replies: 6
    Last Post: 03-08-2002, 10:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21