Click here to Skip to main content
15,921,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: Math.Something -- Multiple of 10 Pin
drew.perkins3-Oct-06 6:40
drew.perkins3-Oct-06 6:40 
GeneralRe: Math.Something -- Multiple of 10 [modified] Pin
Alaric_3-Oct-06 7:55
professionalAlaric_3-Oct-06 7:55 
AnswerRe: Math.Something -- Multiple of 10 Pin
User 66583-Oct-06 10:28
User 66583-Oct-06 10:28 
QuestionHelp with Getting info on a running process Pin
UTRocketFan3-Oct-06 5:22
UTRocketFan3-Oct-06 5:22 
AnswerRe: Help with Getting info on a running process Pin
Michael Potter3-Oct-06 6:21
Michael Potter3-Oct-06 6:21 
GeneralRe: Help with Getting info on a running process Pin
UTRocketFan3-Oct-06 7:25
UTRocketFan3-Oct-06 7:25 
AnswerRe: Help with Getting info on a running process Pin
Nader Elshehabi3-Oct-06 6:22
Nader Elshehabi3-Oct-06 6:22 
QuestionQuestion on Visual Studio & Project References Pin
malharone3-Oct-06 5:17
malharone3-Oct-06 5:17 
The project I'm currently working on high level has 3 primary projects:

<solution>
|-> Definitions [dll]
|-> ClientConsole [exe]
|-> ServerConsole [exe]

Definitions project has no references. ClientConsole is an exe that will be distributed on clients and references "Definitions" project.

ServerConsole is an exe that will be distributed on server(s). But the requirements allow, server to present itself as a client and thus be an acting "client".

My question:
How do I add "ClientConsole" as a reference to the "ServerConsole" project as the server needs to be able to instantiate the client related objects (UI, other classes). The "Add Reference" fails since "ClientConsole" is of type exe.

I can NOT make "ClientConsole" a class-library and add a new additional EXE project just for launching the ClientConsole.

I have tried all of the following:
1. Keep ClientConsole an exe, and as a "Post build event" on "ClientConsole" project to copy and rename itself as a DLL to the references folder of "ServerConsole" project. This does not work because ...
a) Visual Studio locks the DLLs and thus the new DLL cannot be copied to the destiation folder
b) Even if VS does not lock the file, the intellisense will not reflect the changes in ClientConsole when editing code for ServerConsole when "ClientConsole" is updated

2. Change ClientConsole to a DLL project, and add it as a project reference to ServerConsole. I'll have solved my issue with intellisense and VS picking up the correct DLLs. And as an icing on the cake, set the "post build event" on "ServerConsole" project to rename the "ClientConsole.dll" file to "ClientConsole.exe". This is an ideal solution for me, but this also bomb because ...
a) when the client is compiled as a DLL, the entry poing info "Main()" is not defined so renaming the DLL to an EXE throws error that it's an invalid Win32 app.


I'm sure I'm not the first one to encounter this error. What do you suggest?

Thanks,

- Malhar
AnswerRe: Question on Visual Studio & Project References Pin
Colin Angus Mackay3-Oct-06 5:25
Colin Angus Mackay3-Oct-06 5:25 
GeneralRe: Question on Visual Studio & Project References Pin
malharone3-Oct-06 5:39
malharone3-Oct-06 5:39 
GeneralRe: Question on Visual Studio & Project References Pin
malharone3-Oct-06 6:16
malharone3-Oct-06 6:16 
QuestionBindingsource C# Adding New Event Pin
JensB3-Oct-06 4:14
JensB3-Oct-06 4:14 
AnswerRe: Bindingsource C# Adding New Event Pin
Nader Elshehabi3-Oct-06 4:28
Nader Elshehabi3-Oct-06 4:28 
Questionlevel of run in win XP Pin
bspman3-Oct-06 3:51
bspman3-Oct-06 3:51 
QuestionRe: level of run in win XP Pin
Nader Elshehabi3-Oct-06 4:12
Nader Elshehabi3-Oct-06 4:12 
AnswerRe: level of run in win XP Pin
bspman3-Oct-06 6:43
bspman3-Oct-06 6:43 
GeneralRe: level of run in win XP Pin
Dave Kreskowiak3-Oct-06 9:15
mveDave Kreskowiak3-Oct-06 9:15 
GeneralRe: level of run in win XP Pin
Nader Elshehabi3-Oct-06 10:20
Nader Elshehabi3-Oct-06 10:20 
AnswerRe: level of run in win XP Pin
Thomas Stockwell3-Oct-06 14:50
professionalThomas Stockwell3-Oct-06 14:50 
Questionxml export to excell in c# [modified] Pin
Support1233-Oct-06 3:41
Support1233-Oct-06 3:41 
AnswerRe: xml export to excell in c# Pin
Nader Elshehabi3-Oct-06 4:04
Nader Elshehabi3-Oct-06 4:04 
QuestionAgain -recursively search directories Pin
iamnew2C#3-Oct-06 3:13
iamnew2C#3-Oct-06 3:13 
AnswerRe: Again -recursively search directories Pin
Nader Elshehabi3-Oct-06 4:18
Nader Elshehabi3-Oct-06 4:18 
AnswerRe: Again -recursively search directories Pin
Eric Dahlvang3-Oct-06 4:23
Eric Dahlvang3-Oct-06 4:23 
GeneralHelp - Displayin the ResultsRe: Again -recursively search directories Pin
iamnew2C#3-Oct-06 5:58
iamnew2C#3-Oct-06 5:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.