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

How to pass a collection of data from VB6 to C#.NET

Hi,

We are going to create a C#.NET project to be a service layer to
support 2 existing web products, one is using .net, the other is using
VB6.

I wonder is there a better way to pass a collection of data like array
from VB6 to C# instead of using XML?

thanks,
Elaine

Mar 26 '07 #1
3 1526
I'd stick with XML myself, it's probably the best solution.

"elaine" <el*******@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
Hi,

We are going to create a C#.NET project to be a service layer to
support 2 existing web products, one is using .net, the other is using
VB6.

I wonder is there a better way to pass a collection of data like array
from VB6 to C# instead of using XML?

thanks,
Elaine

Mar 27 '07 #2
Can't you use COM interop assuming you expose the object that holds or
returns this collection to COM? As long as it's a COM discoverable type you
should be able to create an Interop assembly and go.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com/weblog
"elaine" <el*******@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
Hi,

We are going to create a C#.NET project to be a service layer to
support 2 existing web products, one is using .net, the other is using
VB6.

I wonder is there a better way to pass a collection of data like array
from VB6 to C# instead of using XML?

thanks,
Elaine
Mar 27 '07 #3
You may always resort to primitive ways of transferring data...like over
delimited strings, and spend enough time writing code to parse the strings,
or stick to XML. Not to be biased here, but I have always felt that XML
provides an clean way to transfer data over apps, and the .net framework has
awesome xml handling classes.
--
Sashidhar Kokku
ikaSystems Corp
"elaine" wrote:
Hi,

We are going to create a C#.NET project to be a service layer to
support 2 existing web products, one is using .net, the other is using
VB6.

I wonder is there a better way to pass a collection of data like array
from VB6 to C# instead of using XML?

thanks,
Elaine

Mar 28 '07 #4

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

Similar topics

4
by: Wandy Tang | last post by:
Dear All, How to pass a collection from a VB Component to an ASP page? I have no clue the syntax of all. Many Thanks. Regards, Wandy Tang
1
by: Mark Dicken | last post by:
Hi All I have found the following Microsoft Technet 'Q' Article :- Q210368 -ACC2000: How to Pass an Array as an Argument to a Procedure (I've also copied and pasted the whole contents into...
4
by: deko | last post by:
This is a basic program flow question. I'm trying to refractor an AC2000 app and split sections of code into separate modules. But there are a number of collections I create in one big module -...
1
by: Sam | last post by:
Hi, I write my code behind in C# and everytime I need a new functionality, I build a class for it and save it in a folder I call ClassLibrary. My question is I don't know how to send my web...
1
by: Josema | last post by:
Hi to all, i have a class (of type collectionbase) that creates a collection of objects for instance persons. For other hand i have a Datagrid whose Datasource its the collection wich i...
4
by: Alexander Kolev | last post by:
I have a huge struct with many members.I don't want to copy this struct to the stack, that's why i pass it by reference to a function. But also i want the function to be unable to modify it....
3
by: Chris | last post by:
I have a modal (yes it must be modal) web page. I do this by having an empty frame that points to my main page (so that I can repost without new popups) I have to pass data to the child page from...
15
by: Jack | last post by:
Hi, I have a asp form where one element is a list box which lists four years starting from 2004. This list is drawn from a database table which has YearID and Year as two fields as shown below:...
4
by: DaBrain | last post by:
Win32 C++/Delphi Developer here moving to .NET C# (Yes, I'm a newbie again) Thank you all for any replies in advance. I am developing a class that accesses a record, one record, and sets the...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.