I have several Projects in a Solution.
How can i call a variable from other Project..?
..or can i share a variable between two Projects..?
Many thanks for any help....
Printable View
I have several Projects in a Solution.
How can i call a variable from other Project..?
..or can i share a variable between two Projects..?
Many thanks for any help....
Expose it as a public property and get a reference to it. The bigger question is why?
Project A is calling Project B and want B to open with dataset automatically filled by certain record (Sql2k)...
Maybe i have wrong approach when concidering shared variable..?
What types of projects are they (exe,dll)?
A dll would just reference and pass. If you mean exe then you'd need to use remoting, sockets, or write the dataset to xml and pass the file location (or xml string) via the command line param.
They're exe projects and Windows Application.
In Project A there is a record ID selected and it should be sent to B to fill a dataset there... What would you recommend..?
Thks this far....
Are project A and B assumed to be on the same machine? How often will they communicate? Does the communication need to be two-way?
A and B exe files are in same folder.
End user starts the communication i.e. it may happend whenever.
Communication needs to be one-way only.
Passing something via the commandline is probably the easiest route.
Hi,
Is the following too cumbersome?
In project A
Store the ID in a separate table (which will contain only that information)
In Project B
Get that ID from the table.