Tuesday 25 June 2013

<div   style="margin-top:0px;width: 180px;float: left;border: solid 1px #dfdfdf;background-color: #fff;margin-top: 15px;"><div style=" float: left;padding: 6px 10px;width: 170px;" class="wizicondiv"><strong><a href="http://www.wiziq.com/ankita-a-devkate3341748" id="hrfMyProf" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" style="color:#1C67AB;cursor:pointer;outline:medium none;font-size:14px; text-decoration:none;">Ankita A Devkate</a></strong></div><iframe style="width:180px;border:0px;height:341px" frameborder="0" scrolling="no" src="http://www.wiziq.com/UserProfile/Action/follow-widget.aspx?XFnqXzx7plsHxq70X8izxRkQnHZX0MwEZAzSgkiJwtSYauUOwPdXt%2buzJ4h%2b9twp4mNp8CmPLGA%3d"></iframe>
             </div>
                 

Thursday 5 April 2012

Configuring a DHCP Server

Configuring a DHCP Server

To access the DHCP server click Administrative Tools> DHCP.  To view DHCP server statistics, right-click on the server. Then select Display Statistics. The Server Statistics box shows general information about the DHCP server such as the number of Acknowledgements and address usage.
To configure the properties of the DHCP server, right-click on the server. Then click Properties. The Automatically update statistics every box automatically refreshes DHCP server statistics at the time interval shown. The interval can be lowered if more frequent readings are required. The Enable DHCP audit logging check box specifies whether to log DHCP server activity. The information is recorded to the event viewer which can be used for troubleshooting. The Show the BOOTP table folder specifies whether to display the BOOTP Table folder for this server. Click this option to enable and configure support for BOOTP clients on the network. The DNS tab is used to configure DHCP/DNS integration. The DNS tab is used to configure DHCP/DNS integration. The Automatically update DHCP client information in DNS check box specifies whether the DHCP server sends DNS updates to the DNS server, and when to do it.
The Enable updates for DNS clients check box specifies whether the DHCP server sends dynamic updates to the DNS server for any DHCP clients that do not support performing these updates. Legacy Windows clients (NT/9x) don’t support updating DNS, therefore enabling this option will enable legacy clients to be registered with DNS. N.B. DNS may also need configuring. The Discard A and PTR records when lease is deleted check box specifies whether the DHCP server will erase the DNS record once the client’s lease has expired. If Network Access Protection is enabled on the server the policies can be enabled or disabled for all scopes. If DHCP cannot contact the Network Policy Server the client’s network access can be controlled with these options. Default is Full Access.
The Advanced Tab. The Conflict detection attempts box specifies the number of conflict detection attempts the DHCP server will make before leasing an address to a client.
The Audit log file path. Click on Bindings to configure server connection bindings. If the DHCP server has more than one network card, then you can specify whether the DHCP server should supply addresses to the second network as well.
Click on Credentials to configure server Credentials. The DNS dynamic update credentials. If the supplied credentials belong to an object (such as a computer) that is a member of the DnsUpdateProxy security group, the next object to register the same name record in DNS will become the record owner.  If you specified the credentials (user name, domain, and password) that the DHCP server uses when registering DHCP client computers in DNS, these credentials are not backed up with either synchronous or asynchronous backup. After a DHCP database is restored, new credentials must be configured.
The DnsUpdateProxy security group. This group is installed in Active Directory when DNS is installed.  Members of this group are DNS clients that can perform dynamic updates on behalf of other clients, such as DHCP servers. Members of this group do not own the records they create.

Create Macro using VBA in EXCEL


What is C language?

