Click here to Skip to main content
15,908,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Morse code in Cpp Pin
jschell7-Dec-13 10:37
jschell7-Dec-13 10:37 
AnswerRe: Morse code in Cpp Pin
David Crow8-Dec-13 16:34
David Crow8-Dec-13 16:34 
AnswerRe: Morse code in Cpp Pin
Alan Balkany11-Dec-13 6:55
Alan Balkany11-Dec-13 6:55 
QuestionHow to prevent deleting files from Browse dialog Pin
tagopi4-Dec-13 22:33
tagopi4-Dec-13 22:33 
AnswerRe: How to prevent deleting files from Browse dialog Pin
CPallini5-Dec-13 0:08
mveCPallini5-Dec-13 0:08 
AnswerRe: How to prevent deleting files from Browse dialog Pin
David Crow5-Dec-13 4:48
David Crow5-Dec-13 4:48 
QuestionHow to repair IME in my application Pin
buaaxiao4-Dec-13 20:17
buaaxiao4-Dec-13 20:17 
AnswerRe: How to repair IME in my application Pin
buaaxiao27-Dec-13 16:13
buaaxiao27-Dec-13 16:13 
QuestionIn MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
rainclear4-Dec-13 10:12
professionalrainclear4-Dec-13 10:12 
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
Richard Andrew x644-Dec-13 16:02
professionalRichard Andrew x644-Dec-13 16:02 
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
Richard MacCutchan4-Dec-13 22:07
mveRichard MacCutchan4-Dec-13 22:07 
GeneralRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
rainclear5-Dec-13 4:09
professionalrainclear5-Dec-13 4:09 
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
rainclear5-Dec-13 5:20
professionalrainclear5-Dec-13 5:20 
AnswerRe: In MFC, when opening a file or creating a file, is WM_PAINT generated? Pin
xspace_time9-Dec-13 14:42
xspace_time9-Dec-13 14:42 
QuestionEfficient and Faster way to do 2x2 binning of a matrix Pin
Kiran Satish4-Dec-13 7:11
Kiran Satish4-Dec-13 7:11 
AnswerRe: Efficient and Faster way to do 2x2 binning of a matrix Pin
jschell4-Dec-13 11:24
jschell4-Dec-13 11:24 
Questionc++ upd brodcast client Pin
arishri3-Dec-13 2:57
arishri3-Dec-13 2:57 
hi I'm programming a c++ client to receive packets from a server (UDP broadcast). This is a hardware switch (One direction only) system so I have no information regarding the senders address or any other info. It all compiles and binds OK but no packets received.

C#
WSAStartup(0x0101, &_wsaData);
memset((char *)&_sockaddr, 0, sizeof(_sockaddr));
_sockaddr.sin_addr.s_addr   = _nAdapterIp;
_sockaddr.sin_family        = _nadressFam;
_sockaddr.sin_port      = _usPort; //Gave it a try with (0) - also not working
_socket = socket(_nadressFam, SOCK_DGRAM, 0); //Gave it a try with (17) - UDP for the 3 rd parameter - not working
char broadcast='1';
setsockopt(_socket, SOL_SOCKET, SO_BROADCAST, &broadcast ,sizeof(broadcast));
bind(_socket, (sockaddr*) & _sockaddr, sizeof (_sockaddr));
char* recvbuf = new char[_nPacketSize + 1];
int nSize = recv(_socket, recvbuf, _nPacketSize + 1, 0);



Any ideas?  Thanks,

QuestionRe: c++ upd brodcast client Pin
jeron13-Dec-13 3:34
jeron13-Dec-13 3:34 
AnswerRe: c++ upd brodcast client Pin
arishri3-Dec-13 3:40
arishri3-Dec-13 3:40 
GeneralRe: c++ upd brodcast client Pin
jeron13-Dec-13 4:01
jeron13-Dec-13 4:01 
GeneralRe: c++ upd brodcast client Pin
arishri3-Dec-13 4:11
arishri3-Dec-13 4:11 
GeneralRe: c++ upd brodcast client Pin
jeron13-Dec-13 4:21
jeron13-Dec-13 4:21 
GeneralRe: c++ upd brodcast client Pin
arishri3-Dec-13 4:13
arishri3-Dec-13 4:13 
GeneralRe: c++ upd brodcast client Pin
jeron13-Dec-13 4:29
jeron13-Dec-13 4:29 
AnswerRe: c++ upd brodcast client Pin
Member 104421753-Dec-13 21:25
professionalMember 104421753-Dec-13 21:25 

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.