Click here to Skip to main content
15,916,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Serial Port / Windows Sockets clash Pin
ad_robot22-Mar-12 10:03
ad_robot22-Mar-12 10:03 
Thank you for that excellent explanation! I tried what you suggested and also moved all my #includes (from all the .cpp's and .h's) into stdafx.h. It compiled fine, even with winsock2.h included in stdafx.h.

I am having some problems now trying to use any of my existing sockets code but I think it's a linker error that should be resolvable (as Google seems to hint). I've been using a header defined class 'CIPMessage' (from Boby Thomas P's excellent article Chat Client Server[^]) to define an object that handles all the sockets communication. Creating this object gives the following errors:

VB
Serial_Force_Client.obj : error LNK2028: unresolved token (0A0003A1) "public: __thiscall CIPMessage::CIPMessage(void)" (??0CIPMessage@@$$FQAE@XZ) referenced in function "void __clrcall `dynamic initializer for 'MyMessObj''(void)" (???__EMyMessObj@@YMXXZ@?A0x282c2107@@$$FYMXXZ)
1>

Serial_Force_Client.obj : error LNK2028: unresolved token (0A0003A2) "public: __thiscall CIPMessage::~CIPMessage(void)" (??1CIPMessage@@$$FQAE@XZ) referenced in function "void __clrcall `dynamic atexit destructor for 'MyMessObj''(void)" (???__FMyMessObj@@YMXXZ@?A0x282c2107@@$$FYMXXZ)
1>

Serial_Force_Client.obj : error LNK2019: unresolved external symbol "public: __thiscall CIPMessage::CIPMessage(void)" (??0CIPMessage@@$$FQAE@XZ) referenced in function "void __clrcall `dynamic initializer for 'MyMessObj''(void)" (???__EMyMessObj@@YMXXZ@?A0x282c2107@@$$FYMXXZ)
1>

Serial_Force_Client.obj : error LNK2019: unresolved external symbol "public: __thiscall CIPMessage::~CIPMessage(void)" (??1CIPMessage@@$$FQAE@XZ) referenced in function "void __clrcall `dynamic atexit destructor for 'MyMessObj''(void)" (???__FMyMessObj@@YMXXZ@?A0x282c2107@@$$FYMXXZ)


It's getting late now so I need to call it a night Sleepy | :zzz: , but I was going to try writing some simple code tomorrow that tests the winsock2 functionality in this case.
Thanks again for your help.
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 
GeneralRe: load dll on remote PC Pin
Code-o-mat21-Mar-12 2:32
Code-o-mat21-Mar-12 2:32 

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.