Click here to Skip to main content
15,918,193 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 
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 
Fine that all is working. You are always welcome.

Just one more note:
You may replace the include of winsock2.h by afxsock.h in stdafx.h. Then you did not have to add the library to your project. That is done by import statements in afxsock.h and atlsocket.h:
C++
#pragma comment(lib, "wsock32.lib")
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "mswsock.lib")

When creating a new MFC project and selecting "Windows Sockets" on the "Extended Features" tab, this will be already present in stdafx.h.

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.