Click here to Skip to main content
15,903,824 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Questiondebug dll not working Pin
appollosputnik21-Mar-12 6:05
appollosputnik21-Mar-12 6:05 
AnswerRe: debug dll not working Pin
Chris Losinger21-Mar-12 6:16
professionalChris Losinger21-Mar-12 6:16 
AnswerRe: debug dll not working Pin
Rajesh R Subramanian21-Mar-12 6:26
professionalRajesh R Subramanian21-Mar-12 6:26 
AnswerRe: debug dll not working Pin
Albert Holguin21-Mar-12 7:43
professionalAlbert Holguin21-Mar-12 7:43 
AnswerRe: debug dll not working Pin
Malli_S21-Mar-12 20:09
Malli_S21-Mar-12 20:09 
AnswerRe: debug dll not working Pin
Stephen Hewitt22-Mar-12 3:41
Stephen Hewitt22-Mar-12 3:41 
QuestionvCard Pin
wangxiaodong21-Mar-12 1:55
wangxiaodong21-Mar-12 1:55 
AnswerRe: vCard Pin
Code-o-mat21-Mar-12 2:38
Code-o-mat21-Mar-12 2:38 
Questionload dll on remote PC Pin
lolyckan20-Mar-12 22:30
lolyckan20-Mar-12 22:30 
AnswerRe: load dll on remote PC Pin
Code-o-mat20-Mar-12 23:15
Code-o-mat20-Mar-12 23:15 
GeneralRe: load dll on remote PC Pin
lolyckan21-Mar-12 1:52
lolyckan21-Mar-12 1:52 
GeneralRe: load dll on remote PC Pin
Code-o-mat21-Mar-12 1:57
Code-o-mat21-Mar-12 1:57 
GeneralRe: load dll on remote PC Pin
lolyckan21-Mar-12 2:21
lolyckan21-Mar-12 2:21 

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.