Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old November 25th, 2006, 10:16 AM
Authorized User
 
Join Date: Jul 2006
Location: Mumbai, Maharastra, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to kau_shuk
Default 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

  #2 (permalink)  
Old November 25th, 2006, 01:40 PM
Authorized User
 
Join Date: Sep 2006
Location: , , India.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #3 (permalink)  
Old November 25th, 2006, 10:31 PM
Registered User
 
Join Date: Aug 2006
Location: , , China.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can usd the namespace system.Diagnostics.Process

the format is:system.Diagnostics.Process.Start(execute filename)

  #4 (permalink)  
Old November 29th, 2006, 02:07 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
  #5 (permalink)  
Old December 4th, 2006, 06:53 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)

  #6 (permalink)  
Old December 4th, 2006, 12:37 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
  #7 (permalink)  
Old December 4th, 2006, 08:56 PM
Registered User
 
Join Date: Aug 2006
Location: , , China.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

that is easy,you just need to import the dll files to your programe,and then use the property and methoud of this class.

  #8 (permalink)  
Old December 5th, 2006, 10:00 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
  #9 (permalink)  
Old December 5th, 2006, 10:02 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call one Project to Anothe in C#. nomanforu VS.NET 2002/2003 1 May 29th, 2008 11:53 AM
Website project vs Web Application Project... thenoseknows ASP.NET 2.0 Professional 0 January 14th, 2007 09:47 PM
UserControl of One Project in Other Project gadhiav ASP.NET 1.0 and 1.1 Professional 2 February 18th, 2006 07:51 AM
Add report of one project into another project tejaswibv Crystal Reports 0 July 13th, 2005 04:40 AM
From 1 project to get access to another project hplim18 Pro VB.NET 2002/2003 0 March 30th, 2004 10:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.