473,385 Members | 2,029 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,385 software developers and data experts.

COM library inconsistency

I have a com dll, and I add it to my VS 2005 C# project it wrap the dll in a
set of functions.
And when I'm generating the .NET wrapper dll manually by using the
TlbImp.exe, the function does not look the same.
For example:
(1) By using the add reference of the VS2005 I get the interop DLL with
function that looks like that:
void Func(int i, ref System.Array stream)
(2) By using the TlbImp.exe manually I get the interop DLL with function
that looks like that:
void Func(int i, ref byte[] stream)

Why the difference?
Can I make the VS2005 generate the interop libraries like the TlbImp.exe
does? How?
--
Thanks
Sharon
Feb 8 '07 #1
1 1226
"Sharon" <Sh*****@newsgroups.nospamwrote in message
news:9F**********************************@microsof t.com...
>I have a com dll, and I add it to my VS 2005 C# project it wrap the dll in a
set of functions.
And when I'm generating the .NET wrapper dll manually by using the
TlbImp.exe, the function does not look the same.
For example:
(1) By using the add reference of the VS2005 I get the interop DLL with
function that looks like that:
void Func(int i, ref System.Array stream)
(2) By using the TlbImp.exe manually I get the interop DLL with function
that looks like that:
void Func(int i, ref byte[] stream)

Why the difference?
Can I make the VS2005 generate the interop libraries like the TlbImp.exe
does? How?
--
Thanks
Sharon

VS uses the same tlbimp command but applies the /sysarray switch (see tlbimp /?).
Check the msdn docs for details about this switch and the marshaling of SAFEARRAY's.

Willy.

Feb 8 '07 #2

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

Similar topics

1
by: Mickael Faivre-Macon | last post by:
Hi, I have compiled a dynamic loaded PHP module and sometimes I get a "invalid library (maybe not a PHP library)" message. I just have to reload the page and my module is working again. ...
3
by: Rim | last post by:
Hi, With the great unification of types and classes, what will happen to the following identity inconsistency? >>> class myint(int): pass .... >>> a=int(1); b=int(1) >>> a is b 1
15
by: Roberto A. F. De Almeida | last post by:
I found that when using negative indices, the slice object passed to __getitem__ depends on the number of slices. An example to clarify: class a: def __getitem__(self, index): return index ...
46
by: Scott Chapman | last post by:
There seems to be an inconsistency here: Python 2.3.2 (#1, Oct 3 2003, 19:04:58) on linux2 >>> 1 == True True >>> 3 == True False >>> if 1: print "true" ....
11
by: Carlos Ribeiro | last post by:
Hi all, While writing a small program to help other poster at c.l.py, I found a small inconsistency between the handling of keyword parameters of string.split() and the split() method of...
2
by: Peter Clifton | last post by:
Hello all, I am very new to this subject and learning by example. I have a small inconsistency in an XML file when transformed using different processors. I was wondering if someone could shed...
43
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own...
3
by: Art Krumsee | last post by:
I have a console app that reads and parses the command line. The code originally read something like this: dim CmdLine as String = Command() if CmdLine.indexof("-trace") then 'tracing is...
6
by: August Karlstrom | last post by:
Hi What's the cause of the inconsistency between variable and parameter declarations in C? What's wrong with e.g. void f(int a, b; char c); August
17
by: Frederick Gotham | last post by:
For those of you who strive to write fully portable, Standard-compliant code: What's the best library for writing GUI applications? I've heard good things about wxWidgets. Would it be the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.