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

C / C++ / MFC

 
QuestionModeless Dialog box using win32 API only Pin
csrss19-Aug-12 7:14
csrss19-Aug-12 7:14 
AnswerRe: Modeless Dialog box using win32 API only Pin
pasztorpisti19-Aug-12 12:49
pasztorpisti19-Aug-12 12:49 
GeneralRe: Modeless Dialog box using win32 API only Pin
csrss19-Aug-12 21:03
csrss19-Aug-12 21:03 
GeneralRe: Modeless Dialog box using win32 API only Pin
pasztorpisti20-Aug-12 1:49
pasztorpisti20-Aug-12 1:49 
Generaljust want to find a friend Pin
cnmqy19-Aug-12 0:56
cnmqy19-Aug-12 0:56 
GeneralRe: just want to find a friend Pin
Richard MacCutchan19-Aug-12 2:37
mveRichard MacCutchan19-Aug-12 2:37 
QuestionHow to distinguish the broad packets or normal packets? Pin
wangningyu17-Aug-12 17:19
wangningyu17-Aug-12 17:19 
AnswerRe: How to distinguish the broad packets or normal packets? Pin
pasztorpisti18-Aug-12 0:33
pasztorpisti18-Aug-12 0:33 
You can do this by using raw sockets but I was raw-socketing only on linux, dont know how it works on windows (if it works at all...). I searched for an example and found this discussion: http://bytes.com/topic/c/answers/900770-how-determine-origin-incoming-message-uincast-multicast-broadcast[^]
One of the answers contains source code, read along that thread. Note: I havent tested their code.

EDIT: The trick is simple: the sendto address is in the header of the datagram you received, but your recvfrom returns just the payload from that and the address of the sender. You need a method to reach other fields of the received UDP packet header, one way is using raw sockets.

modified 18-Aug-12 11:22am.

AnswerRe: How to distinguish the broad packets or normal packets? Pin
Software_Developer18-Aug-12 3:56
Software_Developer18-Aug-12 3:56 
GeneralRe: How to distinguish the broad packets or normal packets? Pin
wangningyu22-Aug-12 21:11
wangningyu22-Aug-12 21:11 
QuestionCan AdjustTokenPrivileges elevate the privilege as Administrator? Pin
Falconapollo17-Aug-12 5:39
Falconapollo17-Aug-12 5:39 
AnswerRe: What's worong with Google Code? Pin
Richard MacCutchan17-Aug-12 6:55
mveRichard MacCutchan17-Aug-12 6:55 
AnswerRe: Can AdjustTokenPrivileges elevate the privilege as Administrator? Pin
Richard Andrew x6418-Aug-12 6:27
professionalRichard Andrew x6418-Aug-12 6:27 
QuestionC Functions and Macros Pin
roza12317-Aug-12 1:48
roza12317-Aug-12 1:48 
AnswerRe: C Functions and Macros PinPopular
Richard MacCutchan17-Aug-12 1:55
mveRichard MacCutchan17-Aug-12 1:55 
GeneralRe: C Functions and Macros Pin
roza12317-Aug-12 2:03
roza12317-Aug-12 2:03 
GeneralRe: C Functions and Macros Pin
Richard MacCutchan17-Aug-12 2:22
mveRichard MacCutchan17-Aug-12 2:22 
AnswerRe: C Functions and Macros Pin
Malli_S17-Aug-12 2:41
Malli_S17-Aug-12 2:41 
QuestionRe: C Functions and Macros Pin
David Crow17-Aug-12 2:43
David Crow17-Aug-12 2:43 
AnswerRe: C Functions and Macros Pin
Maximilien17-Aug-12 3:07
Maximilien17-Aug-12 3:07 
GeneralRe: C Functions and Macros Pin
Richard MacCutchan17-Aug-12 4:54
mveRichard MacCutchan17-Aug-12 4:54 
GeneralRe: C Functions and Macros Pin
Albert Holguin17-Aug-12 4:54
professionalAlbert Holguin17-Aug-12 4:54 
AnswerRe: C Functions and Macros Pin
Software_Developer17-Aug-12 5:45
Software_Developer17-Aug-12 5:45 
GeneralRe: C Functions and Macros Pin
Maximilien17-Aug-12 5:55
Maximilien17-Aug-12 5:55 
GeneralRe: C Functions and Macros Pin
Software_Developer17-Aug-12 7:13
Software_Developer17-Aug-12 7:13 

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.