I have a DLL which is compiled from C which I need to use in vb.net.
So far I have this:
But when trying to run this:
I get the following error message:
An unhandled exception of type System.NullReferenceException occurred
Additional information: Object reference not set to an instance of an object.
The C declaration of this function is as follows:
What am I doing wrong?
So far I have this:
Code:
Declare Auto Function UnCompress Lib "lzss.dll" Alias "_uncompress_data" (ByVal Data As String, ByVal Length As Integer) As String
But when trying to run this:
Code:
dim out as String = UnCompress(indata, len(indata))
I get the following error message:
An unhandled exception of type System.NullReferenceException occurred
Additional information: Object reference not set to an instance of an object.
The C declaration of this function is as follows:
Code:
unsigned char __declspec(dllexport) *uncompress_data(unsigned char *inbuf,int *buflen)
What am I doing wrong?