Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TK GUI with C

Status
Not open for further replies.

stdf23173

Technical User
Jan 4, 2005
7
NL
Hello All,

I'd like to create an application that reads/writes eeproms via i2c on the parallel port.
The GUI will be based on TK and the control part on C/C++ and a DLL (io.dll) to control the parallel port.
OS is windows.

My question is :
How can i catch the e.q. send-button / read-button event and use it as input for the in C written control loop ?

I know how to create a TK gui from c-code and how to create TCL Commands.

Is it easier to create a send command that handles the io.dll ? and bind it to a send button ?
Or can i better catch the event and pass it to a switch statement (coded in C ) that handles the io.dll ?

best regards

Simon



 
I am pretty sure the "bind" is a better option.
I've done that many many times.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top