Hello all,
I am working on a .NET project that needs to call out to a function in a VB6 DLL. When it makes the call AutoCAD throws a wobbly with the following error.
Unable to cast object of type 'System.Object[]' to 'FileTools.clsMaskSpec[]'
I know the routine in the DLL works fine as I can call it ok from VB6, so I think it must me some sort of .NET issue.
The function takes the following form.
getMatchingstrings(byref specArray as system.Array, byref retval as System.Array)
The function takes two arrays as input, the second array is modified to return the result. The function in the DLL has no defined return. eg.
Function getMatchingStrings(spec() as clsMaskSpec, retVal() as string)
Any help would be appreciated.
Regards
Martin.