Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Questionpointer to pointer Pin
messages2-Dec-13 7:13
messages2-Dec-13 7:13 
AnswerRe: pointer to pointer Pin
Joe Woodbury2-Dec-13 8:56
professionalJoe Woodbury2-Dec-13 8:56 
Question[SOLVED] Capture CAM using Media Foundation Pin
Django_Untaken2-Dec-13 5:27
Django_Untaken2-Dec-13 5:27 
QuestionHow to add the number to the shortcut in the desktop of the application. Pin
yu-jian2-Dec-13 3:32
yu-jian2-Dec-13 3:32 
QuestionRe: How to add the number to the shortcut in the desktop of the application. Pin
Richard MacCutchan2-Dec-13 5:14
mveRichard MacCutchan2-Dec-13 5:14 
QuestionRe: How to add the number to the shortcut in the desktop of the application. Pin
jeron12-Dec-13 5:40
jeron12-Dec-13 5:40 
AnswerRe: How to add the number to the shortcut in the desktop of the application. Pin
yu-jian2-Dec-13 5:55
yu-jian2-Dec-13 5:55 
QuestionRe: How to add the number to the shortcut in the desktop of the application. Pin
jeron12-Dec-13 6:06
jeron12-Dec-13 6:06 
AnswerRe: How to add the number to the shortcut in the desktop of the application. Pin
yu-jian2-Dec-13 6:19
yu-jian2-Dec-13 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.