| | |
"missing storage-class or type specifiers" error
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2004
Posts: 4
Reputation:
Solved Threads: 0
hey, my first post here
and I don't think it's too much of a problem... I just can't get it to work. This is a simple Tile Engine written in GDI32/C++.
Errors:
c:\Documents and Settings\Default\My Documents\Visual Studio Projects\Dragon Slayer UM\Dragon Slayer UM\cMap.h(10) : error C2143: syntax error : missing ';' before '*'
c:\Documents and Settings\Default\My Documents\Visual Studio Projects\Dragon Slayer UM\Dragon Slayer UM\cMap.h(10) : error C2501: 'cMap::cTile' : missing storage-class or type specifiers
c:\Documents and Settings\Default\My Documents\Visual Studio Projects\Dragon Slayer UM\Dragon Slayer UM\cMap.h(10) : error C2501: 'cMap::m_tile' : missing storage-class or type specifiers
and I don't think it's too much of a problem... I just can't get it to work. This is a simple Tile Engine written in GDI32/C++.Errors:
c:\Documents and Settings\Default\My Documents\Visual Studio Projects\Dragon Slayer UM\Dragon Slayer UM\cMap.h(10) : error C2143: syntax error : missing ';' before '*'
c:\Documents and Settings\Default\My Documents\Visual Studio Projects\Dragon Slayer UM\Dragon Slayer UM\cMap.h(10) : error C2501: 'cMap::cTile' : missing storage-class or type specifiers
c:\Documents and Settings\Default\My Documents\Visual Studio Projects\Dragon Slayer UM\Dragon Slayer UM\cMap.h(10) : error C2501: 'cMap::m_tile' : missing storage-class or type specifiers
C++ Syntax (Toggle Plain Text)
//cTile.h #pragma once #include "stdafx.h" class cTile { private: HBITMAP m_tiles; HDC m_buffer; long m_width, m_height, m_rows, m_columns; public: cTile(HBITMAP, long, long, long, long); ~cTile(void); long GetWidth(void); long GetHeight(void); long GetRows(void); long GetColumns(void); BOOL DrawTile(HDC, long, long, long, long); }; //cMap.h #pragma once #include "stdafx.h" class cMap { private: char *m_map; cTile *m_tile; public: cMap(void); ~cMap(void); };
![]() |
Similar Threads
- "missing storage-class or type specifiers" when using static data members (C++)
- Error2501: missing storage-class or type specifiers (C++)
- missing storage-class or type specifiers error (C++)
- errors points to excpt.h (C++)
- Help with Error message (C++)
- MS Visual++ 6.0 - Error C2146, C2501 ... (C++)
Other Threads in the C++ Forum
- Previous Thread: C++ Relcat/Attrcat catalog help
- Next Thread: Syntax for deleting specified file ( in C++)
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template templates test text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





