I downloaded and unzipped tcom zip file into c:/tcl/lib
No matter how much I try it says can't find package when I use
"package require tcom"
I've used other libraries before (eg twapi) - no problems
Any help greatly appreciated.
Madan
Are you certain that the tcl you are using is the one you think you
are using?
Try starting tclsh8.5 (or whatever yours is called), and then at the %
prompt, type
% info patchlevel
8.4.10
% puts $auto_path
{C:/Program Files/Activestate Tcl/8.4.10.1/lib/tcl8.4} {C:/Program
Files/Activestate Tcl/8.4.10.1/lib} {C:/Program Files/Activestate Tcl/
8.4.10.1/lib/tcllib1.7} {C:/Program Files/Activestate Tcl/8.4.10.1/lib/
tklib0.2} {C:/Program Files/Activestate Tcl/8.4.10.1/lib/tk8.4}
See http://wiki.tcl.tk/auto_path for some information about the
auto_path variable.
The tcom folder you get when you unzip it contains more than just the
package.
It has demos, docs, test etc.
just put the tcom folder that is within the lib folder, into c:/tcl/
lib
In general - look for a folder containing 'pkgIndex.tcl', it is likely
to be the one you need to put somewhere on your auto_path.