Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error during compilation Pin
arupsarkar15-Sep-10 18:30
arupsarkar15-Sep-10 18:30 
GeneralRe: Error during compilation Pin
Luc Pattyn16-Sep-10 0:55
sitebuilderLuc Pattyn16-Sep-10 0:55 
GeneralRe: Error during compilation Pin
David Crow16-Sep-10 2:55
David Crow16-Sep-10 2:55 
QuestionChanging the mouse pointer globally Pin
pjdriverdude15-Sep-10 9:56
pjdriverdude15-Sep-10 9:56 
GeneralRe: Changing the mouse pointer globally Pin
David Crow15-Sep-10 10:00
David Crow15-Sep-10 10:00 
GeneralRe: Changing the mouse pointer globally Pin
pjdriverdude15-Sep-10 10:40
pjdriverdude15-Sep-10 10:40 
AnswerRe: Changing the mouse pointer globally Pin
pjdriverdude16-Sep-10 5:08
pjdriverdude16-Sep-10 5:08 
Questionfatal error c1020: unexpected #endif [modified] Pin
AmbiguousName15-Sep-10 6:52
AmbiguousName15-Sep-10 6:52 
hello guys...i am writing small program for TAPI app. When I try to compile this I get this error in tapi.h header file
fatal error c1020: unexpected #endif

I looked like my code has nothing to do with it so im gonna paste the very last portion in tapi.h and there, very last line #endif is my problem.
#define TAPIERROR_FORMATMESSAGE(__ErrCode__)                                                   \
                                                                                               \
                    ( ( (__ErrCode__) > 0xFFFF0000 ) ?                                         \
                                                                                               \
                            ( (__ErrCode__) & 0x0000FFFF ) :                                   \
                                                                                               \
                            ( ( (__ErrCode__) & 0x10000000 ) ?                                 \
                                                                                               \
                              ( (__ErrCode__) - 0x90000000 + 0xF000 ) :                        \
                                                                                               \
                              ( (__ErrCode__) - 0x80000000 + 0xE000 ) ) )



#ifdef __cplusplus
}                       /* End of extern "C" { */
#endif  /* __cplusplus */


#pragma pack()

#endif // TAPI_H


modified on Thursday, September 16, 2010 1:14 AM

QuestionRe: fatal error c1020: unexpected #endif Pin
David Crow15-Sep-10 7:11
David Crow15-Sep-10 7:11 
AnswerRe: fatal error c1020: unexpected #endif Pin
Luc Pattyn15-Sep-10 7:18
sitebuilderLuc Pattyn15-Sep-10 7:18 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 19:13
AmbiguousName15-Sep-10 19:13 
GeneralRe: fatal error c1020: unexpected #endif Pin
Luc Pattyn16-Sep-10 0:57
sitebuilderLuc Pattyn16-Sep-10 0:57 
GeneralRe: fatal error c1020: unexpected #endif Pin
David Crow16-Sep-10 2:51
David Crow16-Sep-10 2:51 
AnswerRe: fatal error c1020: unexpected #endif Pin
Richard MacCutchan15-Sep-10 8:37
mveRichard MacCutchan15-Sep-10 8:37 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 19:11
AmbiguousName15-Sep-10 19:11 
GeneralRe: fatal error c1020: unexpected #endif Pin
Richard MacCutchan15-Sep-10 21:56
mveRichard MacCutchan15-Sep-10 21:56 
AnswerRe: fatal error c1020: unexpected #endif Pin
Emilio Garavaglia15-Sep-10 21:37
Emilio Garavaglia15-Sep-10 21:37 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 23:17
AmbiguousName15-Sep-10 23:17 
QuestionBest practice for managing large quantity of hard-coded string in application. Pin
Maximilien15-Sep-10 4:17
Maximilien15-Sep-10 4:17 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Aescleal15-Sep-10 5:28
Aescleal15-Sep-10 5:28 
GeneralRe: Best practice for managing large quantity of hard-coded string in application. Pin
Maximilien15-Sep-10 8:19
Maximilien15-Sep-10 8:19 
GeneralRe: Best practice for managing large quantity of hard-coded string in application. Pin
Aescleal15-Sep-10 11:19
Aescleal15-Sep-10 11:19 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Eugen Podsypalnikov15-Sep-10 9:19
Eugen Podsypalnikov15-Sep-10 9:19 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Sameerkumar Namdeo15-Sep-10 19:26
Sameerkumar Namdeo15-Sep-10 19:26 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Shivanand Gupta15-Sep-10 20:24
Shivanand Gupta15-Sep-10 20:24 

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.