Hi..
i a newbies workin with vc++..
i suppose to come up with a program to get status of relay for a plc device.. i read up on winsock and got hold of a simple tcp/ip program(chat)..
I was tinkin inorder to communcate with the device i need to send a string of code therefore if i can modify the chat prgaom i should be able to come up wiht a simple program.. the device is a auto reply..

Problem is here.. the program i have has the destation tcp address set in the uility.h, i was hoppin to change it so that i can change it in my dialog part.. meaning i can check it when the dialog pop up..
the current situation is the program compile then run with e fix add in the header.. is there any way to change that?

or is my idea accept.... or u guys tink it better to write a new one.. i rushih 4 dateline.. i set got a hardware and a plc program to settle..

thank alot