473,320 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Data passing between projects in a solution

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
5 7329
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
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
-----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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rob Oliver | last post by:
Hi, I've seen a walkthrough for passing data from a setup project to a custom action (an application) with an InstallClass. I am curious though--can the data also be intercepted by a custom...
16
by: Robert W. | last post by:
I'm building a solution that has 1 component for the Desktop and 1 component for the Pocket PC. (Though this isn't a mobile question). I have a data library that will be shared on both platforms....
3
by: epigram | last post by:
I've been creating some toy ASP.NET apps in an effort to understand the technology. I've something odd with regards to project/solution creation. If you create a new asp.net application, it...
10
by: Conan | last post by:
Hi, I am having a problem with .Net / Visual Studio that I can't find the cause of. I have searched newsgroups and the web and find people with similar but different (I think) problems. Here's...
3
by: Marc Castrechini | last post by:
First off this is a great reference for passing data between the Data Access and Business Layers:...
1
by: SteveDouglas | last post by:
Hi all, I am currently writing an application in VB.NET that has a lot of controls (treeviews/listviews/labels and so forth) that represent "things" that need to be draggable from place to place,...
6
by: Pat B | last post by:
Hi, I'm writing my own implementation of the Gnutella P2P protocol using C#. I have implemented it using BeginReceive and EndReceive calls so as not to block when waiting for data from the...
3
by: Manikandan | last post by:
Hi, I'm copying projects from a solution in the vss. In my local system i created solution ,added that project(make modification related to solution) When i added this solution to vss, projects...
11
by: MikeY | last post by:
Perhaps someone can point me in the right direction in finding code, or finding reading information on how to pass information (ie. ArrayList, string, etc) between two running window applications,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.