Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ win32 project file - a file like a visual studio project file Pin
jibon2124-Mar-12 17:33
jibon2124-Mar-12 17:33 
QuestionRe: c++ win32 project file - a file like a visual studio project file Pin
David Crow25-Mar-12 14:51
David Crow25-Mar-12 14:51 
QuestionMFC app with iPhone Pin
Software200723-Mar-12 6:05
Software200723-Mar-12 6:05 
AnswerRe: MFC app with iPhone Pin
Code-o-mat23-Mar-12 8:30
Code-o-mat23-Mar-12 8:30 
GeneralRe: MFC app with iPhone Pin
Software200723-Mar-12 15:47
Software200723-Mar-12 15:47 
GeneralRe: MFC app with iPhone Pin
Code-o-mat26-Mar-12 1:53
Code-o-mat26-Mar-12 1:53 
AnswerRe: MFC app with iPhone Pin
Albert Holguin24-Mar-12 8:04
professionalAlbert Holguin24-Mar-12 8:04 
QuestionHow to hanle header click & prevent of a list control Pin
Amrit Agr23-Mar-12 1:52
Amrit Agr23-Mar-12 1:52 
QuestionRe: How to hanle header click & prevent of a list control Pin
David Crow23-Mar-12 2:11
David Crow23-Mar-12 2:11 
AnswerRe: How to hanle header click & prevent of a list control Pin
Amrit Agr23-Mar-12 19:20
Amrit Agr23-Mar-12 19:20 
SuggestionRe: How to hanle header click & prevent of a list control Pin
David Crow24-Mar-12 12:29
David Crow24-Mar-12 12:29 
QuestionHow to set focus on an activeX? Pin
Member 875345022-Mar-12 18:48
Member 875345022-Mar-12 18:48 
AnswerRe: How to set focus on an activeX? Pin
Randor 23-Mar-12 7:27
professional Randor 23-Mar-12 7:27 
QuestionSubclassed CListCtrl Pin
David Crow22-Mar-12 11:18
David Crow22-Mar-12 11:18 
AnswerRe: Subclassed CListCtrl Pin
Jochen Arndt22-Mar-12 22:36
professionalJochen Arndt22-Mar-12 22:36 
GeneralRe: Subclassed CListCtrl Pin
David Crow23-Mar-12 2:09
David Crow23-Mar-12 2:09 
GeneralRe: Subclassed CListCtrl Pin
Jochen Arndt23-Mar-12 2:26
professionalJochen Arndt23-Mar-12 2:26 
QuestionSerial Port / Windows Sockets clash Pin
ad_robot22-Mar-12 2:07
ad_robot22-Mar-12 2:07 
AnswerRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt22-Mar-12 2:55
professionalJochen Arndt22-Mar-12 2:55 
QuestionRe: Serial Port / Windows Sockets clash Pin
ad_robot22-Mar-12 7:39
ad_robot22-Mar-12 7:39 
AnswerRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt22-Mar-12 8:07
professionalJochen Arndt22-Mar-12 8:07 
Because you are using stdafx.h, I assume that you are using pre-compiled headers (which is the default for VS projects).

When using pre-compiled headers, every cpp file must include the stdafx.h file before any other header files. Doing so, the standard windows and MFC definitions are present when the compiler processes other header files and the code.

As a general rule, the project specific header files should only include other header files that are necessary to compile the header file (containing definitions that are used in the header file). When including stdafx.h as first file in every cpp file, the common windows header files are already included when processing the other header files.

But your original SerialClass.h file includes header files that are also included by stdafx.h.

Please include stdafx.h as first one in all cpp files, remove all include lines for afxwin.h and windows.h from all cpp and header files (except stdafx.h) and try to build the project. If there are still errors, post them here.
GeneralRe: Serial Port / Windows Sockets clash Pin
ad_robot22-Mar-12 10:03
ad_robot22-Mar-12 10:03 
GeneralRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt22-Mar-12 21:41
professionalJochen Arndt22-Mar-12 21:41 
GeneralRe: Serial Port / Windows Sockets clash Pin
ad_robot23-Mar-12 2:21
ad_robot23-Mar-12 2:21 
GeneralRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt23-Mar-12 2:43
professionalJochen Arndt23-Mar-12 2:43 

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.