Mixing and matching languages.

U

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.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

AFAIK a DLL is the only way to go., either that or write the new code in
Vb.net of course :)
 
N

Nicholas Paldino [.NET/C# MVP]

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).
 
U

UJ

Thanks for the info.....

Nicholas Paldino said:
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]
- (e-mail address removed)

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

AFAIK a DLL is the only way to go., either that or write the new code in
Vb.net of course :)


--
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top