Click here to Skip to main content
15,905,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: winsock.h problem Pin
Gary R. Wheeler21-Nov-05 2:09
Gary R. Wheeler21-Nov-05 2:09 
QuestionVC++ 8 - redistributable DLLs Pin
Tal S.20-Nov-05 20:05
Tal S.20-Nov-05 20:05 
AnswerRe: VC++ 8 - redistributable DLLs Pin
Mike Dimmick21-Nov-05 7:32
Mike Dimmick21-Nov-05 7:32 
AnswerRe: VC++ 8 - redistributable DLLs Pin
Sheng Jiang 蒋晟22-Nov-05 10:50
Sheng Jiang 蒋晟22-Nov-05 10:50 
QuestionHow to remove or ignore a windows 2003 dialog ? Pin
Amarelia20-Nov-05 19:49
Amarelia20-Nov-05 19:49 
AnswerRe: How to remove or ignore a windows 2003 dialog ? Pin
vikas amin20-Nov-05 22:53
vikas amin20-Nov-05 22:53 
AnswerRe: How to remove or ignore a windows 2003 dialog ? Pin
Gary R. Wheeler21-Nov-05 2:24
Gary R. Wheeler21-Nov-05 2:24 
QuestionRetriving info in form of UNICODE Pin
anilksingh20-Nov-05 18:50
anilksingh20-Nov-05 18:50 
AnswerRe: Retriving info in form of UNICODE Pin
ThatsAlok21-Nov-05 1:35
ThatsAlok21-Nov-05 1:35 
QuestionIdentities in Outlook Express Pin
rajeevktripathi20-Nov-05 18:49
rajeevktripathi20-Nov-05 18:49 
AnswerRe: Identities in Outlook Express Pin
ThatsAlok20-Nov-05 22:00
ThatsAlok20-Nov-05 22:00 
QuestionRe: Identities in Outlook Express Pin
rajeevktripathi20-Nov-05 23:43
rajeevktripathi20-Nov-05 23:43 
QuestionSticky keys Pin
FlyingDancer20-Nov-05 18:38
FlyingDancer20-Nov-05 18:38 
AnswerRe: Sticky keys Pin
Owner drawn20-Nov-05 19:47
Owner drawn20-Nov-05 19:47 
GeneralRe: Sticky keys Pin
FlyingDancer21-Nov-05 0:25
FlyingDancer21-Nov-05 0:25 
GeneralRe: Sticky keys Pin
Owner drawn21-Nov-05 0:42
Owner drawn21-Nov-05 0:42 

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.