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

Urgent!!!----how to call a .dll from tcl????

Status
Not open for further replies.

fox5

Programmer
Feb 27, 2002
3
US
I am new to TCL/TK. But I need your prompt help in how to call a .dll from TCL on Windows 2K platform. I have a .dll, but can't figure out how to call functions in it.
Any of your help or direct me to reference is greatly appreciately.

 
I try, but it told me the following error message:
couldn't execute rundll.exe: no such file or directory
What's wrong?
 
I've never done this so I don't know any tricks or tips. The "load" command in Tcl has the following description:
This command loads binary code from a file into the application's address space and calls an initialization procedure in the package to incorporate it into an interpreter. fileName is the name of the file containing the code; its exact form varies from system to system but on most systems it is a shared library, such as a .so file under Solaris or a DLL under Windows. packageName is the name of the package, and is used to compute the name of an initialization procedure. interp is the path name of the interpreter into which to load the package (see the interp manual entry for details); if interp is omitted, it defaults to the interpreter in which the load command was invoked.

Check out Tcl Help and look at the "load" command. Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top