Data passing between projects in a solution


A

Aku

Hi,
I have a solution with two projects in it.
ProjectA has data which is needed in ProjectB.
How do I pass this data to ProjectB?
Thank you!


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Ad

Advertisements

S

Shakir Hussain

Project A can be exe and Project B can be dll or vice versa.

Add reference of Project B to Project A. Pass the data through parameters.
If the data size is big, you can pass as structures.
 
M

morgal

-----Original Message-----

Hi,
I have a solution with two projects in it.
ProjectA has data which is needed in ProjectB.
How do I pass this data to ProjectB?
Thank you!


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
There are several ways of doing this:

1 (if your projects are distinct) have a designated file
and location to write data to and read from.

2 (if your projects are distinct) You can use sockets

3 (if your projects are distinct) use network DDE

4 (if they are dependent) use DDE

5 (if they are dependent) use OLE

6 (if they are dependent) use Out of process/in process
servers (exe/dll)

and yes there are still a further host of ways to do what
you want.
 
G

Guest

Hi Aku,

Assuming you had 2 projects (1 dll and 1 exe).

dll project - Solution.ProjectA
exe project - Solution.ProjectB

Add references to the dll in ProjectB.

Then code this:

using Solution.ProjectA; // at the top, as a directive

In the code, you can call whatever inside ProjectA.

Hope it helps. Correct me if i am wrong.
 
Ad

Advertisements

A

Aku

Lot of thanks for all (Shak, Tamir, Morgal,Ching) your replies !!
Especially Ching's detailed answer; Referencing is the solution for my
case :) 1 exe & 1 dll)!
;-)) Aku

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top