Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtTabPageContainerFlatWnd derived error Collapse All
Subject Author Date
Luis Alberto Pereira Sep 9, 2006 - 11:40 AM

Hi,

Can someone help-me.
I’m trying derive CTabPageContainerCtrl from CExtTabPageContainerFlatWnd and I start the compilation I get the follow errors:


c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(103): error C2146: syntax error : missing ’;’ before identifier ’MMVERSION’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(103): error C2501: ’MMVERSION’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(111): error C2143: syntax error : missing ’;’ before ’*’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(111): error C2501: ’LPUINT’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(121): error C2146: syntax error : missing ’;’ before identifier ’ms’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(121): error C2501: ’mmtime_tag::__unnamed::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(121): error C2501: ’mmtime_tag::__unnamed::ms’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(122): error C2146: syntax error : missing ’;’ before identifier ’sample’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(122): error C2501: ’mmtime_tag::__unnamed::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(122): error C2501: ’mmtime_tag::__unnamed::sample’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(123): error C2146: syntax error : missing ’;’ before identifier ’cb’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(123): error C2501: ’mmtime_tag::__unnamed::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(123): error C2501: ’mmtime_tag::__unnamed::cb’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(124): error C2146: syntax error : missing ’;’ before identifier ’ticks’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(124): error C2501: ’mmtime_tag::__unnamed::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(124): error C2501: ’mmtime_tag::__unnamed::ticks’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(129): error C2146: syntax error : missing ’;’ before identifier ’hour’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(129): error C2501: ’mmtime_tag::__unnamed::__unnamed::BYTE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(129): error C2501: ’mmtime_tag::__unnamed::__unnamed::hour’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(130): error C2146: syntax error : missing ’;’ before identifier ’min’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(130): error C2501: ’mmtime_tag::__unnamed::__unnamed::BYTE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(130): error C2501: ’mmtime_tag::__unnamed::__unnamed::min’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(131): error C2146: syntax error : missing ’;’ before identifier ’sec’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(131): error C2501: ’mmtime_tag::__unnamed::__unnamed::BYTE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(131): error C2501: ’mmtime_tag::__unnamed::__unnamed::sec’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(132): error C2146: syntax error : missing ’;’ before identifier ’frame’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(132): error C2501: ’mmtime_tag::__unnamed::__unnamed::BYTE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(132): error C2501: ’mmtime_tag::__unnamed::__unnamed::frame’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(133): error C2146: syntax error : missing ’;’ before identifier ’fps’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(133): error C2501: ’mmtime_tag::__unnamed::__unnamed::BYTE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(133): error C2501: ’mmtime_tag::__unnamed::__unnamed::fps’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(134): error C2146: syntax error : missing ’;’ before identifier ’dummy’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(134): error C2501: ’mmtime_tag::__unnamed::__unnamed::BYTE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(134): error C2501: ’mmtime_tag::__unnamed::__unnamed::dummy’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(136): error C2146: syntax error : missing ’;’ before identifier ’pad’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(136): error C2501: ’mmtime_tag::__unnamed::__unnamed::BYTE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(136): error C2501: ’mmtime_tag::__unnamed::__unnamed::pad’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(143): error C2146: syntax error : missing ’;’ before identifier ’songptrpos’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(143): error C2501: ’mmtime_tag::__unnamed::__unnamed::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(143): error C2501: ’mmtime_tag::__unnamed::__unnamed::songptrpos’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(146): error C2143: syntax error : missing ’;’ before ’*’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(146): error C2501: ’NPMMTIME’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(146): error C2143: syntax error : missing ’;’ before ’*’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(146): error C2501: ’FAR’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(146): error C2377: ’FAR’ : redefinition; typedef cannot be overloaded with any other symbol
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(146): error C2501: ’LPMMTIME’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(285): error C2065: ’HDRVR’ : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(285): error C2501: ’DECLARE_HANDLE’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(298): error C2146: syntax error : missing ’;’ before identifier ’dwDCISize’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(298): error C2501: ’DRVCONFIGINFOEX::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(298): error C2501: ’DRVCONFIGINFOEX::dwDCISize’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(299): error C2146: syntax error : missing ’;’ before identifier ’lpszDCISectionName’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(299): error C2501: ’DRVCONFIGINFOEX::LPCWSTR’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(299): error C2501: ’DRVCONFIGINFOEX::lpszDCISectionName’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(300): error C2146: syntax error : missing ’;’ before identifier ’lpszDCIAliasName’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(300): error C2501: ’DRVCONFIGINFOEX::LPCWSTR’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(300): error C2501: ’DRVCONFIGINFOEX::lpszDCIAliasName’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(301): error C2146: syntax error : missing ’;’ before identifier ’dnDevNode’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(301): error C2501: ’DRVCONFIGINFOEX::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(301): error C2501: ’DRVCONFIGINFOEX::dnDevNode’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(302): error C2143: syntax error : missing ’;’ before ’*’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(302): error C2371: ’NEAR’ : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(302): error C2501: ’NPDRVCONFIGINFOEX’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(302): error C2143: syntax error : missing ’;’ before ’*’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(302): error C2501: ’FAR’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(302): error C2086: ’int FAR’ : redefinition
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(302): error C2501: ’LPDRVCONFIGINFOEX’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(336): error C2146: syntax error : missing ’;’ before identifier ’dwDCISize’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(336): error C2501: ’tagDRVCONFIGINFO::DWORD’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(336): error C2501: ’tagDRVCONFIGINFO::dwDCISize’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(337): error C2146: syntax error : missing ’;’ before identifier ’lpszDCISectionName’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(337): error C2501: ’tagDRVCONFIGINFO::LPCWSTR’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(337): error C2501: ’tagDRVCONFIGINFO::lpszDCISectionName’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(338): error C2146: syntax error : missing ’;’ before identifier ’lpszDCIAliasName’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(338): error C2501: ’tagDRVCONFIGINFO::LPCWSTR’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(338): error C2501: ’tagDRVCONFIGINFO::lpszDCIAliasName’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(339): error C2143: syntax error : missing ’;’ before ’*’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(339): error C2371: ’NEAR’ : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(339): error C2501: ’NPDRVCONFIGINFO’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(339): error C2143: syntax error : missing ’;’ before ’*’
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(339): error C2501: ’FAR’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(339): error C2086: ’int FAR’ : redefinition
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(339): error C2501: ’LPDRVCONFIGINFO’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(356): error C2065: ’CALLBACK’ : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(356): error C2065: ’DRIVERPROC’ : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(356): error C2501: ’LRESULT’ : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MMSystem.h(356): fatal error C1903: unable to recover from previous error(s); stopping compilation

Suhai Gyorgy Sep 11, 2006 - 1:47 AM

I’m really not sure if that helps, but try checking the following:

In Visual Studio, select Options from the Tools menu. Open the Projects folder and, then, select VC++ Directories in Visual Studio 7.0/7.1. In the "Show directories for" drop-down list, specify "Include files", "Source files", or "Library files". In all three cases Prof-UIS directories has to be below Platform SDK directories, so that compiler first finds Platform SDK files and only after that finds Prof-UIS files.

Luis Alberto Pereira Sep 12, 2006 - 6:49 AM

I tried it but the error persist.
Is there another way ?

Thanks,

Technical Support Sep 12, 2006 - 9:54 AM

Could you let us take a look at the entire Include folders list of your Visual Studio and at the StdAfx.h file of your project? We guess you have included the MMSystem.h file in your StdAfx.h file. In this case the MMSystem.h file should be included after the Prof-UIS.h file.

Suhai Gyorgy Sep 12, 2006 - 9:07 AM

Support wrote in another thread:

If you have some newer SDK and/or DDK installed on your computer, please check the Include folders list in the Visual Studio settings and ensure the SDK folders are located at the bottom of this folders list and default Visual C++ folders are above them.

Suhai Gyorgy Sep 12, 2006 - 8:27 AM

I’ve checked in all the samples that use CExtTabPageContainerFlatWnd-derived class. What they all have in common is that both class declaration and class definition are in the same .h file, preferably inside the class’ declaration which want to use the derived class. So if in case you have declarations of your derived class in a .h file and definitions in another .cpp file, try putting every method definitions inline.

2 more faint ideas, although I think they’d cause only runtime errors, not compiler errors, but try checking anyway:
- if your application is Unicode, read the article Compatibility with Built-In Unicode Character Type
- if your application is statically linked to Prof_UIS, try reading FAQ How to link statically with Prof-UIS?