Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 -


The headline indicates that I'm having trouble compiling MFC-based applications, this problem is caused by the Windows Server 2003 platform SDK started immediately after installing and still when I try to compile a new MFC project, I get the following errors:

c: \ program files \ microsoft platform sdk \ Include \ zmouse.h (141): Error C2146: Syntax Error: Disappears ';' Before identifying 'HwndMSWheel'

1> c: \ program files \ microsoft platform sdk \ include \ zmouse.h (141): error C2433: 'hwnd': 'inline' is not allowed on data announcements

1> c: \ program files \ microsoft platform sdk \ include \ zmouse.h (141): error C4430: missing type specifier - int assumed. Note: C ++ default-int

1> c: \ program files \ microsoft platform does not support sdk \ include \ zmouse.h (142): Error C2065: 'PUINT': Undeclared identifier < / P>

1: c: \ program files \ microsoft platform sdk \ include \ zmouse.h (142): error C2146: syntax error: missing ')' before identifying 'puiMsh_MsgMouseWheel'

1> c: \ program files \ microsoft platform sdk \ include \ zmouse.h (142): error C4430: missing type specifier - int assumed. Note: C ++ default-int

1> c: \ program files \ microsoft platform sdk \ include \ zmouse.h (147): error C2059: syntax error: ')' of

Does not support

1> c: \ program files \ microsoft platform sdk \ include \ zmouse.h (148): error C2143: syntax error: missing ';' '{': '{': Missing Function Header (Formal List of Old Style?) '{'

1: c: \ program files \ microsoft platform sdk \ include \ zmouse.h (148): Error C2447: '

1> c: \ program files \ microsoft platform sdk \ include \ commctrl.h (29): error C2146: syntax error:'; ' Before identifying 'HRESULT'

1> c: \ program files \ microsoft platform sdk \ include \ commctrl.h (29): error C4430: missing type specifier - int assumed. Note: C ++ default-int

1> c: \ program files \ microsoft platform does not support sdk \ include \ commctrl.h (29): error C4430: missing type specifier - int assumed Gaya. Note: C ++ default-int

1> c: \ program files \ microsoft platform sdk \ include \ prsht.h (97): error C2065: 'callback': undesired identifier

Does not support

1> c: \ program files \ microsoft platform sdk \ include \ prsht.h (97): error C2065: 'LPFNPSPCALLBACKA': undeclared identifier

1> c: \ program Files \ microsoft platform Sdk \ include \ prsht.h (97): Error C4430: Missing type specifier - int assumed. Note: C ++ default-int

1> c: \ program files \ microsoft platform sdk \ include \ prsht.h (97): Serious error does not support C1903: from previous error (s) unable to retrieve ; Preventing Compilation

In some cases I solved the problem by including the windows.h and defining WIN32_LEAN_AND_MEAN at the top of stdafx.h. Although the proposed solutions do not work for large projects that use other libraries to add stable and dynamic. I'm not really sure why this is happening because I have tried to re-install the platform SDK.

Any help is appreciated.

Thanax :)

Are you sure the windows before zmouse.h Include .h


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -