alphonso

Hi,

I'd like to link two solutions together, one coded in VB, while the other coded in C#, but they're not yet published programs; they're still being coded. How do I do this Thanks

Smile



Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

nobugz

If necessary, create a solution that contains both projects. Select the "main" project, Project + properties, Add Reference, click on the Projects tab.





Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

ReneeC

To add a little but to what nobugs was saying......

The languages are mixable via DLLs. That what the references no bugs was referring to meaning DLLs.






Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

spotty

That said, if your using VB Express and not Visual Studio, I'm not sure that mixed language solutions are supported in the VB Express product. So you could do a project reference as suggested by Nobugz

I think you may have to upgrade to Visual Studio to support mixed language development within the same IDE, or use VB And C# Express products separately and build the project and then manually link to the DLL by adding a reference to the DLL rather than the project.

If you want to use both languages in the same IDE, I'm sure you'll need to upgrade to Visual Studio





Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

ReneeC

Hi Spotty,

I'm not sure why it wouldn't be included. A DLL is a DLL. How would they make it not supported

That would be an interesting limitation that no one has heard of before.






Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

alphonso

I see. So just create a .dll file, and add a reference to it. If I publish the program, will it also come with the referenced dll



Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

ReneeC

Yes, it will include what you need. For the fun of it, create a new solution create a hello world project for it. Add a dll project with a Public method and add its reference to the first. Call the method. Repeat that with a C# dll and try all of this out.






Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

alphonso

I see. Thanks Rene, and to all of you guys. Smile



Re: Visual Basic Express Edition Linking VB and C# solutions together...how??

spotty

DLL reference is fine but you cant do a project reference because your using VB Express, you can have a C# project as part of the solution.

In VS then you can have a solution with C# project and VB Projects.

So a DLL reference is fine, a project reference isnt with VB Express, which was why Nobuz use of projects tab is probably not completely correct for VB Express.