By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,365 Members | 3,095 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,365 IT Pros & Developers. It's quick & easy.

Data passing between projects in a solution

P: n/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!
Nov 16 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.

--
Shak
(Houston)


"Aku" <an*******@devdex.com> wrote in message
news:#V**************@tk2msftngp13.phx.gbl...

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!

Nov 16 '05 #2

P: n/a
Make Reference of ProjectB in ProjectA

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Aku" <an*******@devdex.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

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!

Nov 16 '05 #3

P: n/a
-----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.
Nov 16 '05 #4

P: n/a
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.
--
Regards,
Chua Wen Ching :)
"morgal" wrote:
-----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.

Nov 16 '05 #5

P: n/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!
Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.