Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PRINT PREVIEW ZOOM COMBOBOX Pin
Roger Allen26-Jun-09 2:37
Roger Allen26-Jun-09 2:37 
QuestionSliderCtrl Pin
p_196024-Jun-09 23:10
p_196024-Jun-09 23:10 
AnswerRe: SliderCtrl Pin
Naveen24-Jun-09 23:46
Naveen24-Jun-09 23:46 
QuestionMD5 using openssl Pin
shrims4u24-Jun-09 23:09
shrims4u24-Jun-09 23:09 
AnswerRe: MD5 using openssl Pin
Stuart Dootson25-Jun-09 0:46
professionalStuart Dootson25-Jun-09 0:46 
GeneralRe: MD5 using openssl Pin
shrims4u25-Jun-09 5:58
shrims4u25-Jun-09 5:58 
GeneralRe: MD5 using openssl Pin
Stuart Dootson25-Jun-09 6:06
professionalStuart Dootson25-Jun-09 6:06 
QuestionProblem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
REDSERPENT724-Jun-09 22:11
REDSERPENT724-Jun-09 22:11 
As the title suggests I'm having a problem compiling MFC based applications, this problem started immediately after installing the windows server 2003 platform SDK and now even 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 : missing ';' before identifier 'HwndMSWheel'

1>c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2433: 'HWND' : 'inline' not permitted on data declarations

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

1>c:\program files\microsoft platform sdk\include\zmouse.h(142) : error C2065: 'PUINT' : undeclared identifier

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

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

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

1>c:\program files\microsoft platform sdk\include\zmouse.h(148) : error C2143: syntax error : missing ';' before '{'

1>c:\program files\microsoft platform sdk\include\zmouse.h(148) : error C2447: '{' : missing function header (old-style formal list?)

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

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

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

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

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++ does not support default-int

1>c:\program files\microsoft platform sdk\include\prsht.h(97) : fatal error C1903: unable to recover from previous error(s); stopping compilation




in some cases I solved the problem by including/moving windows.h and defining WIN32_LEAN_AND_MEAN at the top of stdafx.h. However for large projects that uses static and dynamic linking to other libraries the proposed solution did not work. I'm not really sure why this is happening as I've also tried to reinstall the platform SDK to no avail.

Any help is appreciated.

Thanx Smile | :)
AnswerRe: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
Naveen24-Jun-09 22:49
Naveen24-Jun-09 22:49 
GeneralRe: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
REDSERPENT724-Jun-09 22:58
REDSERPENT724-Jun-09 22:58 
GeneralRe: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
Naveen24-Jun-09 23:13
Naveen24-Jun-09 23:13 
GeneralRe: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
REDSERPENT724-Jun-09 23:25
REDSERPENT724-Jun-09 23:25 
GeneralRe: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
Naveen24-Jun-09 23:34
Naveen24-Jun-09 23:34 
AnswerRe: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Server 2003 SP1 Pin
smitty015725-Jun-09 11:29
smitty015725-Jun-09 11:29 
Questionhow to convert bstr to char[256] Pin
ashish8patil24-Jun-09 22:04
ashish8patil24-Jun-09 22:04 
AnswerRe: how to convert bstr to char[256] Pin
Rajesh R Subramanian24-Jun-09 22:13
professionalRajesh R Subramanian24-Jun-09 22:13 
GeneralRe: how to convert bstr to char[256] Pin
ashish8patil24-Jun-09 22:27
ashish8patil24-Jun-09 22:27 
AnswerRe: how to convert bstr to char[256] Pin
CPallini24-Jun-09 22:19
mveCPallini24-Jun-09 22:19 
GeneralRe: how to convert bstr to char[256] Pin
ashish8patil24-Jun-09 22:20
ashish8patil24-Jun-09 22:20 
Questionwua api help Pin
ashish8patil24-Jun-09 20:28
ashish8patil24-Jun-09 20:28 
QuestionMTOM without .Net framework how ? Pin
ERLN24-Jun-09 19:58
ERLN24-Jun-09 19:58 
AnswerRe: MTOM without .Net framework how ? Pin
Stuart Dootson24-Jun-09 22:35
professionalStuart Dootson24-Jun-09 22:35 
Questionhmm... Now why did this work? Pin
UserNameless24-Jun-09 19:52
UserNameless24-Jun-09 19:52 
AnswerRe: hmm... Now why did this work? Pin
Rajesh R Subramanian24-Jun-09 20:19
professionalRajesh R Subramanian24-Jun-09 20:19 
GeneralRe: hmm... Now why did this work? Pin
UserNameless24-Jun-09 20:34
UserNameless24-Jun-09 20:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.