A
--== Alain ==--
Hi,
Under VC++.NET, i have a stupid issue with #include statement.
Usually when we include some *.h file, we need to declare them before
any #using <> or #using namespace... to avoid issue at compilation time.
However, when i write #include "commctrl.h" as below in my *.h file :
#pragma once
#include "commctrl.h"
#using <mscorlib.dll>
using namespace System;
using namespace System::Windows::Forms;
using namespace System:rawing;
using namespace System::ComponentModel;
....
i have a lot of errors like :
D:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\commctrl.h(29) : error C2146: syntax error :
missing ';' before identifier 'HRESULT'
D:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\commctrl.h(29) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
and so on...
so now, where the problem ?
thanks a lot,
Al.
Under VC++.NET, i have a stupid issue with #include statement.
Usually when we include some *.h file, we need to declare them before
any #using <> or #using namespace... to avoid issue at compilation time.
However, when i write #include "commctrl.h" as below in my *.h file :
#pragma once
#include "commctrl.h"
#using <mscorlib.dll>
using namespace System;
using namespace System::Windows::Forms;
using namespace System:rawing;
using namespace System::ComponentModel;
....
i have a lot of errors like :
D:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\commctrl.h(29) : error C2146: syntax error :
missing ';' before identifier 'HRESULT'
D:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\commctrl.h(29) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
and so on...
so now, where the problem ?
thanks a lot,
Al.