IDRISI API SERVER
Thanks anyway
Leo
Thanks anyway
Leo
Thanks
Leo
<System.Security.SuppressUnmanagedCodeSecurity(), System.Runtime.InteropServices.DllImport("the_dll_name.dll")> _ Public Shared Function Function_Name(Function_Args_when_called) As Return_Type End Function |
or for a sub...
<System.Security.SuppressUnmanagedCodeSecurity(), System.Runtime.InteropServices.DllImport("the_dll_name.dll")> _ Public Shared Sub theSub_Name(Args_when_called) End Sub |
leaving the functions empty.
Then from your project, simply use Call function_name()
the <System.Security.SuppressUnmanagedCodeSecurity(), ..... is to avoid warnings in the compiler.
| I have tried your code, but that it is not the problem I am having- I supect it isn't working because the API I am accessing is an exe file not a dll and is designed for VBA not for the new VB.net framework. The structure and way of dealing with API is different, therefore it doesn't work. Thanks a lot anyway Leo |