Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ordianl error in MFC dll Pin
hongge11-Jul-03 20:36
hongge11-Jul-03 20:36 
GeneralDynamically change SAPI grammar file Pin
clmckinley11-Jul-03 10:30
clmckinley11-Jul-03 10:30 
General:-D VST hosting Pin
Mad Docs Hairy Belly11-Jul-03 10:06
Mad Docs Hairy Belly11-Jul-03 10:06 
QuestionLimiting display of decimal places? Pin
cbruno11-Jul-03 9:44
cbruno11-Jul-03 9:44 
AnswerRe: Limiting display of decimal places? Pin
Mike Dimmick11-Jul-03 9:56
Mike Dimmick11-Jul-03 9:56 
AnswerRe: Limiting display of decimal places? Pin
David Crow11-Jul-03 10:34
David Crow11-Jul-03 10:34 
GeneralCustomizing CColorDialog Pin
mcguile25711-Jul-03 9:21
mcguile25711-Jul-03 9:21 
GeneralStrange Behaviour of GetAdaptersInfo() Pin
Hashim Saleem11-Jul-03 9:01
Hashim Saleem11-Jul-03 9:01 
Router
|
|-- 192.168.0.2 <----> 192.168.0.1 (Client1 on LAN1)
|-- 172.16.0.2 <----> 172.16.0.1 (Client1 on LAN2)
|-- 10.10.0.2 <----> 10.10.0.1 (Client1 on LAN3)


Machines Specifications
Router
Windows XP Professional with Service Pack 1
Windows 2000 Server (Dual Boot)
Microsoft Visual Studio 6.0

AMD K6-II 500 MHZ, 256MB RAM

3Com Etherlink III ISAPNP Ethernet Adapter 10Mbps
HP Ethernet with LAN remote power Adapter 10/100 Mbps (PCI)
Intel 21143-Based PCI Fast Ethernet Adapter 10/100 Mbps

Client 1 on LAN 1
Windows 2000 Professional with SP3
Microsoft Visual Studio 6.0

Pentium II 450 MHZ, 256 MB RAM

Realtek RTL8029(AS) PCI Ethernet Adapter 10Mbps

Client 1 on LAN 2
Windows 2000 Professional with SP3
Microsoft Visual Studio 6.0


Pentium III 600 MHz, 128 MB Ram

3Com EtherLink XL 10/100 PCI For Complete PC Management NIC (3C905C-TX)

Client 1 on LAN 3
Windows 2000 Professional with SP3
Microsoft Visual Studio 6.0

Pentium II 266 MHz, 128 MB Ram

Linksys LNE 100 TX Fast Ethernet Adapter (PCI)


This is my network topology. A machine acting as a router is connected to three other machines acting as three different LANs. The problem is with the behaviour of Microsoft’s API Function GetAdaptersInfo(). This function gives complete information about any NIC in a PC such as MAC Address, IP Address, Subnet Mask, Default Gateway etc.

This function works fine when all the PCs are up and network is running. But fails when any one PC from any network is off. GetAdaptersInfo() gives 0.0.0.0 as IP Address, subnet mask etc. of the NIC whose associated network is down. There is nothing documented about this behaviour in MSDN.

One more strange thing is that this function has different behaviour on above four PCs. It works fine regardless of network is up or down on Client1 on LAN1 and on Client1 on LAN2 but fails (means give 0.0.0.0) on Router machine and Client3 on LAN3.

I am unable to understand who is causing this problem.
Whether it is operating system?
Whether it is NIC driver?
or simply it is a bug of GetAdaptersInfo()?

Anybody help please!!!!!!!!!!!1

Thanks
GeneralProblem accessing remote datasource Pin
Terry O'Nolley11-Jul-03 7:51
Terry O'Nolley11-Jul-03 7:51 
Questionwhat function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:39
johnstonsk11-Jul-03 7:39 
AnswerRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 7:43
John M. Drescher11-Jul-03 7:43 
GeneralRe: what function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:56
johnstonsk11-Jul-03 7:56 
GeneralRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 7:59
John M. Drescher11-Jul-03 7:59 
AnswerRe: what function will convert a char to its number value Pin
Shay Harel11-Jul-03 7:45
Shay Harel11-Jul-03 7:45 
GeneralRe: what function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:54
johnstonsk11-Jul-03 7:54 
GeneralRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 7:56
John M. Drescher11-Jul-03 7:56 
GeneralRe: what function will convert a char to its number value Pin
johnstonsk11-Jul-03 7:59
johnstonsk11-Jul-03 7:59 
GeneralRe: what function will convert a char to its number value Pin
John M. Drescher11-Jul-03 8:02
John M. Drescher11-Jul-03 8:02 
AnswerRe: what function will convert a char to its number value Pin
John R. Shaw11-Jul-03 9:21
John R. Shaw11-Jul-03 9:21 
AnswerRe: what function will convert a char to its number value Pin
Terry O'Nolley11-Jul-03 9:27
Terry O'Nolley11-Jul-03 9:27 
GeneralRe: Whoops Pin
John R. Shaw11-Jul-03 10:15
John R. Shaw11-Jul-03 10:15 
GeneralRe: Whoops Pin
Terry O'Nolley12-Jul-03 3:58
Terry O'Nolley12-Jul-03 3:58 
GeneralRe: what function will convert a char to its number value Pin
johnstonsk11-Jul-03 10:26
johnstonsk11-Jul-03 10:26 
GeneralRe: what function will convert a char to its number value Pin
John R. Shaw14-Jul-03 7:23
John R. Shaw14-Jul-03 7:23 
AnswerRe: what function will convert a char to its number value Pin
Mike Dimmick11-Jul-03 9:47
Mike Dimmick11-Jul-03 9:47 

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.