Tuesday, March 3, 2015

How to fetch the value on the click of Context Menu Item and pass the same as a parameter to the executable.

You can get the IP address of a machine by using the Dns class. Given a DNS name it gives you the IP address(es). For the current machine you can simply use 127.0.0.1. But you're storing that info in the registry and that probably isn't a good idea as IP addresses can change. You should probably store the DNS name in the registry and either pass that to the program or look up the address when you need it.


Michael Taylor

http://ift.tt/1oFVmEx


No comments:

Post a Comment