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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

same program, optional GUI toolkits ?

Status
Not open for further replies.

AdriansonCrusoe

Technical User
Joined
Oct 30, 2011
Messages
9
Location
ES
I come from interpreted language programming so bear with me :)

Is it posible for a C program to use one or another GUI toolkit present in the system ? e.g. if there's TK use it, if not: if there's GTK use it, if not: etc.
 
Yes - if you have a common interface library, you could do a dlopen on the relevant library to tie up all the calls and then use the calls from the common interface library.

Basically dlsym to get the addresses of the routines you wish to call and dlclose to terminate.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top