Click here to Skip to main content
15,918,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to move cursor to bottom of view in SDI ? Pin
quangpk21-Nov-05 15:05
quangpk21-Nov-05 15:05 
AnswerRe: How to move cursor to bottom of view in SDI ? Pin
David Crow21-Nov-05 3:27
David Crow21-Nov-05 3:27 
GeneralRe: How to move cursor to bottom of view in SDI ? Pin
quangpk21-Nov-05 15:02
quangpk21-Nov-05 15:02 
GeneralRe: How to move cursor to bottom of view in SDI ? Pin
David Crow22-Nov-05 3:00
David Crow22-Nov-05 3:00 
QuestionLoggin in a modeledd dialog Pin
kk_vp20-Nov-05 21:20
kk_vp20-Nov-05 21:20 
AnswerRe: Loggin in a modeledd dialog Pin
kakan20-Nov-05 22:01
professionalkakan20-Nov-05 22:01 
GeneralRe: Loggin in a modeledd dialog Pin
kk_vp20-Nov-05 22:22
kk_vp20-Nov-05 22:22 
GeneralRe: Loggin in a modeledd dialog Pin
vikas amin20-Nov-05 22:40
vikas amin20-Nov-05 22:40 
GeneralRe: Loggin in a modeledd dialog Pin
kakan20-Nov-05 22:42
professionalkakan20-Nov-05 22:42 
GeneralRe: Loggin in a modeledd dialog Pin
kk_vp21-Nov-05 1:55
kk_vp21-Nov-05 1:55 
GeneralRe: Loggin in a modeledd dialog Pin
kakan21-Nov-05 2:18
professionalkakan21-Nov-05 2:18 
GeneralRe: Loggin in a modeledd dialog Pin
David Crow21-Nov-05 3:34
David Crow21-Nov-05 3:34 
QuestionExe signature bytes Pin
zooley20-Nov-05 20:09
zooley20-Nov-05 20:09 
AnswerRe: Exe signature bytes Pin
Gary R. Wheeler21-Nov-05 2:03
Gary R. Wheeler21-Nov-05 2:03 
GeneralRe: Exe signature bytes Pin
zooley21-Nov-05 3:00
zooley21-Nov-05 3:00 
QuestionRe: Exe signature bytes Pin
David Crow21-Nov-05 3:51
David Crow21-Nov-05 3:51 
AnswerRe: Exe signature bytes Pin
zooley21-Nov-05 19:20
zooley21-Nov-05 19:20 
QuestionRe: Exe signature bytes Pin
David Crow22-Nov-05 3:02
David Crow22-Nov-05 3:02 
AnswerRe: Exe signature bytes Pin
zooley22-Nov-05 19:51
zooley22-Nov-05 19:51 
AnswerRe: Exe signature bytes Pin
David Crow21-Nov-05 3:43
David Crow21-Nov-05 3:43 
GeneralRe: Exe signature bytes Pin
zooley21-Nov-05 20:00
zooley21-Nov-05 20:00 
QuestionRe: Exe signature bytes Pin
David Crow22-Nov-05 2:59
David Crow22-Nov-05 2:59 
AnswerRe: Exe signature bytes Pin
zooley22-Nov-05 19:52
zooley22-Nov-05 19:52 
Questionwinsock.h problem Pin
newbie534520-Nov-05 20:09
newbie534520-Nov-05 20:09 
I am trying to incorporate headers from one program into another. The host program compiles fine until I add my stdafx.h which includes:

#include afxwin.h // MFC core and standard components
#include afxext.h // MFC extensions
#include afxdisp.h // MFC Automation classes
#include afxdtctl.h // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include afxcmn.h
//(syntax edited for posting)

it then generates errors such as these in which there seems to be an ambiguity between winsock.h and winsock2.h:

c:\Documents and Settings\Brenaman\Desktop\UAV Simulator\use\SourceCode\use_ios\Globals\globals_socket_ext.h(13): error C2146: syntax error : missing ';' before identifier 'socketData'

c:\Documents and Settings\Brenaman\Desktop\UAV Simulator\use\SourceCode\use_ios\Globals\typedefs.h(41): error C2501: 'gameport::capability' : missing storage-class or type specifiers

c:\Documents and Settings\Brenaman\Desktop\UAV Simulator\use\SourceCode\use_ios\Globals\globals_socket_ext.h(15): error C2501: 'recvSockAddr' : missing storage-class or type specifiers

I've tried various things:

#define _WINSOCKAPI_ in various places to disinclude winsock.h in windows.h.
Editing windows.h to include winsock2 instead of winsock.
Various #include sequences.

Thank you in advance for any help.

- Chris





AnswerRe: winsock.h problem Pin
vikas amin20-Nov-05 22:47
vikas amin20-Nov-05 22:47 

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.