jagged arrays and API

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello Expert
I have a DLL with a C Header file with
typedef char typ_ascii
and a function like
result = testf(typ_ascii Data[5][10]

Can someone help me how I can make a call to this function in VB.NET ?
I tried with <dllimport> and the old 'declare function' declaration but unfortunatly, without success.
Thanks in advance.
 
I would like to help you but since I read the NOTE in the MSDN article
"Arrays of Arrays" I quit using it for interfacing with non VB code.

Article note:
Note Jagged arrays are not compliant with the common language
specification (CLS). This means you should not expose jagged arrays from
any class you want CLS-compliant code to consume.

Maybe someone else can find a workarround for you.
Good luck
 
Thanks anyway for the research.

----- John Smith wrote: -----

I would like to help you but since I read the NOTE in the MSDN article
"Arrays of Arrays" I quit using it for interfacing with non VB code.

Article note:
Note Jagged arrays are not compliant with the common language
specification (CLS). This means you should not expose jagged arrays from
any class you want CLS-compliant code to consume.

Maybe someone else can find a workarround for you.
Good luck
 
Back
Top