Search Results

Search found 1 results on 1 pages for 'jaeh'.

Page 1/1 | 1 

  • How to use pointer from COM object on C#?

    - by Jaeh
    All. I'm trying to use my old dll file on .net project. So I converted this unmanaged COM object to managed one by using [tlbimp.exe] util from Windows SDK. However, one method returns a Object as a return value, but whenever I try to use it, my program generates an error. The weird thing is below: //Object[] item = s.GetObjects(); //this generates an type error Object item = s.GetObjects(); //this works okay System.WriteLine(items); //prints System.Object[] rather than System.Object. It seems like it returns a pointer which contains an object array. Isn't it ? Please anyone tell me how to handle this, and is there any documentation for this issue ?

    Read the article

1