imolorhe -6 Junior Poster in Training

I want to write an application that can query a dll or class stored in another location on a server to receive information or perform an action. Can someone please give me guidance on how to go about it.