Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I keep Menu from covering Property page tabs Pin
Bob_The_Programmer29-Jun-04 8:58
Bob_The_Programmer29-Jun-04 8:58 
Questionhow to loop portions of a WAV using DirectSound? Pin
seanmc.cs29-Jun-04 8:26
seanmc.cs29-Jun-04 8:26 
AnswerRe: how to loop portions of a WAV using DirectSound? Pin
Antti Keskinen29-Jun-04 11:57
Antti Keskinen29-Jun-04 11:57 
GeneralRe: how to loop portions of a WAV using DirectSound? Pin
seanmc.cs30-Jun-04 15:53
seanmc.cs30-Jun-04 15:53 
GeneralRe: how to loop portions of a WAV using DirectSound? Pin
seanmc.cs30-Jun-04 17:22
seanmc.cs30-Jun-04 17:22 
GeneralRe: how to loop portions of a WAV using DirectSound? Pin
Antti Keskinen1-Jul-04 7:33
Antti Keskinen1-Jul-04 7:33 
AnswerBlips are natural! Pin
normanS1-Jul-04 3:23
normanS1-Jul-04 3:23 
Generalwinsock2 for MS Visual C++ Toolkit 2003 Pin
george kermeen29-Jun-04 8:21
george kermeen29-Jun-04 8:21 
winsock2 for MS Visual C++ Toolkit 2003
Do we need to find winsock2.h elsewhere?
Alternatively where do we access the following files please?

include sys/socket.h
include netinet/in.h
include arpa/inet.h
include unist.h


Can anybody help me please?

After downloading MS Visual C++ Toolkit 2003

My obective is to experiment with client server communications & eventually communicate over a network.

Do we need to find #include winsock2.h elsewhere?

and for example copy winsock2.h into the include directory of C:\Program Files\Microsoft Visual C++ Toolkit 2003\include.

I tried to compile the code in "IPv6-Enabled Client Code" in

MSDN Home>MSDN Library>Networking and Directory Services>Network Protocols>Windows Sockets 2>Using Winsock>IPv6 Guide for Windows Sockets Applications>Appendix B: IP-version Agnostic Source Code.

After selecting and copying the "IPv6-Enabled Client Code"

I pasted the resulting code into "notepad" and called and saved the new file as client.c.

I tried compiling the client.c using
C:\Program Files\Microsoft Visual C++ Toolkit 2003>cl /Tp client.c

The response was

Microsoft (R)32-bit C/C++ Optimization Compiler Version 13.10.3052 for 80x86
Copyright (C)Microsoft Corporation 1984-2002. All rights reserved

client.c
client.c(14) : fatal error C1083 : cannot open include file : 'winsock2.h' : No such file or directory

This ERROR REPORT has been changed
The previous reported error was incorrect because I forgot to remove a winsock2.h file from the include directory. I apologise this winsock2.h file DID NOT originate with the Microsoft Visual C++ Toolkit 2003 download or from Microsoft.


Yours sincerely,
George.

P.S. Alternatively where do we access the following files please?

include sys/socket.h
include netinet/in.h
include arpa/inet.h
include unist.h

GeneralRe: winsock2 for MS Visual C++ Toolkit 2003 Pin
palbano29-Jun-04 13:39
palbano29-Jun-04 13:39 
GeneralRe: winsock2 for MS Visual C++ Toolkit 2003 Pin
george kermeen30-Jun-04 4:18
george kermeen30-Jun-04 4:18 
Generalwin32 dll Pin
ns29-Jun-04 7:42
ns29-Jun-04 7:42 
GeneralRe: win32 dll Pin
Jeremy Falcon29-Jun-04 8:53
professionalJeremy Falcon29-Jun-04 8:53 
GeneralStart Full or Min Pin
Zenix229-Jun-04 7:35
Zenix229-Jun-04 7:35 
GeneralRe: Start Full or Min Pin
David Crow29-Jun-04 8:31
David Crow29-Jun-04 8:31 
GeneralRe: Start Full or Min Pin
Zenix229-Jun-04 9:43
Zenix229-Jun-04 9:43 
GeneralRe: Start Full or Min Pin
vcplusplus29-Jun-04 13:58
vcplusplus29-Jun-04 13:58 
GeneralRe: Start Full or Min Pin
David Crow30-Jun-04 2:39
David Crow30-Jun-04 2:39 
GeneralRe: Start Full or Min Pin
Zenix21-Jul-04 4:55
Zenix21-Jul-04 4:55 
GeneralRe: Start Full or Min Pin
David Crow1-Jul-04 5:09
David Crow1-Jul-04 5:09 
GeneralRe: Start Full or Min Pin
Zenix21-Jul-04 5:23
Zenix21-Jul-04 5:23 
GeneralRe: Start Full or Min Pin
David Crow1-Jul-04 5:32
David Crow1-Jul-04 5:32 
GeneralRe: Start Full or Min Pin
Zenix21-Jul-04 8:49
Zenix21-Jul-04 8:49 
GeneralData Class Pin
Anonymous29-Jun-04 6:19
Anonymous29-Jun-04 6:19 
GeneralRe: Data Class Pin
David Crow29-Jun-04 6:57
David Crow29-Jun-04 6:57 
GeneralRe: Data Class Pin
Maximilien29-Jun-04 7:45
Maximilien29-Jun-04 7:45 

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.