Re: DLL initialization help
From: Christian Gollwitzer (auriocus_at_btcips73x1.cip.uni-bayreuth.de)
Date: 03/24/05
- Next message: Carlos Crosetti: "sha1 to take fingerprints on large files"
- Previous message: George Petasis: "Re: A tcl command logger?"
- In reply to: huey_jiang_at_yahoo.com: "DLL initialization help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Mar 2005 22:09:24 +0100
huey_jiang@yahoo.com wrote:
> Hi All,
>
> I am trying to load a DLL that made by VC++ into my tcl script, my
> simply code:
>
> load [file join [pwd] testdll.dll] # this works
> testdll_Init # I got kicked
> runTest() # I want this guy running
>
> But I got error mesg from tcl interpreter as:
>
> couldn't find procedure Testdll_Init
The _Init function is called automatically when you load the dll. So if "load"
works, you can then just call the commands registered. Of course you need to
register it in the _Init function. If you don't want to bother with the Tcl-API
itself, use SWIG
Christian
- Next message: Carlos Crosetti: "sha1 to take fingerprints on large files"
- Previous message: George Petasis: "Re: A tcl command logger?"
- In reply to: huey_jiang_at_yahoo.com: "DLL initialization help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|