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

Embedding Tcl into an MSVC 6 Programme

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I'm currently trying to write a programme using the Microsoft Visual C++ environment, (Version 6), and the only information I can find on how to embed a Tcl interpreter into it is based on MSVC 2.x, and much of the info is outdated and doesn't apply. How do I achieve this? Is there anywhere I can pick up more recent makefiles?
 
I'm doing C++ programming with Visual C++ 6.0
under Win NT 4.0 and add a GUI to my programms using
TCL/TK.
I do this the following way :
I use the TclPro 1.4.1 source code to compile my own
interpreter to wich i add new commands using C.
I created a new project with VC6.0 (Win32 application)
and added the winmain.cpp file to my project.
In winmain.cpp you find a application init function in
which you can make new commands (implemented in C) available
to the interpreter using the Tcl_CreateCommand(...) function
from the Tcl-libary.
Certainly you have to tell the compiler to use the right
.lib-files.
All that stuff is described in the TclPro documentation.
So download that the TclPro1.4.1 package for Win32
and take a look at the documentation.
don't forget to download also the source-package.
You can find links to that stuff at Hope this will help you !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top