CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

How to pass double pointers for COM Interop via MethodInfo.Invoke ? topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2010, 06:14 AM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
glitteringsound is on a distinguished road
| More
How to pass double pointers for COM Interop via MethodInfo.Invoke ?

Hello,

I need to make COM IntetrOp at runtime using reflections. My native COM Object's exposed methods have some parameters as pointers (DWORD*) and some double pointers (DWORD**) and some are user defined types(e.g SomeUDTType objSmeUDTType) and its pointer to pointer(i.e. SomeUDTType **pSomeUDTType).

I need to pass pointers to pointers. For now how can I be able to populate "object" array as pointers to pointers of SomeUDTType.

Native COM exposed method :

STDMETHODIMP MyCallableMethod(DWORD *value_1,BSTR *bstrName,WESContext **a_wesContext

tlbImp generated output:

DTINIDLLib.RuntimeCallingClass.MyCallableMethod(re f uint, ref string, System.IntrPtr)


Regards
Usman
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interop: Returning a pointer from C# daleh@hill-eng.com C# Programming 0 09-01-2010 11:30 PM
What is the arguments in main when we don't pass anything? Bazman C Programming 1 07-08-2010 07:43 AM
Double techinspiration C++ Programming 5 06-14-2010 08:05 PM
how to pass the message to the pop up window vidhya Win32 Programming 5 06-21-2007 11:18 PM
string to double kimw C Programming 1 12-26-2006 01:25 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:48 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board