problem System.Single[*] -> System.Single[]

  • Thread starter Thread starter Keeper
  • Start date Start date
K

Keeper

class object (COM-object) return dimension "System.Single[*]".
problem:

Object o; // object = VARIANT
o = comclass.GetData();
Single[] dm = (Single[]) o; // Error, problem convertation

Help!!!
 
Keeper,

What is the type of o when you look at it in the debugger? Is it
"System.Single[*]" or does it say something else? I've never seen
"System.Single[*]" before...
 
type in the debugger = "System.Single[*]"
What is the type of o when you look at it in the debugger? Is it
"System.Single[*]" or does it say something else? I've never seen
"System.Single[*]" before...

--
Object o; // object = VARIANT
o = comclass.GetData();
Single[] dm = (Single[]) o; // Error, problem convertation

Help!!!
 
class object (COM-object) return dimension "System.Single[*]".

That probably indicates that the array has a non-zero lower bound,
which makes in incompatible with a regular Single[]. You can still
access each element with System.Array.GetValue().


Mattias
 
Nicholas said:
What is the type of o when you look at it in the debugger? Is it
"System.Single[*]" or does it say something else? I've never seen
"System.Single[*]" before...

[*] is a COM thingy.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top