tags:

views:

42

answers:

1

hi, how to get mac address of pc and modified date of text file in runtime program,using C++ builder,if both matches red color rectangle should come,or else green colour...as an output

A: 

For the MAC address, look at the Win32 API GetAdapterAddresses() and similar functions. Keep in mind that a PC can have multiple MACs available, one for each installed network adapter if the PC is connected to multiple networks.

For the file date, look at the Win32 API GetFileTime() or FindFirstFile() functions, or the VCL FindFirst() function (which uses FindFirstFile() internally.

Remy Lebeau - TeamB