Click here to Skip to main content
15,888,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: NULL character problem Pin
LighthouseJ2-Mar-05 2:46
LighthouseJ2-Mar-05 2:46 
QuestionHow to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 18:23
saha2k51-Mar-05 18:23 
AnswerRe: How to call PostThreadMessage from outside the thread function Pin
saha2k51-Mar-05 22:25
saha2k51-Mar-05 22:25 
Question" MFC appliation has encountered an error" Why??? Pin
wasife1-Mar-05 17:32
wasife1-Mar-05 17:32 
AnswerRe: " MFC appliation has encountered an error" Why??? Pin
Christian Graus1-Mar-05 18:04
protectorChristian Graus1-Mar-05 18:04 
AnswerRe: " MFC appliation has encountered an error" Why??? Pin
David Crow2-Mar-05 2:44
David Crow2-Mar-05 2:44 
GeneralRe: " MFC appliation has encountered an error" Why??? Pin
Chris Losinger2-Mar-05 3:16
professionalChris Losinger2-Mar-05 3:16 
QuestionHow can I get the MAC addresses of all IP devices on same network ? Pin
charisma_youn1-Mar-05 16:34
charisma_youn1-Mar-05 16:34 
I hope that my Windows client program searches all IP devices on same network and then gets MAC addresses of those.
These IP devices are based on LINUX and the client program should be run on all versions of Windows.

In my thought, this is possible by getting the individual IP of all devices, drawing the MAC address from that IP
and checking if the MAC is in particular range which we need.

First step, the way to getting IPs of all devices on network, may be following.

1) broadcasting to all devices on network
2) using WNetEnumResource

I have not tried 1)way, so I wonder what part of the data from the device has the information of IP.
And I think 2)way has no problem.

Second step, the way to drawing MAC address, may be following.

1) using NetBios()
2) using SendARP()
3) using WinPcap library

Though I tried 1)way, NetBios() can draw only MAC of own PC that my Windows client runs.
2)way is possible on only Windows 2000, Xp, so this way is not proper for me.
3)way is may be possible, But, bucause I think I should program ARP protocol, it will be difficult.

Or, is there any easier way and solution to do those two steps except my thoughts?
And, is there any problem or error of my thoughts?

Please give me advices.
Have a nice day!
AnswerRe: How can I get the MAC addresses of all IP devices on same network ? Pin
Alexander M.,2-Mar-05 2:58
Alexander M.,2-Mar-05 2:58 
Questionhow to create setup files Pin
rjnl1-Mar-05 15:39
rjnl1-Mar-05 15:39 
AnswerRe: how to create setup files Pin
LighthouseJ1-Mar-05 15:59
LighthouseJ1-Mar-05 15:59 
AnswerRe: how to create setup files Pin
zhang8006051-Mar-05 16:13
zhang8006051-Mar-05 16:13 
AnswerRe: how to create setup files Pin
ThatsAlok2-Mar-05 2:38
ThatsAlok2-Mar-05 2:38 
QuestionHow to determine the column No. in CListView when user right-clicked the list header? Pin
lisoft1-Mar-05 15:32
lisoft1-Mar-05 15:32 
AnswerRe: How to determine the column No. in CListView when user right-clicked the list header? Pin
zhang8006051-Mar-05 17:04
zhang8006051-Mar-05 17:04 
GeneralSeveral child documents Pin
joy0071-Mar-05 15:32
joy0071-Mar-05 15:32 
GeneralPointer to Void problem Pin
LighthouseJ1-Mar-05 15:19
LighthouseJ1-Mar-05 15:19 
GeneralRe: Pointer to Void problem Pin
zhang8006051-Mar-05 15:44
zhang8006051-Mar-05 15:44 
GeneralRe: Pointer to Void problem Pin
LighthouseJ1-Mar-05 16:17
LighthouseJ1-Mar-05 16:17 
GeneralGantt charts Pin
Anonymous1-Mar-05 15:07
Anonymous1-Mar-05 15:07 
GeneralRe: Gantt charts Pin
cmk2-Mar-05 14:03
cmk2-Mar-05 14:03 
GeneralRe: Gantt charts Pin
Anonymous2-Mar-05 16:05
Anonymous2-Mar-05 16:05 
Questionhow to detect someone on Local Network in accessing our files system??? Pin
ngocdq1-Mar-05 14:57
ngocdq1-Mar-05 14:57 
GeneralCRecordset date & time Pin
jmbz841-Mar-05 13:16
jmbz841-Mar-05 13:16 
GeneralRe: CRecordset date & time Pin
Yulianto.1-Mar-05 13:50
Yulianto.1-Mar-05 13:50 

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.