From: vmd_chcwaaa (
Date: Sun Nov 01 2009 - 01:32:42 CDT

Dear all,
    I convert a c++ class (with a name CIce) to tcl .dll using SWIG. It works well on ActiveTcl using tclsh8.5.exe on a windows XP platform. However, when I use the dll in VMD, it returns erroes that command CIce doesn't exist. The script is like this:
catch { load ./icelattice[info sharedlibextension] icelattice} ;#icelattice is the name of dll file
puts "Creating some objects:" ;#It goes well until the next command and it seems that the dll file has been successfully loaded but the calss is not recognized.
catch { CIce mywaterice }
catch { mywaterice command }

I am really very confused. The interpreter console in VMD (Tk console) is different from tclsh, is this the reason? If it is, what could I do to make the dll file recognized by the tk console? I would be grateful if any of you could give me some advice.

Cong Chen