Re: Integrating VB 2005 module.
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Aug 2007 15:42:12 -0400
Assuming you know where the netmodule is at compile time, you should be
able to tweak the csc task to add the /addmodule command line switch and
then point to your VB module.
This is assuming you are talking about a netmodule, not a VB module
file. If you are talking about a module file, then you will have to compile
it to a netmodule (you can use the command line VB compiler to do this) and
then proceed with the instructions above to integrate it into your C#
project.
However, you will not be able to reference the functions while you code
your project, which I am pretty sure is what you don't want.
If you want to integrate those functions into your C# project, then you
either have to compile it into an assembly (which I am curious why you can't
do that) or convert the code to C# and include that in your project.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"RP" <rpk.general@xxxxxxxxx> wrote in message
news:1187119862.319411.241220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a module written using VB 2005 which contains many ready to use
functions. For some specific reasons, I cannot make it a DLL. Can I
integrate this module in my C# project? If yes, how.
.
- Follow-Ups:
- Re: Integrating VB 2005 module.
- From: RP
- Re: Integrating VB 2005 module.
- References:
- Integrating VB 2005 module.
- From: RP
- Integrating VB 2005 module.
- Prev by Date: Re: unbuffered file IO?
- Next by Date: Re: Clear all TextBox on a Form
- Previous by thread: Integrating VB 2005 module.
- Next by thread: Re: Integrating VB 2005 module.
- Index(es):
Relevant Pages
|