1. What is C language?
The C programming language is a standardized programming language
developed in the early 1970s by Ken Thompson and Dennis Ritchie for
use on the UNIX operating system. It has since spread to many other
operating systems, and is one of the most widely used programming
languages. C is prized for its efficiency, and is the most popular
programming language for writing system software, though it is also
used for writing applications.
2. printf() Function
What is the output of printf("%d")?
1. When we write printf("%d",x); this means compiler will print the
value of x. But as here, there is nothing after %d so compiler will show
in output window garbage value.
2. When we use %d the compiler internally uses it to access the
argument in the stack (argument stack). Ideally compiler determines
the offset of the data variable depending on the format specification
string. Now when we write printf("%d",a) then compiler first accesses
the top most element in the argument stack of the printf which is %d
and depending on the format string it calculated to offset to the actual
data variable in the memory which is to be printed. Now when only %d
will be present in the printf then compiler will calculate the correct
offset (which will be the offset to access the integer variable) but as
the actual data object is to be printed is not present at that memory
location so it will print what ever will be the contents of that memory
location.
3. Some compilers check the format string and will generate an error
without the proper number and type of arguments for things like
printf(...) and scanf(...).
What does static variable mean?
there are 3 main uses for the static.
1. If you declare within a function:
It retains the value between function calls
2.If it is declared for a function name:
By default function is extern..so it will be visible from other files if the
function declaration is as static..it is invisible for the outer files
3. Static for global variables:
By default we can use the global variables from outside files If it is
static global..that variable is limited to with in the file

How to solve the window size problem of turbo c++ in windows vista or windows7

How to solve the window size problem of turbo c++ in windows vista or windows7
Turbo C++ will not work in 64bit vista or 7!!!!!!!!
If your operating system is 32bit the following solution will help
you l00o/o sure
Follow the steps carefully and get better results out of your pc
1) Open your TC then a error message will come saying that
system does not support fullscreen
|ust click the ignore and get continued to the turbo c++
2)Now Turbo c++ gets opened but the window size may be too low
3)Right click using mouse on top and select properties
4) Select the font tab
5) For better results change the font from "Raster fonts "
select ttconsolastt or ttlucida consolett
Now change the font size and press OK
6)Window size has been enlarged .
Adjust the font size so that you get correct
window size for your monitor



CONSTRUCTORS AND DESTRUCTORS

CONSTRUCTORS AND DESTRUCTORS
Q: Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?
A: There is nothing like Virtual Constructor. The Constructor can’t be virtual as the constructor
is a code which is responsible for creating an instance of a class and it can’t be delegated to
any other object by virtual keyword means.
Q: What is constructor or ctor?
A: Constructor creates an object and initializes it. It also creates vtable for virtual functions. It is
different from other methods in a class.
Q: What about Virtual Destructor?
A: Yes there is a Virtual Destructor. A destructor can be virtual as it is possible as at runtime
depending on the type of object caller is calling to, proper destructor will be called.
Q: What is the difference between a copy constructor and an overloaded assignment operator?
A: A copy constructor constructs a new object by using the content of the argument object. An
overloaded assignment operator assigns the contents of an existing object to another existing
object of the same class.
Q: Can a constructor throws an exception? How to handle the error when the constructor fails?
A:The constructor never throws an error.
Q: What is default constructor?
A: Constructor with no arguments or all the arguments has default values.
Q: What is copy constructor?
A: Constructor which initializes the it's object member variables ( by
shallow copying) with another object of the same class. If you don't implement one in your class
then compiler implements one for you. for example:
(a) Boo Obj1(10); // calling Boo constructor
(b) Boo Obj2(Obj1); // calling boo copy constructor
(c) Boo Obj2 = Obj1;// calling boo copy constructor
Q: When are copy constructors called?
A: Copy constructors are called in following cases:
(a) when a function returns an object of that
class by value
(b) when the object of that class is passed by
value as an argument to a function
(c) when you construct an object based on another
object of the same class
(d) When compiler generates a temporary object
Q: Can a copy constructor accept an object of the same class as parameter, instead of reference
of the object?
A: No. It is specified in the definition of the copy constructor itself. It should generate an error if
a programmer specifies a copy constructor with a first argument that is an object and not a
reference.
Q: What is conversion constructor?
A: constructor with a single argument makes that constructor as conversion ctor and it can be
used for type conversion.
for example:
class Boo
{
public:
Boo( int i );
};
Boo BooObject = 10 ; // assigning int 10 Boo object
Q:What is conversion operator??
A:class can have a public method for specific data type conversions.
for example:
class Boo
{
double value;
public:
Boo(int i )
operator double()
{
return value;
}
};
Boo BooObject;
double i = BooObject; // assigning object to variable i of type double.
now conversion operator gets called to assign the value.
Q: How can I handle a constructor that fails?
A: throw an exception. Constructors don't have a return type, so it's not possible to use return
codes. The best way to signal constructor failure is therefore to throw an exception.