To add a reference to a service in the current solution. In Solution Explorer, right-click the name of the project that you want to add the service to, and then click Add Service Reference. The Add Service Reference dialog box appears.Click Discover. All WCF services in the current solution are added to the Service list. In the Service list, expand the node for the service that you want to use and select a service contract. In the Namespace box, enter the namespace that you want to use for the reference.he Add Service Reference dialog box appears. Click Discover. All WCF services in the current solution are added to the Service list. In the Service list, expand the node for the service that you want to use and select a service contract. In the Namespace box, enter the namespace that you want to use for the reference.
Void functions are created and used just like value-returning functions except they do not return a value after the function executes. In lieu of a data type, void functions use the keyword void.. A void function performs a task, and then control returns back to the caller--but, it does not return a value. You may or may not use the return statement, as there is no return value.
A void pointer is a pointer that has no associated data type with it. A void pointer can hold address of any type and can be typcasted to any type. int a = 10; char b = 'x'; void *p = &a; // void pointer holds address of int 'a' p = &b; // void pointer holds address of char 'b'. Advantage of void pointers: malloc() and calloc() return void * type and this allows these functions to be used to allocate memory of any data type (just because of void *)