basicly the subject says it all.
I am creating a DLL that will return from a function an array of 6 bytes. this DLL will be used by a VB applcation.
So far I can't find anyone that knows how to return arrays from a function that a VB app can read. the JIT for VB give the error msg: "Can not marshal return value".
second is there an good links for finding out what types are compatable between Delphi 7 and VB.NET?
Comments
:
: I am creating a DLL that will return from a function an array of 6 bytes. this DLL will be used by a VB applcation.
:
: So far I can't find anyone that knows how to return arrays from a function that a VB app can read. the JIT for VB give the error msg: "Can not marshal return value".
:
: second is there an good links for finding out what types are compatable between Delphi 7 and VB.NET?
:
:
:
I would return those individually depending on an index parameter of the function. This will slow it down slightly, but is easier to make it compatible with VB.
An alternative is to return those bytes as a PChar, and have VB extract them using string-handling functions.
It is important to make sure you use variable types, which are compatible with both languages. The safest types are: PChar, integer, double, and pointer.
:
: I am creating a DLL that will return from a function an array of 6 bytes. this DLL will be used by a VB applcation.
:
: So far I can't find anyone that knows how to return arrays from a function that a VB app can read. the JIT for VB give the error msg: "Can not marshal return value".
:
: second is there an good links for finding out what types are compatable between Delphi 7 and VB.NET?
:
:
:
The COM (and so VB) supported version of array type is variant array. Refer to Delphi help to learn how to use them.
--
Long live Rock & Roll!
Psycho Clown.