473,385 Members | 1,753 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.

Merge VB.NET and C#

Hi,

I and a college are working on 2 projects, one in C# and one in Vb.NET,
and would like to connect the projects using VB.NET project as the main
GUI and let an search algorithm in C# do the heavy work.

We are both rather new .net programmers and would appreciate some
newbie help in letting VB code give instruction to C#.

We appreciate any constructed comments, direction, pitfalls.

Thank in advance,

Tomas : )

PS" we are not interested in a discussion on doing all programming in
one of the two languages or a discussion one versus the other"

Oct 9 '06 #1
4 2848
The simple answer would be to compile the C# code into a dll and then
add it into your VB project.

Thanks,

Seth Rowe
to**************@yahoo.com wrote:
Hi,

I and a college are working on 2 projects, one in C# and one in Vb.NET,
and would like to connect the projects using VB.NET project as the main
GUI and let an search algorithm in C# do the heavy work.

We are both rather new .net programmers and would appreciate some
newbie help in letting VB code give instruction to C#.

We appreciate any constructed comments, direction, pitfalls.

Thank in advance,

Tomas : )

PS" we are not interested in a discussion on doing all programming in
one of the two languages or a discussion one versus the other"
Oct 9 '06 #2

<to**************@yahoo.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
Hi,

I and a college are working on 2 projects, one in C# and one in Vb.NET,
and would like to connect the projects using VB.NET project as the main
GUI and let an search algorithm in C# do the heavy work.

We are both rather new .net programmers and would appreciate some
newbie help in letting VB code give instruction to C#.

We appreciate any constructed comments, direction, pitfalls.
Yes as Seth says, create a C# project (a Class Library) and put your C#
classes into it. Then add a reference to the library from your VB.NET
project. You will of course have to ship the library .DLL too.

Oct 9 '06 #3
Like the others said, in your solution you can have two projects, one DLL C#
project, and the other a VB.NET WinForms application. Just add the reference
to the DLL project from your VB.NET project.

Just FYI, a lot of newbie .net programmers don't usually know that you will
not see any kind of performance difference in doing "heavy work" in C#, since
the same code in either language will product the same IL most of the time.
However, I do highly recommend, for your benefit, in learning the two main
..NET syntaxs' (C# and VB.NET). What you are doing is a good way to learn
them both. Trust me, I encourage the direction you are taking. I have
interviewed many candidates with "2 to 3 year .NET experience" and not know
what Intermediate Language is. Being fluent in both will make you that much
more valuable.

Good luck!

"to**************@yahoo.com" wrote:
Hi,

I and a college are working on 2 projects, one in C# and one in Vb.NET,
and would like to connect the projects using VB.NET project as the main
GUI and let an search algorithm in C# do the heavy work.

We are both rather new .net programmers and would appreciate some
newbie help in letting VB code give instruction to C#.

We appreciate any constructed comments, direction, pitfalls.

Thank in advance,

Tomas : )

PS" we are not interested in a discussion on doing all programming in
one of the two languages or a discussion one versus the other"

Oct 10 '06 #4
Thanks for your help guys, its very appreciated.

Tomas

rmacias wrote:
Like the others said, in your solution you can have two projects, one DLL C#
project, and the other a VB.NET WinForms application. Just add the reference
to the DLL project from your VB.NET project.

Just FYI, a lot of newbie .net programmers don't usually know that you will
not see any kind of performance difference in doing "heavy work" in C#, since
the same code in either language will product the same IL most of the time.
However, I do highly recommend, for your benefit, in learning the two main
.NET syntaxs' (C# and VB.NET). What you are doing is a good way to learn
them both. Trust me, I encourage the direction you are taking. I have
interviewed many candidates with "2 to 3 year .NET experience" and not know
what Intermediate Language is. Being fluent in both will make you that much
more valuable.

Good luck!

"to**************@yahoo.com" wrote:
Hi,

I and a college are working on 2 projects, one in C# and one in Vb.NET,
and would like to connect the projects using VB.NET project as the main
GUI and let an search algorithm in C# do the heavy work.

We are both rather new .net programmers and would appreciate some
newbie help in letting VB code give instruction to C#.

We appreciate any constructed comments, direction, pitfalls.

Thank in advance,

Tomas : )

PS" we are not interested in a discussion on doing all programming in
one of the two languages or a discussion one versus the other"
Oct 17 '06 #5

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

Similar topics

2
by: William Wisnieski | last post by:
Hi Everyone, Access 2000 I have some code behind a button that performs a word merge with a query data source. The merge works fine. But what I'd like to do somehow is after the merge is...
5
by: stemc © | last post by:
Hi there, In work, we often mail merge letters and post them to contacts. But more and more, we've been emailing information to people instead. So far, I've been writing a single generic...
2
by: Aaron | last post by:
hello, i am perfoming a mail merge with the following code. Public Function MergeIt() Dim objWord As Object Set objWord = GetObject("C:\MyMerge.doc", "Word.Document") ' Make Word visible....
8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
4
by: John J. Hughes II | last post by:
Could someone explain how to merge the form menu with the mdi container window. The menu strip items on the form window merge but I either end up with a blank blue menu on the form or top list of...
16
by: UDBDBA | last post by:
Hi All: I need some clarification on a MERGE statement. The database is on V8 FP12 (AIX) 64bit. The source table is tableA. The target is a View "FACT" with UNION ALL because of the 512 Gig...
4
by: Tom Jones | last post by:
I have an application that was originally built using Visual Studio 2003 that I upgraded to Visual Studio 2005. When I attempt to build the *.msi file in the deployment project, I am getting a...
7
by: giladp1 | last post by:
I found Albert Kallal's great "Super easy Word Merge" code in his site at: http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html Thanks Albert so much for sharing this. I am looking...
24
by: Henry J. | last post by:
My app needs to insert thousand value rows into a mostly empty table (data are read from a file). I can either use inserts, or use merge. The advantage of using merge is that in the few cases...
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
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...
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.