|
|
#1 |
|
Junior Member
Join Date: Sep 2008
Posts: 3
|
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� |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Yes, it will work as long as it can find the DLL.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2008
Posts: 3
|
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. |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
The calls are perfectly correct, but not real. I'd need a more detailed example to help you here.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Sep 2008
Posts: 3
|
For example how can I call function char * CharUpper(char *str1) from user32.dll?
|
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
System::Call user32::CharUpper(tr0)t.r0
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|