Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert NTP to UTC datetime Pin
BillWoodruff8-Dec-14 1:55
professionalBillWoodruff8-Dec-14 1:55 
QuestionDatagridview with tabcontrol in windows application Pin
Rahulmishra0117-Dec-14 19:07
Rahulmishra0117-Dec-14 19:07 
AnswerRe: Datagridview with tabcontrol in windows application Pin
syed shanu7-Dec-14 21:07
mvasyed shanu7-Dec-14 21:07 
Questionnavigation page control, library extention for c# winforms Pin
KasGuest7-Dec-14 18:00
KasGuest7-Dec-14 18:00 
QuestionRe: navigation page control, library extention for c# winforms Pin
Richard MacCutchan7-Dec-14 22:56
mveRichard MacCutchan7-Dec-14 22:56 
AnswerRe: navigation page control, library extention for c# winforms Pin
KasGuest8-Dec-14 22:53
KasGuest8-Dec-14 22:53 
GeneralRe: navigation page control, library extention for c# winforms Pin
Richard MacCutchan8-Dec-14 23:01
mveRichard MacCutchan8-Dec-14 23:01 
Question[SOLVED] Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415287-Dec-14 13:32
Ray415287-Dec-14 13:32 
Hello Everyone,

I have run into a coding problem that has been driving me crazy for two days. I am running a console project from within my C# project using Process.Start() and trying to read the output into a string in my project. I have tried everything that I have found on the internet over the last two days and nothing works. Always returning an empty string. I have tried both synchronous and asynchronous methods and everything in between ie reading standarderror as well as standoutput. The exe that is being called is codegen.exe which is the compiled binary for creating a song fingerprint in Echoprint.

I can run this from a code prompt and it works perfectly every time outputting a fingerprint string. I am running windows 7 / VS2013 Express. The funny thing is, I have the source code for the codegen.exe and the data being output to the console is using nothing other than printf statements so there is nothing surprising going on there.

I did try doing a simple call to cmd.exe with "dir" argument and it responds correctly and fills my string with its output.

I am hoping that someone can suggest something that I have not yet tried, however I have tried all the different examples from MSDN as well as the internet.

Perhaps some one has had a similar issue and can offer some suggestions or point me in a different direction.

Any help would be appreciated.
Ray H


modified 8-Dec-14 11:21am.

AnswerRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
BillWoodruff7-Dec-14 14:12
professionalBillWoodruff7-Dec-14 14:12 
GeneralRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415287-Dec-14 15:36
Ray415287-Dec-14 15:36 
GeneralRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415287-Dec-14 15:38
Ray415287-Dec-14 15:38 
GeneralRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
BillWoodruff7-Dec-14 18:21
professionalBillWoodruff7-Dec-14 18:21 
AnswerRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Harsh Athalye7-Dec-14 17:13
Harsh Athalye7-Dec-14 17:13 
General[SOLVED]Re: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415288-Dec-14 5:20
Ray415288-Dec-14 5:20 
GeneralRe: [SOLVED]Re: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Harsh Athalye8-Dec-14 17:59
Harsh Athalye8-Dec-14 17:59 
Questioni want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 6:21
Keshav Shivhare7-Dec-14 6:21 
SuggestionRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard MacCutchan7-Dec-14 6:42
mveRichard MacCutchan7-Dec-14 6:42 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 6:53
Keshav Shivhare7-Dec-14 6:53 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard MacCutchan7-Dec-14 7:00
mveRichard MacCutchan7-Dec-14 7:00 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 7:47
Keshav Shivhare7-Dec-14 7:47 
AnswerRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu7-Dec-14 13:08
mvasyed shanu7-Dec-14 13:08 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare8-Dec-14 3:12
Keshav Shivhare8-Dec-14 3:12 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu8-Dec-14 13:11
mvasyed shanu8-Dec-14 13:11 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu8-Dec-14 13:16
mvasyed shanu8-Dec-14 13:16 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard Deeming9-Dec-14 1:51
mveRichard Deeming9-Dec-14 1:51 

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.