Hi I am just trying to load an old style dll, not trying to pass anything to it yet but get the error below
An unhandled exception of type 'System.Runtime.InteropServices.MarshalDirectiveEx ception' occurred in dll_test.ex
Additional information: PInvoke restriction: can not return variants
It is a c dll
Here is the cod
Imports System.Runtime.InteropService
Public Class Win32_reduc
Declare Auto Function test Lib "lzo.dll" (
End Clas
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loa
Win32.MessageBox(0, "Hello World", "Platform Invoke Sample", 0
Win32_reduce.test(
End Su
The error occures on the Win32_reduce.test() lin
THanks Paul