473,499 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mixing and matching languages.

UJ
I have a VB.Net app that was written about a year ago. We have switched over
to C# as our default language. I need to make changes to the VB app
(including adding some new modules.)

Is there a way I can write the new modules in C# and compile them in to the
program?

I realize I could write them as a DLL but I'd like to have all the code
together.

I'm working in .Net 1.1

TIA - Jeff.
Jun 28 '06 #1
4 1085
Hi,

AFAIK a DLL is the only way to go., either that or write the new code in
Vb.net of course :)
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I have a VB.Net app that was written about a year ago. We have switched
over to C# as our default language. I need to make changes to the VB app
(including adding some new modules.)

Is there a way I can write the new modules in C# and compile them in to
the program?

I realize I could write them as a DLL but I'd like to have all the code
together.

I'm working in .Net 1.1

TIA - Jeff.

Jun 28 '06 #2
This isn't necessarily true.

You could always compile the code as a netmodule (the new stuff in C#)
and then link it to the main executable with AL.EXE. However, I agree that
using a DLL is generally the better way to go, it helps enforce better
design (on a fundamental level).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:OR*************@TK2MSFTNGP05.phx.gbl...
Hi,

AFAIK a DLL is the only way to go., either that or write the new code in
Vb.net of course :)
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I have a VB.Net app that was written about a year ago. We have switched
over to C# as our default language. I need to make changes to the VB app
(including adding some new modules.)

Is there a way I can write the new modules in C# and compile them in to
the program?

I realize I could write them as a DLL but I'd like to have all the code
together.

I'm working in .Net 1.1

TIA - Jeff.


Jun 28 '06 #3
UJ
Thanks for the info.....

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:Ok**************@TK2MSFTNGP04.phx.gbl...
This isn't necessarily true.

You could always compile the code as a netmodule (the new stuff in C#)
and then link it to the main executable with AL.EXE. However, I agree
that using a DLL is generally the better way to go, it helps enforce
better design (on a fundamental level).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:OR*************@TK2MSFTNGP05.phx.gbl...
Hi,

AFAIK a DLL is the only way to go., either that or write the new code in
Vb.net of course :)
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I have a VB.Net app that was written about a year ago. We have switched
over to C# as our default language. I need to make changes to the VB app
(including adding some new modules.)

Is there a way I can write the new modules in C# and compile them in to
the program?

I realize I could write them as a DLL but I'd like to have all the code
together.

I'm working in .Net 1.1

TIA - Jeff.



Jun 28 '06 #4
Another option is to convert the VB code to C#.
Try the demo/trial editions of the various VB to C# converters (including
ours).
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter
"UJ" wrote:
I have a VB.Net app that was written about a year ago. We have switched over
to C# as our default language. I need to make changes to the VB app
(including adding some new modules.)

Is there a way I can write the new modules in C# and compile them in to the
program?

I realize I could write them as a DLL but I'd like to have all the code
together.

I'm working in .Net 1.1

TIA - Jeff.

Jun 28 '06 #5

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

Similar topics

4
1880
by: Xah Lee | last post by:
20050207 text pattern matching # -*- coding: utf-8 -*- # Python # suppose you want to replace all strings of the form # <img src="some.gif" width="30" height="20"> # to # <img...
4
23610
by: Rudolf | last post by:
Is it possible to add a vb.net source code module to a c# project and if so how? Thanks Rudolf
10
4954
by: bpontius | last post by:
The GES Algorithm A Surprisingly Simple Algorithm for Parallel Pattern Matching "Partially because the best algorithms presented in the literature are difficult to understand and to implement,...
6
464
by: Rudolf | last post by:
Is it possible to add a vb.net source code module to a c# project and if so how? Thanks Rudolf
3
2078
by: jason | last post by:
I've been working with C# for over a year now without touching vb.net code. I had a few light years of vb.net before that. No real vb6 or windows form experience. Suddenly, I have an assignment...
0
7220
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...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5468
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,...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.