where is CLMQGet defined, is it an MS defined win32 API or a third
party?
Ollie Riches
Hi,
Thanks for you response.
Can you help me how can i declare parameter in my function, that can i
receive gzip compressed buffer.
For example:
Declaration here:
[DllImport("clamqa.dll", CharSet=CharSet.Ansi, EntryPoint="CLMQGet")]
public static extern int CLMQGet(here someone type but i dont know how
receive compressed gzip buffer);
My Program below:
// Here call this function
CLMQGet(here receive this compressed gzip file);
Now i will make following tasks:
1. Create file and write this buffer to file with gzip extension
2. Uncompress this gzip file.
Can you prompt me which type should i select to receive this compressed
gzip buffer
Thanks for any suggestions
Regards,
Pawel
U¿ytkownik "Ollie Riches" <
[email protected]> napisa³ w
wiadomo¶ci you need to check out the following link:
http://msdn.microsoft.com/library/d...uide/html/cpconDefaultMarshalingForArrays.asp
you cannot use out (or ref) with byte[] parameters because this will
cause the address of the internal object (not the buffer) to be passed
to the unmanaged code.
You should be able to just define the signature as and then change the
code accordingly:
[DllImport("clamqa.dll", CharSet=CharSet.Ansi, EntryPoint="CLMQGet")]
public static extern int CLMQGet( byte[] bufer );
HTH
Ollie Riches
Hi,
I will get back (receive) byte array from function desribed below:
[DllImport("clamqa.dll", CharSet=CharSet.Ansi, EntryPoint="CLMQGet")]
public static extern int CLMQGet( out byte[] bufer );
Here below sample code:
byte[] array_byte=null;
CLMQGet( out array_byte ); // here is exeption calling
Say me why this execption is calling and how can i change my solution
?
Thanks for any help,
Regards,
Pawel