|
i have made a program that works as follows
1->i browse some csharp project and open the main .cs file
2->the program compiles that project and reports errors as we compile in .net compiler
i want to make my program work in this order
1)select a project of csharp
2)the program should divide the project into independently compileable parts
3)then it should display a list of those parts
4)on selecting one part it should compile that part
5)then after compiling all parts on selecting one by one it should link all the seperately compiled parts to generate exe and show the output
jadoo
|
|
|
|
|
Why not wait for a reply to your original posting before asking again!!
|
|
|
|
|
Hi:
I am programming in C# and wondering if there is a simple way to have direct communications between 2 programs on the same PC.
Here's the scenario I am thinking of:
1. Program a and program b are installed in a machine
2. progA is launched
3. progA needs some information and launches progB if needed. If progB is already launched, progA does not relaunch progB, but uses the active instance of it.
4. progB provides the information to progA.
5. progB is available for any other program progC etc. that want to call it for information
6. progB terminates only when the machine is rebooted.
I hope my weak terminology is still comprehensible. Please could you give me tips on how to launch progB from other programs and how to leave it on (not be a child of the lauuncher), and how to initate communication with progB if an instance is already running.
Regards, smurfy
|
|
|
|
|
This seems to be a typical multi-process application. I prefer to implement them as server/client.
1) Build Program B as a service on Windows. Program A(or C) can easily check if the service is running. Launch the service if it's not running.
2) Implement an IPC channel between Program B and Program A(or C).
smurfy34 wrote: Please could you give me tips on how to launch progB from other programs and how to leave it on (not be a child of the lauuncher)
Launch Program B as a service or spawn it as a separate process. Either way, Program B will be on even when you close Program A.
smurfy34 wrote: how to initate communication with progB if an instance is already running.
Through IPC, like socket or shared memory.
Best,
Jun
|
|
|
|
|
is it possible to divide a large csharp project into smaller parts (at runtime)that can be compiled independently..........if possible then how to make parts and how to link those compiled parts to generate an exe of the project
jadoo
|
|
|
|
|
I'm not positive, but I think afte the 1st compile, only the changed parts are recompiled on build unless you specifically request a complete rebuild.
|
|
|
|
|
|
i am not using command line i am using the compiler class
|
|
|
|
|
Sorry, I would have replied sooner but I was waiting for you to ask the question again in another post.
Unless you are writing a compiler, ie. re-inventing the wheel, then use what is available. You can invoke the csc.exe program from within your code.
|
|
|
|
|
i am going to implement distributed compilation of csharp project and i cant manage to divide huge project into smaller compileable parts..........i need some help on it...........i have posted it again in detail which is
i have made a program that works as follows
1->i browse some csharp project and open the main .cs file
2->the program compiles that project and reports errors as we compile in .net compiler
i want to make my program work in this order
1)select a project of csharp
2)the program should divide the project into independently compileable parts
3)then it should display a list of those parts
4)on selecting one part it should compile that part
5)then after compiling all parts on selecting one by one it should link all the seperately compiled parts to generate exe and show the output
jaadoo
|
|
|
|
|
Hi guys! Help please I am a newbie in C#, I have been working on an application and was working fine on MS Visual C# .Net and then yesterday I downloaded and started converted the application to MS Visual C# 2005. Now on one of the forms I am getting an error when I try to open the form. i.e. form.showDialog(); the error says Invalid OperationException was unhandled and that DragDrop registration did not succeed. Please help! what does this error mean?
sasa
|
|
|
|
|
I Posted a lot of times asking for this, and searched in many ways and I could finally find this article!!
With this you can read a ListView and a Treeview from another process.
<a href="http://dotnetjunkies.com/WebLog/chris.taylor/archive/2004/05/31/14828.aspx" rel="nofollow">http://dotnetjunkies.com/WebLog/chris.taylor/archive/2004/05/31/14828.aspx</a>[<a href="http://dotnetjunkies.com/WebLog/chris.taylor/archive/2004/05/31/14828.aspx" target="_blank" rel="nofollow" title="New Window">^</a>]
All Credits to Chris Taylor
Thanks very much!
And I hope it helps a lot of people!
Best Regards
|
|
|
|
|
Hi everyone, I need to print the content of a RichTextBox, I know how do it, but when I assign the backcolor, when I print him, the backcolor isn't draw.
How I can do this?
Greetings and thanks
|
|
|
|
|
|
I like the enterprise library model. You decide whether to catch the exception or rethrow based on configuration.
Logifusion[^]
|
|
|
|
|
Colin Angus Mackay wrote: Unusually for me I'm asking a question...
There's nothing wrong with that! That's what these forums are for, after all.
I will catch exceptions if there is something I can or should do in response to that exception. Sometimes I'll just catch an exception, log the exception details somewhere, and then throw it back up the call stack so that other call sites can do what they need to do with it.
Enjoy the weekend,
Josh
|
|
|
|
|
Most simple exceptions like validating input and the like I do on the spot. Most complicated situation what I run into in libraries, I'll usually let bubble to the using application, so they can be logged. Those types of exceptions I like to have a full stack trace for tracking the application break.
I guess for me, it all depends on whether or not it's an exception I'll want to investigate and need all the information I can get. Most exceptions in an API library I let bubble.
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
|
|
Yeah me too, I usually find what I'm looking for in articles or google. Most of what I can't find there, I assume nobody has attempted. And I assumed that was a response to Josh.
But it's lots of fun surfing for questions I can answer, helps stroke my ego.
Try code model generation tools at BoneSoft.com.
-- modified at 12:18 Friday 23rd June, 2006
Wierd, this was supposed to be in response to your first response... CodeProject Help!
|
|
|
|
|
|
|
Exceptions are debug-time notices to the users of your code
|
|
|
|
|
Hi,
i have a folder view which list all my folders in a tree view form. My requirement is, after selecting a folder if i send a delete command it has to delete all folders and its contents. Problem is only after deleting the files in the subfolders,i can delete the folder. i need to do an recursive search. Urgent.... plzzzzzzzz reply. I am using c# windows application.
e.g
1
11
12
121
122
13
say my tree view looks like this... if i delete the folder 1. it should find out all the subfolders. Should delete 13 first and 122 and then 121 and 12 and 11.
plzzzzzzz do guide me... Thanks in advance...
|
|
|
|
|
private void DeleteStuff(TreeNode root) {
foreach (TreeNode tn in root.Nodes) {
DeleteStuff(tn);
}
}
Try code model generation tools at BoneSoft.com.
|
|
|
|