Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check for one bit in a word value. Pin
Johann Gerell22-May-07 19:33
Johann Gerell22-May-07 19:33 
GeneralRe: Check for one bit in a word value. Pin
CPallini22-May-07 20:31
mveCPallini22-May-07 20:31 
GeneralRe: Check for one bit in a word value. Pin
cp987623-May-07 1:21
cp987623-May-07 1:21 
AnswerRe: Check for one bit in a word value. Pin
Chris Losinger22-May-07 11:11
professionalChris Losinger22-May-07 11:11 
AnswerRe: Check for one bit in a word value. Pin
cmk22-May-07 17:46
cmk22-May-07 17:46 
AnswerRe: Check for one bit in a word value. Pin
paper6722-May-07 18:14
paper6722-May-07 18:14 
GeneralRe: Check for one bit in a word value. Pin
CPallini22-May-07 20:46
mveCPallini22-May-07 20:46 
QuestionWinsock Pin
jocblack22-May-07 5:56
jocblack22-May-07 5:56 
Hi:

I am building a client program in VC++ 6.0 using WINSOCK to connect to the server. I have a very small program that testing WINSOCK. My program contains include statement for WINSOCK2.h. Here is the code to initialize WINSOCK.

WSADATA wsaData;
int iResult;
iResult = WSAStartup(0x0202, &wsaData);
if (iResult != 0) {
printf("WSAStartup failed: %d\n", iResult);

}

Errors:

Linking...
testwin1Dlg.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
Debug/testwin1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

testwin1.exe - 2 error(s), 0 warning(s)

Additional Comment:
I looked in WINSOCK.H and WINSOCK2.H and both has WSAStartup. In WINSOCK.H, it was PASCAL version. In WINSOCK2.H, it was either C or C++ version. Both version has the same signature (calling argurment).

Can this be an issue? if yes, how can I eliminate the PASCAL version (WINSOCK.H)? Note that, I never include WINSOCK.H.

Thanks

Bill
QuestionRe: Winsock Pin
David Crow22-May-07 6:04
David Crow22-May-07 6:04 
AnswerRe: Winsock Pin
Michael Sadlon22-May-07 6:41
Michael Sadlon22-May-07 6:41 
GeneralRe: Winsock Pin
jocblack22-May-07 12:07
jocblack22-May-07 12:07 
QuestionImage Pin
deeps_cute22-May-07 5:35
deeps_cute22-May-07 5:35 
QuestionRe: Image Pin
Mark Salsbery22-May-07 7:21
Mark Salsbery22-May-07 7:21 
QuestionRe: Image Pin
Hamid_RT22-May-07 7:46
Hamid_RT22-May-07 7:46 
AnswerRe: Image Pin
deeps_cute22-May-07 17:50
deeps_cute22-May-07 17:50 
GeneralRe: Image Pin
Hamid_RT22-May-07 19:03
Hamid_RT22-May-07 19:03 
QuestionRe: Image Pin
Hamid_RT23-May-07 6:09
Hamid_RT23-May-07 6:09 
GeneralRe: Image Pin
Mark Salsbery23-May-07 7:12
Mark Salsbery23-May-07 7:12 
QuestionTemplate function compilation and linking question. Pin
Maximilien22-May-07 4:43
Maximilien22-May-07 4:43 
AnswerRe: Template function compilation and linking question. Pin
Nelek22-May-07 5:18
protectorNelek22-May-07 5:18 
GeneralRe: Template function compilation and linking question. Pin
jhwurmbach22-May-07 5:30
jhwurmbach22-May-07 5:30 
GeneralRe: Template function compilation and linking question. Pin
Arman S.22-May-07 5:33
Arman S.22-May-07 5:33 
AnswerRe: Template function compilation and linking question. Pin
jhwurmbach22-May-07 5:34
jhwurmbach22-May-07 5:34 
AnswerRe: Template function compilation and linking question. Pin
Arman S.22-May-07 5:43
Arman S.22-May-07 5:43 
AnswerRe: Template function compilation and linking question. Pin
David Crow22-May-07 6:19
David Crow22-May-07 6:19 

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.