473,386 Members | 1,795 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,386 software developers and data experts.

Calling VB6 component that has ParamArray parameter

I am trying to invoke a COM component (written in VB6) which accepts
parameter of ParamArray data type.

What would be the proper syntax in C# for passing ParamArray in VB6?

Thanks.
Nov 16 '05 #1
2 3080
Bruno,

Generate an assembly from the COM component using the tlbimp tool and then
inspect the assembly using ildasm.

Does that help?

Regards,

Bart

"Bruno Miousse" <br***********@m3isystems.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...
I am trying to invoke a COM component (written in VB6) which accepts
parameter of ParamArray data type.

What would be the proper syntax in C# for passing ParamArray in VB6?

Thanks.

Nov 16 '05 #2
Thanks,

The ParamArray parameter of my function is defined has followed when
inspecting with ildasm.

[in][out] object[]& marshal( safearray variant) rvArray

What should I do with this in my C# code to pass the correct parameter type
whitout changing anything to the vb component interface?
"Bart Jacobs" <ba*********@student.kuleuven.ac.be> wrote in message
news:eg*************@TK2MSFTNGP12.phx.gbl...
Bruno,

Generate an assembly from the COM component using the tlbimp tool and then
inspect the assembly using ildasm.

Does that help?

Regards,

Bart

"Bruno Miousse" <br***********@m3isystems.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...
I am trying to invoke a COM component (written in VB6) which accepts
parameter of ParamArray data type.

What would be the proper syntax in C# for passing ParamArray in VB6?

Thanks.


Nov 16 '05 #3

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

Similar topics

0
by: Johan Lachonius | last post by:
Hi, I'm using a "classic" asp-page and a .net-component which I want to call passing a Recordset as a parameter. I have a reference to ADODB in the .net component which should supply a COM...
2
by: Tom | last post by:
Hi everyone In VB6,paramarray parameter is passed using byref,but in VB.NET,using byval.How can I get back the changed value of the paramarray parameter My work case in vb.net like this...
2
by: Edlueze | last post by:
Greetings: I have two functions and I would like to pass the ParamArray gathered from one function to the other function. For the purposes of this post, let's say that they are calculating...
1
by: Nick | last post by:
I have read many postings regarding the above thread but don't seem to have found the exact problem I am experiencing. I am using VS.NET and have 2 projects within the 1 solution. First project...
8
by: Tubs | last post by:
I know it might seem weird but i have a need to pass the contents of a paramarray from one sub to another that also takes a paramarray. Problem is i want to pass it exactly as it came in to the...
6
by: Peter | last post by:
Hi everyone In VB6,paramarray parameter is passed using byref,but in VB.NET,using byval.How can I get back the changed value of the paramarray parameter My work case in vb.net like this...
14
by: Microsoft | last post by:
I know how to call a finction and pass a parameter to it, but I don;t understand how to take the resulting output of the function and use it from the subroutine that called the function ...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
3
mafaisal
by: mafaisal | last post by:
End of parameter list expected. Cannot define parameters after a paramarray parameter. Public Sub F_Bind(ByVal StrSql As String, ByVal ParamArray Ctrls() As Object,Optional ByVal Row as Integer...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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,...

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.