Archive: problems using C# dll


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


try this:


System::Call 'decrypt::decryptString(t "somestring") i .r1'

>; Use $1 on something
>
But, using .NET -> API isn't good at all.

You can't call C# DLL files using the System plug-in.


ups!!

is there any other way to call C# dll's


Make it an executable and use ExecWait.