Click here to Skip to main content
15,887,288 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mapping of file Pin
«_Superman_»29-Jul-11 3:37
professional«_Superman_»29-Jul-11 3:37 
GeneralRe: Mapping of file Pin
sarfaraznawaz29-Jul-11 20:30
sarfaraznawaz29-Jul-11 20:30 
GeneralRe: Mapping of file Pin
Richard Andrew x6431-Jul-11 6:30
professionalRichard Andrew x6431-Jul-11 6:30 
QuestionIssue with ShellExecute on Windows 7 in windows service application Pin
Ganesh_T28-Jul-11 21:14
Ganesh_T28-Jul-11 21:14 
AnswerRe: Issue with ShellExecute on Windows 7 in windows service application Pin
«_Superman_»29-Jul-11 3:25
professional«_Superman_»29-Jul-11 3:25 
QuestionGet Active WIndow Name Pin
Anu_Bala28-Jul-11 20:35
Anu_Bala28-Jul-11 20:35 
AnswerRe: Get Active WIndow Name Pin
«_Superman_»29-Jul-11 3:41
professional«_Superman_»29-Jul-11 3:41 
QuestionTypedef struct help Pin
WebDev.ChrisG28-Jul-11 9:13
WebDev.ChrisG28-Jul-11 9:13 
I'm currently working with the CapturePerfect SDK from Canon to create a custom application for a client's scanner. I apologize if the following question seems rather elementary, my background is in web development and I was thrown onto this project with very little knowledge of C++.

The file I'm experiencing the errors on is part of the SDK and remains unchanged, but I'm receiving a series of errors for each variable definition within the typedef struct.

C++
typedef struct tagCEICUSTOMDLGINFOA {
    DWORD cbSize;
    HWND hWnd;
    LPCSTR lpCaption;
    DWORD dwDialog;
    DWORD dwFlags;
} CEICUSTOMDLGINFOA, *LPCEICUSTOMDLGINFOA;


I'm receiving a series of errors:
error C2146: syntax error : missing ';' before identifier 'cbSize'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

That's just the first 3 errors. Each line in the snippet, excluding the first and last, produces these same three errors for it's respective variable.

There are many more typedef struct functions in the program, each one is returning these errors for their variables.

Any help with this would be greatly appreciated. Thanks.
AnswerRe: Typedef struct help Pin
Richard Andrew x6428-Jul-11 9:20
professionalRichard Andrew x6428-Jul-11 9:20 
GeneralRe: Typedef struct help Pin
WebDev.ChrisG28-Jul-11 9:23
WebDev.ChrisG28-Jul-11 9:23 
GeneralRe: Typedef struct help Pin
Richard Andrew x6428-Jul-11 9:25
professionalRichard Andrew x6428-Jul-11 9:25 
GeneralRe: Typedef struct help Pin
Albert Holguin28-Jul-11 9:43
professionalAlbert Holguin28-Jul-11 9:43 
GeneralRe: Typedef struct help Pin
Albert Holguin28-Jul-11 10:11
professionalAlbert Holguin28-Jul-11 10:11 
QuestionIs CString really based on TCHAR? Pin
Dean Seo27-Jul-11 20:50
Dean Seo27-Jul-11 20:50 
AnswerRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian27-Jul-11 21:05
professionalRajesh R Subramanian27-Jul-11 21:05 
GeneralRe: Is CString really based on TCHAR? Pin
Dean Seo27-Jul-11 21:31
Dean Seo27-Jul-11 21:31 
AnswerRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian27-Jul-11 21:51
professionalRajesh R Subramanian27-Jul-11 21:51 
GeneralRe: Is CString really based on TCHAR? [modified] Pin
Dean Seo28-Jul-11 19:35
Dean Seo28-Jul-11 19:35 
AnswerRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian28-Jul-11 20:57
professionalRajesh R Subramanian28-Jul-11 20:57 
GeneralRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian29-Jul-11 8:16
professionalRajesh R Subramanian29-Jul-11 8:16 
GeneralRe: Is CString really based on TCHAR? Pin
Dean Seo30-Jul-11 20:43
Dean Seo30-Jul-11 20:43 
GeneralRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian30-Jul-11 22:44
professionalRajesh R Subramanian30-Jul-11 22:44 
Questionbasic C struct newbee question Pin
Member 811717127-Jul-11 9:01
Member 811717127-Jul-11 9:01 
GeneralRe: basic C struct newbee question Pin
David Crow27-Jul-11 10:14
David Crow27-Jul-11 10:14 
GeneralRe: basic C struct newbee question Pin
Member 811717127-Jul-11 10:38
Member 811717127-Jul-11 10:38 

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.