Click here to Skip to main content
15,499,003 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Pin
Pete O'Hanlon3-Sep-12 23:20
mvaPete O'Hanlon3-Sep-12 23:20 
GeneralRe: C# Pin
Dave Kreskowiak4-Sep-12 3:08
mveDave Kreskowiak4-Sep-12 3:08 
QuestionSet a Value to Crystal Report Field using C# Pin
lesponce1-Sep-12 9:25
Memberlesponce1-Sep-12 9:25 
AnswerRe: Set a Value to Crystal Report Field using C# Pin
Mycroft Holmes1-Sep-12 14:59
professionalMycroft Holmes1-Sep-12 14:59 
GeneralRe: Set a Value to Crystal Report Field using C# Pin
lesponce1-Sep-12 19:58
Memberlesponce1-Sep-12 19:58 
QuestionC# application obtain results of program it executes Pin
dcof1-Sep-12 8:43
Memberdcof1-Sep-12 8:43 
AnswerRe: C# application obtain results of program it executes Pin
Shameel1-Sep-12 9:23
professionalShameel1-Sep-12 9:23 
AnswerRe: C# application obtain results of program it executes Pin
dbaseman1-Sep-12 11:21
Memberdbaseman1-Sep-12 11:21 
I think it would be better to reorganize your code. The console project you wrote really should be a library/API, if you're going to consume it from another application (ie, the windows service).

I'd suggest converting your console application into a class library project. Then, both the windows service and console can create their own implementations. So, let's say you execute the console app like this:

myconsoleapp.exe "servicename"

Then, create a library project with a public method "RunService":

C#
public class MyAPI
{
    public string ExecuteService(string serviceName)
    {
        // logic goes here
    }
}

Now both the console app, and your new windows service can consume MyAPI as needed.
GeneralRe: C# application obtain results of program it executes Pin
jschell1-Sep-12 12:28
Memberjschell1-Sep-12 12:28 
GeneralRe: C# application obtain results of program it executes Pin
dbaseman1-Sep-12 18:37
Memberdbaseman1-Sep-12 18:37 
GeneralRe: C# application obtain results of program it executes Pin
jschell2-Sep-12 8:20
Memberjschell2-Sep-12 8:20 
AnswerRe: C# application obtain results of program it executes Pin
Mycroft Holmes1-Sep-12 14:54
professionalMycroft Holmes1-Sep-12 14:54 
QuestionC# obtain results of program it calls Pin
dcof1-Sep-12 8:41
Memberdcof1-Sep-12 8:41 
AnswerRe: C# obtain results of program it calls Pin
AmitGajjar1-Sep-12 17:19
professionalAmitGajjar1-Sep-12 17:19 
AnswerRe: C# obtain results of program it calls Pin
BobJanova3-Sep-12 2:36
MemberBobJanova3-Sep-12 2:36 
QuestionC# console log file Pin
dcof1-Sep-12 8:07
Memberdcof1-Sep-12 8:07 
AnswerRe: C# console log file Pin
Dr.Walt Fair, PE1-Sep-12 8:39
professionalDr.Walt Fair, PE1-Sep-12 8:39 
AnswerRe: C# console log file Pin
AmitGajjar1-Sep-12 17:27
professionalAmitGajjar1-Sep-12 17:27 
AnswerRe: C# console log file Pin
PIEBALDconsult1-Sep-12 18:44
professionalPIEBALDconsult1-Sep-12 18:44 
QuestionC# 2008 dynamic path Pin
sc steinhayse1-Sep-12 7:36
Membersc steinhayse1-Sep-12 7:36 
AnswerRe: C# 2008 dynamic path Pin
PIEBALDconsult1-Sep-12 8:03
professionalPIEBALDconsult1-Sep-12 8:03 
GeneralRe: C# 2008 dynamic path Pin
sc steinhayse1-Sep-12 8:09
Membersc steinhayse1-Sep-12 8:09 
GeneralRe: C# 2008 dynamic path Pin
PIEBALDconsult1-Sep-12 8:26
professionalPIEBALDconsult1-Sep-12 8:26 
GeneralRe: C# 2008 dynamic path Pin
Mycroft Holmes1-Sep-12 14:43
professionalMycroft Holmes1-Sep-12 14:43 
QuestionSelect next control if control is in groupbox? Pin
GrooverFromHolland1-Sep-12 1:47
MemberGrooverFromHolland1-Sep-12 1:47 

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.