Hi,
I'm creating a VB Windows Application project that needs to call some
classes already written in C#.
I can create a class library (dll) and include them as reference in my
project, that works ok.
But I was thinking, could I add directly add the CS files in the VB project
and have access to the class ?
I already did it, but it seems not to work.
If I put "Imports MyCSnamespace" it does not find "MyCSnamespace".
If I delete it, than my reference to the CS classes are invalid in the body
of the VB project.
So, is it possible ?
Regards, 5 1301
Currently not possible.
I have read that in the next version of Visual Studio this will be allowed.
Kevin
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:Of****************@TK2MSFTNGP12.phx.gbl... Hi,
I'm creating a VB Windows Application project that needs to call some classes already written in C#. I can create a class library (dll) and include them as reference in my project, that works ok.
But I was thinking, could I add directly add the CS files in the VB project and have access to the class ?
I already did it, but it seems not to work. If I put "Imports MyCSnamespace" it does not find "MyCSnamespace". If I delete it, than my reference to the CS classes are invalid in the body of the VB project.
So, is it possible ?
Regards,
Hi,
Thanks for the comment.
I was digging in the help file and just found something called "multifile
assemblies". It seems this is to help to create a DLL combined by different
languages.
May I misunderstood.
Still reading .....
Regards,
"Kevin Thomas" <Ke***@FakeEmailAddresses.com> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl... Currently not possible.
I have read that in the next version of Visual Studio this will be
allowed. Kevin
"Craig Kenisston" <cr************@hotmail.com> wrote in message news:Of****************@TK2MSFTNGP12.phx.gbl... Hi,
I'm creating a VB Windows Application project that needs to call some classes already written in C#. I can create a class library (dll) and include them as reference in my project, that works ok.
But I was thinking, could I add directly add the CS files in the VB project and have access to the class ?
I already did it, but it seems not to work. If I put "Imports MyCSnamespace" it does not find "MyCSnamespace". If I delete it, than my reference to the CS classes are invalid in the body of the VB project.
So, is it possible ?
Regards,
Hey if you read that it can be done, point me to that article. That'd be
pretty cool.
Thanks,
Kevin
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl... Hi,
Thanks for the comment. I was digging in the help file and just found something called "multifile assemblies". It seems this is to help to create a DLL combined by different languages. May I misunderstood. Still reading .....
Regards,
"Kevin Thomas" <Ke***@FakeEmailAddresses.com> wrote in message news:ek**************@TK2MSFTNGP09.phx.gbl... Currently not possible.
I have read that in the next version of Visual Studio this will be allowed. Kevin
"Craig Kenisston" <cr************@hotmail.com> wrote in message news:Of****************@TK2MSFTNGP12.phx.gbl... > Hi, > > I'm creating a VB Windows Application project that needs to call some > classes already written in C#. > I can create a class library (dll) and include them as reference in my > project, that works ok. > > But I was thinking, could I add directly add the CS files in the VB > project > and have access to the class ? > > I already did it, but it seems not to work. > If I put "Imports MyCSnamespace" it does not find "MyCSnamespace". > If I delete it, than my reference to the CS classes are invalid in the > body > of the VB project. > > So, is it possible ? > > Regards, > > >
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl... I was digging in the help file and just found something called "multifile assemblies". It seems this is to help to create a DLL combined by
different languages. May I misunderstood. Still reading .....
I believe you create the individual pieces as modules ("netmodules") and
then link them together. I'm not sure if Visual Studio can do this or if you
have to use command-line tools.
In article <ej**************@TK2MSFTNGP10.phx.gbl>, Kevin Thomas wrote: Hey if you read that it can be done, point me to that article. That'd be pretty cool.
Thanks,
Kevin
It can be done - just not from the IDE. You can compile your file to a
module (*.netmodule) and then use the assembly linker tool (al.exe) to
create a multifile assembly. You just have to do all your builds from
the command line and it takes more then one step. Of course, you could
create a script to handle it :)
--
Tom Shelton [MVP] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: TGF |
last post by:
Hello,
I am creating a console app. I try to link a static library by
including it in the Linker-Input-Additional Dependencies field under the
Project properties. Then I specify the path to...
|
by: TGF |
last post by:
Hello,
I am creating a console app. I try to link a static library by
including it in the Linker-Input-Additional Dependencies field under the
Project properties. Then I specify the path to...
|
by: moonriver |
last post by:
I intend to establish a setup project including one or multiple windows
service project(s). The outcome package should be SELF-INSTALLABLE on a
separate Windows 2003 PC. How to do?
|
by: Husam |
last post by:
Hi Every Body:
How can I add the .Net Framework to my setup project?
any help will be appreciated.
Regard's
Husam
|
by: David Ching |
last post by:
Hello, I am just starting to experiment with VC2005 to create a C++ WinForms
app. I have created a simple form, and it works. Now I want to add a C#
..cs source file containing a new class that I...
|
by: xavendano |
last post by:
Hi,
I have a tool made in vb.net that generate code.....class files o mod files.
If this tool is an Add-in, how can I insert this new files into a current
project using code...????
...
|
by: Jibber |
last post by:
Sorry for the similar post, but I have clarified the problem a bit more. The
issue is: how do I use an extended .NET control in a webform using VS2005.
In my case, I am overriding the Render for a...
|
by: Shelly |
last post by:
Please tell me the best way to do this (I am still new to VB.NET and ASPX)
as this should very easy for anyone with any experience to answer.
In the code behind file (filename.aspx.vb), I import...
|
by: nguillot |
last post by:
Hello.
If I have the following classes:
class B {};
typedef B tB;
if A is:
class A
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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...
|
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,...
|
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,...
|
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...
| |