473,395 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Impossible C# wrapper for COM?

Is is true that it's impossible to write a C# wrapper for an IDispatch COM
object that has more than one property with parameters?

I tried everything I could think of and nothing works. You can only use the
this[] indexer for one parametrized parameter. If this is true, anyone knows
if this limitation has been lifted in 2.0?

It also appears to be a bug in the proxy that marshals calls to the COM
interface is unable to call IDispatch::Invoke using DISPATCH_PROPERTYGET and
always uses DISPATCH_INVOKE. This may be the reason why it's impossible to
wrap parametrized properties in C#. Using a dynamic invoke with
Type.InvokeMember() and BindingFlags.GetProperty works.

Tblimp.exe generates IL directly using constructs that are not valid if
reversed back to C#.

Kind regards,
Luca
Nov 17 '05 #1
0 1030

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jerry | last post by:
Hello All: Recently I am experiencing problems with my PHP scripts not being able to access remote files. I receive the following errors: Warning: file(): URL file-access is disabled in the...
10
by: Chung Leong | last post by:
I'm just throwing this question out here as there hasn't been much discussion recently on the topic of shared hosting. Most people, it seems, just assume that it's secured. Companies don't sell...
12
by: Egil M?ller | last post by:
Is there any way to create transparent wrapper objects in Python? I thought implementing __getattribute__ on either the wrapper class or its metaclass would do the trick, but it does not work for...
9
by: WithPit | last post by:
I am trying to create an Managed C++ Wrapper around an unmanaged library which contains C++ code. Some of the unmanaged methods returns an returntype which is of the abstract base type (for...
22
by: linwu02 | last post by:
I am trying to write a Wrapper for our web wrapping engine, Cameleon. Currently Cameleon is able to answer certain SQL queries but with a restriction that all SQL queries must have a predicate....
9
by: Julien Biezemans | last post by:
Hi! Here is the problem: I'd like to restrict local filesystem stream operations to one directory just like a root jail. fopen('/file.bin') would actually open /some/path/file.bin. One goal...
16
by: utab | last post by:
Dear all, In programming terminology, what is a wrapper and where is it used? Regards
10
by: PW | last post by:
I have a layout that I can not seem to make work. Using a float:right, I can get the numbered items to wrap as desired around "rightdiv". The problem is, this is a dynamic list, and "5" shouldn't...
5
by: Joseph Barillari | last post by:
Hi python-list, I've just started using new-style classes and am a bit confused as to why I can't seem to alter methods with special names (__call__, etc.) of new-style class instances. In other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.