Hi there, I'am making an example program that uses a dll compiled i C(unmanaged).
But i keep getting an error:"{"PInvok e restriction: cannot return variants."}
I used following declare statement:
Declare Function som Lib "dll_som.dl l" () as Integer
the call is like this:"som" is a function in the dll.
TextBox3.Text = som(A, B)
Can enyone explain me how to do it properly!
Thanks!
But i keep getting an error:"{"PInvok e restriction: cannot return variants."}
I used following declare statement:
Declare Function som Lib "dll_som.dl l" () as Integer
the call is like this:"som" is a function in the dll.
TextBox3.Text = som(A, B)
Can enyone explain me how to do it properly!
Thanks!
Comment