Archive: calling a dll


calling a dll
Hi
I’m new to NSIS and getting it to do things slowly!

The thing I can’t get my head around is calling an external dll!

Location is installed on my test system and will be preexisting on all system the installer is run on.

In VB.net i would do the following:


Dim Loc As LOCATION.Dirs

Loc = New LOCATION.Dirs
myfolder = Loc.PROG

and after this myfolder contains the path returned to myfolder.

I’m trying

System::Call "LOCATION::Dirs(t "PROG") t .r1"
MessageBox MB_OK|MB_ICONSTOP "Prog $1."

The above just returns a number not the path.


Is the dll .NET? If so then you have to write a non .NET wrapper to call it. This could be a dll or a command-line executable.

Stu


No its c++ and I was calling via interop as it COM, does this help?