Skip to content
⌘ NSIS Forum Archive

problems using C# dll

5 posts

kulakshay#

problems using C# dll

Hi i have following code,

Function loadDll

SetOutPath "C:\Personica\SetUp\decrypt\decrypt\bin\Debug"
clearerrors
strcpy $1 $custId
System::Call 'decrypt::decryptString(t) i(r1) r2' ;'CondMgr::CmGetHotSyncExecPath(t, *i) i(.r0, r1r1).r2'
iferrors err
err:
messagebox mb_ok "Error!"
messagebox mb_ok "Return value: $2"
SetPluginUnload manual
System::Free 0
FunctionEnd

My dll name is decrypt , and it uses decryptString methos which takes one string arg and returns integer value,

here i am getting error message from 'iferr', also the return value gives blank string
Joel#
try this:
System::Call 'decrypt::decryptString(t "somestring") i .r1'
; Use $1 on something 
But, using .NET -> API isn't good at all.