 |
| VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1).
** Please don't post code questions here **
For issues specific to a particular language in .NET, please see the other forum categories. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 25th, 2006, 10:16 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How do i Call one project to another project
Hi All
I have created two different project in vb.net(windows based), i am trying to call one project in another project,
i call one project to another project and set as a start up project but from startup project i want to call another proj. please help me to solve this problem
thanks in advance
|
|

November 25th, 2006, 01:40 PM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi ,U must use reflection service to this.Go ahead and get the idea.
remember u must be comfortable with how to use REFLECTION to load a assembly ,getting types form that assembly then invoking methods
|
|

November 25th, 2006, 10:31 PM
|
|
Registered User
|
|
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
you can usd the namespace system.Diagnostics.Process
the format is:system.Diagnostics.Process.Start(execute filename)
|
|

November 29th, 2006, 02:07 AM
|
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You might want to give us a little more information.
One way to do this is to have an exe project (windows forms) and one or more dll (library) projects. You reference the dll assemblies from the exe project, and use the components within them as needed. Additionally, a dll can also reference other dlls to access functionality within them.
Woody Z http://www.learntoprogramnow.com
|
|

December 4th, 2006, 06:53 AM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I dont want to run EXE i want to make use of the .net dll objects and methods in VB6 or vbscript
Quote:
quote:Originally posted by yuetqu
you can usd the namespace system.Diagnostics.Process
the format is:system.Diagnostics.Process.Start(execute filename)
|
|
|

December 4th, 2006, 12:37 PM
|
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This is called Com Interop.
You need to create a Com Callable Wrapper for any functionality you want to expose from a .NET class. It is a fairly advanced topic, and you will have a bit of studying to do.
There are lots of tutorials on the Web on how to do this.
Woody Z http://www.learntoprogramnow.com
|
|

December 4th, 2006, 08:56 PM
|
|
Registered User
|
|
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
that is easy,you just need to import the dll files to your programe,and then use the property and methoud of this class.
|
|

December 5th, 2006, 10:00 AM
|
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by yuetqu
that is easy,you just need to import the dll files to your programe,and then use the property and methoud of this class.
|
You have it backwards. He wants to use the .NET dll in VB6 and VBScript.
Woody Z http://www.learntoprogramnow.com
|
|

December 5th, 2006, 10:02 AM
|
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by SriRamaKrishna
hi ,U must use reflection service to this.Go ahead and get the idea.
remember u must be comfortable with how to use REFLECTION to load a assembly ,getting types form that assembly then invoking methods
|
You do not need to use reflection to use one .NET project in another .NET project. You merely reference the one from the other, and optionally "import" it into the classes where you want to make use of the other dll.
Woody Z http://www.learntoprogramnow.com
|
|
 |