Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. include file error

include file error

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestioncsharpdatabase
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Angel Kid
    wrote on last edited by
    #1

    Hi,guys.I have a question to ask,anyone could help? In VC++ 6 ,I build a SDI program,and add a dialog class used ClassWizard. In the dialog class CPP file,I include the file of the view. /#include "hotel_misview.h" then complied this project ,the complier gave me the message follow: i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2143: syntax error : missing ';' before '*' i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2501: 'CHotel_MISDoc' : missing storage-class or type specifiers i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2501: 'GetDocument' : missing storage-class or type specifiers could anyone tell me why?Thanks a lot. =============== YES, I am here. ===============

    V G 2 Replies Last reply
    0
    • A Angel Kid

      Hi,guys.I have a question to ask,anyone could help? In VC++ 6 ,I build a SDI program,and add a dialog class used ClassWizard. In the dialog class CPP file,I include the file of the view. /#include "hotel_misview.h" then complied this project ,the complier gave me the message follow: i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2143: syntax error : missing ';' before '*' i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2501: 'CHotel_MISDoc' : missing storage-class or type specifiers i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2501: 'GetDocument' : missing storage-class or type specifiers could anyone tell me why?Thanks a lot. =============== YES, I am here. ===============

      V Offline
      V Offline
      volkan878
      wrote on last edited by
      #2

      /#include "hotel_misview.h" If this is how you wrote it in your code too, you better remove the "/" before the #define preprocessor.

      A 1 Reply Last reply
      0
      • V volkan878

        /#include "hotel_misview.h" If this is how you wrote it in your code too, you better remove the "/" before the #define preprocessor.

        A Offline
        A Offline
        Angel Kid
        wrote on last edited by
        #3

        sorry , I made the mistake in here but right in my code. =============== YES, I am here. ===============

        1 Reply Last reply
        0
        • A Angel Kid

          Hi,guys.I have a question to ask,anyone could help? In VC++ 6 ,I build a SDI program,and add a dialog class used ClassWizard. In the dialog class CPP file,I include the file of the view. /#include "hotel_misview.h" then complied this project ,the complier gave me the message follow: i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2143: syntax error : missing ';' before '*' i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2501: 'CHotel_MISDoc' : missing storage-class or type specifiers i:\microsoft visual studio\myprojects\database\hotel_mis\hotel_misview.h(21) : error C2501: 'GetDocument' : missing storage-class or type specifiers could anyone tell me why?Thanks a lot. =============== YES, I am here. ===============

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          You need to #include the .h file that declares your document class in hotel_misview.h, prior to the first reference to CHotel_MISDoc.


          Software Zen: delete this;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups