Re: DLL initialization help

From: Christian Gollwitzer (auriocus_at_btcips73x1.cip.uni-bayreuth.de)
Date: 03/24/05


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



Relevant Pages

  • driver loading sequence
    ... I have driver A,B and C. ... obviously I will load C first and then B and then A. When C is ready, ... it will set an event using SetEvent function to tell B, ... good idea in the init function. ...
    (microsoft.public.windowsce.platbuilder)
  • how to change bitmap in today screen plugin ?
    ... i have this in my init function. ... hdcScreenBuffer = CreateCompatibleDC; ... // Load the bitmap from the resource ...
    (microsoft.public.pocketpc.developer)