Loading a DLL

Got a problem you cannot solve? Try here.
elecuyer
Posts: 13
Joined: Thu Jun 28, 2007 9:47 am
Location: Haverhill, MA
Contact:

Loading a DLL

Postby elecuyer » Wed Oct 17, 2007 1:56 pm

Hi all,

I have a DLL that I need to call from my IA script. However, rather than simply calling a function, it must be loaded, and remain in memory for the duration of the script (or I explicitly free it.)

It appears that the CALL DLL function, loads the DLL, calls the desired function in the DLL, then unloads the DLL. How can I keep the DLL in memory until I free it (or the script terminates.)

Thanks,

-Ed Lecuyer

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Wed Oct 17, 2007 3:06 pm

read the following topics in the help file, and decide which is the one you need:

Register Library and
Install Assembly
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

elecuyer
Posts: 13
Joined: Thu Jun 28, 2007 9:47 am
Location: Haverhill, MA
Contact:

Postby elecuyer » Wed Oct 17, 2007 3:35 pm

Neither applies to this case.

"Register Library" is for registering/unregistering a self-registering DLL upon installation. This DLL is not being installed, I just need to run it for the duration of the script. I tried Register Library anyway, and I got the same result as if it wasn't done (IA7 - and my DLL - crashes because IA is trying to close an active DLL.)

"Install Assembly" installs and registers a .NET assembly. This is not a .NET assembly that needs to be installed/registered. It is a standard DLL that needs to remain open for the duration of the script. For fun, I tried Install Assembly anyway - and again IA7 crashed string to close my dll.

Is there another solution or am I SOL?

I have attached the DLL for reference. Call is:
~InstallAware Clipboard Data~
~Call DLL Function~
~{295DF8C3-A8F1-45F9-B004-992AD872990C}~
~$SUPPORTDIR$\\AutoRunOff.dll,MTA_AutoplayStart,void,,$~
~mIDEFunc.dll\\mEXEFunc.dll~

File Attached:

AutoRunOff.dll

StarMessage
Posts: 3
Joined: Thu Jul 26, 2018 1:32 am

Re: Loading a DLL

Postby StarMessage » Mon Jul 30, 2018 2:36 am

I see this is a quite old topic and wonder if some changes in IA happened in the meantime.
I wish to call functions from the SoftMeter DLL ( https://www.starmessagesoftware.com/softmeter )


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 22 guests