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

C / C++ / MFC

 
GeneralSetting font on client windows Pin
WayneJ17-Nov-02 19:04
WayneJ17-Nov-02 19:04 
GeneralVC++ KeyBoard Hooks Pin
Riju17-Nov-02 18:40
Riju17-Nov-02 18:40 
GeneralRe: VC++ KeyBoard Hooks Pin
viliam18-Nov-02 0:15
viliam18-Nov-02 0:15 
GeneralRe: VC++ KeyBoard Hooks Pin
Riju18-Nov-02 0:19
Riju18-Nov-02 0:19 
GeneralRe: VC++ KeyBoard Hooks Pin
viliam18-Nov-02 0:28
viliam18-Nov-02 0:28 
GeneralRe: VC++ KeyBoard Hooks Pin
Riju18-Nov-02 0:40
Riju18-Nov-02 0:40 
GeneralRe: VC++ KeyBoard Hooks Pin
viliam18-Nov-02 2:59
viliam18-Nov-02 2:59 
GeneralNeed HELP on Local Ntetwrok IP Adrress Pin
ATC17-Nov-02 18:00
ATC17-Nov-02 18:00 
Hi,

I have 1 Desktop & 1 Laptop on my Home network, I use MS Network to setup a Home Group and look like this in Explorer:

- Entire Network
Home
Desktop
Laptop

I am using VC++6.0 to scan their IP address (just to know: are they connected on the Home Network?) ... and I using these following codes:
<code>
DWORD dwSize = 0 ;

GetIpAddrTable( NULL , &dwSize, FALSE ) ;
PMIB_IPADDRTABLE pIpAddrTable = (PMIB_IPADDRTABLE )new BYTE [ dwSize ];

if (pIpAddrTable )
{
if (GetIpAddrTable( (PMIB_IPADDRTABLE)pIpAddrTable, &dwSize, FALSE) == NO_ERROR )
{
for(int nEntry=0;nEntry < pIpAddrTable->dwNumEntries;nEntry++)
{
trial.S_un.S_addr = pIpAddrTable->table[nEntry].dwAddr;
pIP = inet_ntoa(trial);
}
}
</code>

It supposes to show "all IP adresses" that connect to my Home Group ... instead, it shows me only the IP address of the PC that I launch these codes!

I notice that if I use:
<code>
GetNumberOfInterfaces(&inter_face);
</code>

Then inter_face shows there are 2 interface did connet to my Group Network, if so ... can some one show me how to get the IP address of each interface?

Many thanks to any suggestion here!

Generalbest way to draw a pixel in direct X Pin
cleathley17-Nov-02 17:40
cleathley17-Nov-02 17:40 
GeneralRe: best way to draw a pixel in direct X Pin
Christian Graus17-Nov-02 20:16
protectorChristian Graus17-Nov-02 20:16 
GeneralRe: best way to draw a pixel in direct X Pin
cleathley17-Nov-02 21:23
cleathley17-Nov-02 21:23 
GeneralRe: best way to draw a pixel in direct X Pin
Christian Graus17-Nov-02 21:41
protectorChristian Graus17-Nov-02 21:41 
GeneralRe: best way to draw a pixel in direct X Pin
cleathley17-Nov-02 21:47
cleathley17-Nov-02 21:47 
GeneralRe: best way to draw a pixel in direct X Pin
cleathley17-Nov-02 21:49
cleathley17-Nov-02 21:49 
GeneralToo many variables !?! Pin
nencini17-Nov-02 16:54
nencini17-Nov-02 16:54 
GeneralRe: Too many variables !?! Pin
Christian Graus17-Nov-02 17:12
protectorChristian Graus17-Nov-02 17:12 
GeneralRe: Too many variables !?! Pin
nencini17-Nov-02 17:40
nencini17-Nov-02 17:40 
GeneralRe: Too many variables !?! Pin
Christian Graus17-Nov-02 18:18
protectorChristian Graus17-Nov-02 18:18 
GeneralRe: Too many variables !?! Pin
nencini17-Nov-02 18:50
nencini17-Nov-02 18:50 
GeneralRe: Too many variables !?! Pin
Christian Graus17-Nov-02 19:15
protectorChristian Graus17-Nov-02 19:15 
GeneralRe: Too many variables !?! Pin
nencini17-Nov-02 19:39
nencini17-Nov-02 19:39 
GeneralRe: Too many variables !?! Pin
Christian Graus17-Nov-02 21:48
protectorChristian Graus17-Nov-02 21:48 
GeneralRe: Too many variables !?! Pin
Michael P Butler18-Nov-02 0:14
Michael P Butler18-Nov-02 0:14 
GeneralRe: Too many variables !?! Pin
nencini18-Nov-02 4:42
nencini18-Nov-02 4:42 
GeneralRe: Too many variables !?! Pin
Rickard Andersson2017-Nov-02 23:54
Rickard Andersson2017-Nov-02 23:54 

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.