Click here to Skip to main content
16,020,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm new at this level and really need some help.
I got 2 separate projects that need be put together. 1 win app. and 1 console app. The console app. is going to do some work in the background. Nothin visual at all, just running code.
My idea is to put the console project under the win solution.
Like this:
I got 1 solution and 2 projects. 1 project is windows based and the other is console based. The win project is dependent on the console project.
Question: How do I include the console project into the win project, so if the win project starts, the console project also starts? The console project is code that will run in the background that the win project is dependent on.
Best regards to you all.
Posted
Updated 13-Nov-10 7:23am
v2

Why don't you just start the console app everytime the win app is started? Additionally you could check if the console app is running using a timer.
 
Share this answer
 
More specific. Do I add the console project into the win solution? then howe do I start the console program. Do I start it in the win project(constructor) under InitializeComponent() by caling the Main() in console project?
 
Share this answer
 
Comments
JF2015 13-Nov-10 13:36pm    
Ok. So I guess the console app is an *.exe and the window app is an *.exe? It does not really matter whic project you add to which other one. What you need is: One solution that contains both applications. To start the console app from the window app, just use the Process.Start("consolapp.exe") method.
Everything is ready and I want to try it out together first. Havent compiled it yet. The console app. delivers data to win app. throug som methods. So thats where I am at the moment. Howe to I go from here?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900