Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing Visual Basic 6 dll in Visual C++ 6 Pin
Kumarunster5-Mar-05 10:45
Kumarunster5-Mar-05 10:45 
GeneralRe: Using Visual Basic 6 dll in Visual C++ 6 Pin
Mike Dimmick5-Mar-05 12:51
Mike Dimmick5-Mar-05 12:51 
Generalhard time with dll Pin
gamitech5-Mar-05 10:33
gamitech5-Mar-05 10:33 
GeneralCTabCtrl Pin
lino_i5-Mar-05 10:17
lino_i5-Mar-05 10:17 
GeneralVisual Studio for Web Page Design Pin
Grahamfff5-Mar-05 8:27
Grahamfff5-Mar-05 8:27 
GeneralRe: Visual Studio for Web Page Design Pin
alex.barylski5-Mar-05 10:04
alex.barylski5-Mar-05 10:04 
GeneralMapping Mode Pin
LiYS5-Mar-05 4:10
LiYS5-Mar-05 4:10 
QuestionWhot is wrong with this .h file? Pin
Glich5-Mar-05 3:16
Glich5-Mar-05 3:16 
/*The Compiler errors is:

fatal error C1070 mismatched #if/#endif pair in file '**/*/****'

hope you can help!*/


#ifndef _WINSOCK2_H
#define _WINSOCK2_H
#define _GNU_H_WINDOWS32_SOCKETS
#ifdef __cplusplus
extern "C" {
#endif

#include <winsock.h>

#define FD_MAX_EVENTS 10

#define FD_READ_BIT 0
#define FD_WRITE_BIT 1
#define FD_OOB_BIT 2
#define FD_ACCEPT_BIT 3
#define FD_CONNECT_BIT 4
#define FD_CLOSE_BIT 5

typedef struct _WSANETWORKEVENTS {
long lNetworkEvents;
int iErrorCode[FD_MAX_EVENTS];
} WSANETWORKEVENTS, *LPWSANETWORKEVENTS;

typedef HANDLE WSAEVENT;
#define WSACreateEvent() CreateEvent(NULL, TRUE, FALSE, NULL)
/* etc */

int WINAPI WSAEnumNetworkEvents(SOCKET s, WSAEVENT hEventObject, LPWSANETWORKEVENTS lpNetworkEvents);
int WINAPI WSAEventSelect(SOCKET s, WSAEVENT hEventObject, long lNetworkEvents);

//ifdef __cplusplus
#endif
#endif
#endif
#endif
#endif
}







AnswerRe: Whot is wrong with this .h file? Pin
Maximilien5-Mar-05 3:30
Maximilien5-Mar-05 3:30 
GeneralRe: Whot is wrong with this .h file? Pin
Glich5-Mar-05 7:28
Glich5-Mar-05 7:28 
GeneralRe: Whot is wrong with this .h file? Pin
Maximilien5-Mar-05 7:46
Maximilien5-Mar-05 7:46 
Generalneed sub7 open source to learn about windows managment Pin
nadzzz5-Mar-05 3:06
nadzzz5-Mar-05 3:06 
Generalsource code from exe Pin
V.G5-Mar-05 1:38
V.G5-Mar-05 1:38 
GeneralRe: source code from exe Pin
Anonymous5-Mar-05 1:46
Anonymous5-Mar-05 1:46 
GeneralRe: source code from exe Pin
V.G5-Mar-05 1:48
V.G5-Mar-05 1:48 
GeneralRe: source code from exe Pin
Gary R. Wheeler5-Mar-05 2:23
Gary R. Wheeler5-Mar-05 2:23 
GeneralRe: source code from exe Pin
ThatsAlok6-Mar-05 18:17
ThatsAlok6-Mar-05 18:17 
GeneralRe: source code from exe Pin
Gary R. Wheeler5-Mar-05 2:19
Gary R. Wheeler5-Mar-05 2:19 
GeneralEnumerating ip addresses Pin
lastdays5-Mar-05 1:24
lastdays5-Mar-05 1:24 
GeneralRe: Enumerating ip addresses Pin
lastdays5-Mar-05 1:35
lastdays5-Mar-05 1:35 
QuestionHow do I get the dialog controls palette back ??? Pin
Still learning how to code5-Mar-05 0:41
Still learning how to code5-Mar-05 0:41 
AnswerRe: How do I get the dialog controls palette back ??? Pin
Gary R. Wheeler5-Mar-05 1:43
Gary R. Wheeler5-Mar-05 1:43 
GeneralRe: How do I get the dialog controls palette back ??? Pin
Still learning how to code5-Mar-05 3:25
Still learning how to code5-Mar-05 3:25 
GeneralPlease help Pin
Nemok4-Mar-05 23:16
Nemok4-Mar-05 23:16 
GeneralDelete file at startup or shutdown Pin
Anonymous4-Mar-05 23:12
Anonymous4-Mar-05 23:12 

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.