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

C / C++ / MFC

 
GeneralRe: Pin
tenwang18-Sep-08 21:51
tenwang18-Sep-08 21:51 
AnswerRe: Pin
Roger Stoltz18-Sep-08 22:16
Roger Stoltz18-Sep-08 22:16 
GeneralRe: Pin
tenwang18-Sep-08 23:12
tenwang18-Sep-08 23:12 
Questiongethostname() function returns errror Pin
Anu_Bala18-Sep-08 1:38
Anu_Bala18-Sep-08 1:38 
AnswerRe: gethostname() function returns errror Pin
Roger Stoltz18-Sep-08 1:55
Roger Stoltz18-Sep-08 1:55 
GeneralRe: gethostname() function returns errror Pin
Anu_Bala18-Sep-08 2:11
Anu_Bala18-Sep-08 2:11 
GeneralRe: gethostname() function returns errror Pin
Rajesh R Subramanian18-Sep-08 2:27
professionalRajesh R Subramanian18-Sep-08 2:27 
AnswerRe: gethostname() function returns errror Pin
Roger Stoltz18-Sep-08 2:36
Roger Stoltz18-Sep-08 2:36 
AfxMessageBox() takes either a string to display, or a resource ID corresponding to a post in the string table as argument.
Since you're passing the return value from WSAGetLastError(), which is an integer value, the AfxMessageBox() function will try to load the string that matches that ID from the string table. Likely that ID does not exist in the string table and the call fails, hence the "-1".

Assign the return value from WSAGetLastError() to a variable and debug your code.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


AnswerRe: gethostname() function returns errror Pin
Rajesh R Subramanian18-Sep-08 2:25
professionalRajesh R Subramanian18-Sep-08 2:25 
AnswerRe: gethostname() function returns errror Pin
Varghese Paul M18-Sep-08 5:14
Varghese Paul M18-Sep-08 5:14 
QuestionHow to find the number of files in a folder Pin
Deepu Antony18-Sep-08 1:31
Deepu Antony18-Sep-08 1:31 
AnswerRe: How to find the number of files in a folder Pin
Hamid_RT18-Sep-08 1:50
Hamid_RT18-Sep-08 1:50 
GeneralRe: How to find the number of files in a folder Pin
Deepu Antony18-Sep-08 2:04
Deepu Antony18-Sep-08 2:04 
GeneralRe: How to find the number of files in a folder Pin
Hamid_RT18-Sep-08 2:07
Hamid_RT18-Sep-08 2:07 
GeneralRe: How to find the number of files in a folder Pin
Deepu Antony18-Sep-08 3:15
Deepu Antony18-Sep-08 3:15 
GeneralRe: How to find the number of files in a folder Pin
David Crow18-Sep-08 3:35
David Crow18-Sep-08 3:35 
GeneralRe: How to find the number of files in a folder Pin
Deepu Antony18-Sep-08 4:42
Deepu Antony18-Sep-08 4:42 
GeneralRe: How to find the number of files in a folder Pin
David Crow18-Sep-08 5:18
David Crow18-Sep-08 5:18 
GeneralRe: How to find the number of files in a folder Pin
Joe Woodbury18-Sep-08 8:43
professionalJoe Woodbury18-Sep-08 8:43 
GeneralRe: How to find the number of files in a folder Pin
David Crow18-Sep-08 8:56
David Crow18-Sep-08 8:56 
GeneralRe: How to find the number of files in a folder Pin
Joe Woodbury18-Sep-08 10:38
professionalJoe Woodbury18-Sep-08 10:38 
AnswerRe: How to find the number of files in a folder Pin
Michael Schubert18-Sep-08 1:52
Michael Schubert18-Sep-08 1:52 
QuestionBitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
JuriB18-Sep-08 1:27
JuriB18-Sep-08 1:27 
QuestionRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
Mark Salsbery18-Sep-08 4:01
Mark Salsbery18-Sep-08 4:01 
AnswerRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
JuriB18-Sep-08 4:23
JuriB18-Sep-08 4:23 

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.