Jump to content
Sign in to follow this  
kiran putta123

How to install tcom package in 64 bit system

Recommended Posts

I have the same problem, however, I get "couldn't load library "..../hw/tcl/tcom.tcom.dll": this library or a dependent library could not be found in library path.

I was able to use the tcom package in a seprate TCL installation (activestate, using teacup to install is), however I need the package to work in Hypermath too. What do I do wrong? (I just downloaded the 64bit tcom, and copied it as mentioned below. I do not have (experiece with) visual basics , C++, etc, just Matlab and Hyperworks, and now a bit tcl)

>> edit: Ok, using teacup setup and teacup link make I set the repository of the tcl shell in win64/bin to that of the working activestate tcl installation. It seemed to work, howver it only works in the tclsh85 shell itself, but not in hypermath ](*,) why? Apparently, the tcl editor in hypermath is not the same as the tclsh85 shell (running tcl scripts using { tclsh helloworld.tcl } does not work either). who can help me out with this?

Share this post


Link to post
Share on other sites

Hi, thank you for the answer. tcom.dll and tcom.tcl are indeed the same folder. but, as you can read from my edited post: I got it partially to work. Can you help me resolving this issue?

Share this post


Link to post
Share on other sites

Hi

in Hypermath, command window is not used for tcl

you should use View>>Tcl window

and if you want to load a package by "package require"

you have to set variable auto_path point to the package

Share this post


Link to post
Share on other sites

I know, I use the tcl window in hypermath. But what I came across, is that when I use the shell in tcl/win64/bin/tclsh85.exe, I can evaluate tcl files using "tclsh mytclfile.tcl". when I do the same in the tcl window in hypermath, I get:

Tcl Error : invalid command name "tclsh85"

while executing

"tclsh85 myfile.tcl"

myfile.tcl only containing: puts "hello world"

Furthermor, when I want to use the tcom package is in the shell, this is no problem, while when I want to use it in de tcl window in hypermath, it doesnt work. I have set the auto_path variable pointing to the package. i made it identical to the auto_path of the shell.

So, what is going wrong?

Share this post


Link to post
Share on other sites

Hi

Sorry for my mis-understand above

I think the tcom 64bit version was not compatible with tcl code in HM

Someone in tcl community advise us change to use twapi package which support COM

Did you try this ?

Share this post


Link to post
Share on other sites

Wow, I've spent the past week trying installing tcom, and with twapi, within 2 minutes I got what I needed :)

So, everyone trying using tcom for COM applications in hypermath: use twapi!

@tinh: thank you so much for your help!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...