Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwinsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo989-Mar-10 20:07
wk_leo989-Mar-10 20:07 
AnswerRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
KarstenK9-Mar-10 21:05
mveKarstenK9-Mar-10 21:05 
AnswerRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Moak9-Mar-10 22:47
Moak9-Mar-10 22:47 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo9814-Mar-10 5:50
wk_leo9814-Mar-10 5:50 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Moak14-Mar-10 5:59
Moak14-Mar-10 5:59 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo9815-Mar-10 4:22
wk_leo9815-Mar-10 4:22 
GeneralRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
wk_leo9817-Mar-10 4:11
wk_leo9817-Mar-10 4:11 
AnswerRe: winsock setsockopt() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Spawn@Melmac10-Mar-10 6:32
Spawn@Melmac10-Mar-10 6:32 
The only thing that springs to mind is that your input values to the call are bad.

Set a breakpoint prior to th call and make sure the values are what you expect before issuing the call.

Without more specifics it is impossible to tell what is going wrong.
Alan

Questionopen application in hidden mode Pin
JM22519-Mar-10 19:53
JM22519-Mar-10 19:53 
AnswerRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:09
professional«_Superman_»9-Mar-10 20:09 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:18
JM22519-Mar-10 20:18 
GeneralRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:22
professional«_Superman_»9-Mar-10 20:22 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:24
JM22519-Mar-10 20:24 
GeneralRe: open application in hidden mode Pin
«_Superman_»9-Mar-10 20:32
professional«_Superman_»9-Mar-10 20:32 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:39
JM22519-Mar-10 20:39 
GeneralRe: open application in hidden mode Pin
Rozis10-Mar-10 14:41
Rozis10-Mar-10 14:41 
AnswerRe: open application in hidden mode Pin
R@jeev K R9-Mar-10 20:14
R@jeev K R9-Mar-10 20:14 
GeneralRe: open application in hidden mode Pin
JM22519-Mar-10 20:14
JM22519-Mar-10 20:14 
GeneralRe: open application in hidden mode Pin
R@jeev K R9-Mar-10 20:40
R@jeev K R9-Mar-10 20:40 
QuestionType casting LPSTR Pin
RakeshManohar9-Mar-10 19:22
RakeshManohar9-Mar-10 19:22 
AnswerRe: Type casting LPSTR Pin
Rajesh R Subramanian9-Mar-10 19:30
professionalRajesh R Subramanian9-Mar-10 19:30 
AnswerRe: Type casting LPSTR Pin
Mohan Ramachandra9-Mar-10 19:32
Mohan Ramachandra9-Mar-10 19:32 
GeneralRe: Type casting LPSTR Pin
RakeshManohar9-Mar-10 21:01
RakeshManohar9-Mar-10 21:01 
QuestionRe: Type casting LPSTR Pin
CPallini9-Mar-10 20:36
mveCPallini9-Mar-10 20:36 
AnswerRe: Type casting LPSTR Pin
Rajesh R Subramanian9-Mar-10 23:12
professionalRajesh R Subramanian9-Mar-10 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.