Archive: dll


dll
How can I call a method from an external DLL and how to pass parameters correctly?
For example I have a function int Func1(int Param1) exported from mydll.dll, will the following code be correct
System::call “MyDll:Func1 (i 111) i.r0”?


Yes, it will work as long as it can find the DLL.


Both so
System::Call "TestDll::MyFunc(i 111) i.r5"
and so
System::Call "TestDll::MyFunc(i) i 111.r5"
or
System::Call "TestDll::MyFunc(i) i r0.r5"

data-ins are not transferred. In dll I write values of data-ins to a text file and if the number it is written 0 if string that " is transferred. Please help.


The calls are perfectly correct, but not real. I'd need a more detailed example to help you here.


For example how can I call function char * CharUpper(char *str1) from user32.dll?


System::Call user32::CharUpper(tr0)t.r0