Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: chat program Pin
Tomas Petricek24-Apr-04 5:10
Tomas Petricek24-Apr-04 5:10 
GeneralRe: chat program Pin
Heath Stewart24-Apr-04 10:28
protectorHeath Stewart24-Apr-04 10:28 
GeneralRe: chat program Pin
Tomas Petricek24-Apr-04 10:39
Tomas Petricek24-Apr-04 10:39 
GeneralRe: chat program Pin
Heath Stewart25-Apr-04 4:09
protectorHeath Stewart25-Apr-04 4:09 
QuestionHow to capture IE output of displaying an XML file? Pin
forgiven4u23-Apr-04 14:28
forgiven4u23-Apr-04 14:28 
AnswerRe: How to capture IE output of displaying an XML file? Pin
Heath Stewart23-Apr-04 16:07
protectorHeath Stewart23-Apr-04 16:07 
GeneralRe: How to capture IE output of displaying an XML file? Pin
forgiven4u24-Apr-04 14:59
forgiven4u24-Apr-04 14:59 
GeneralRe: How to capture IE output of displaying an XML file? Pin
Heath Stewart25-Apr-04 4:19
protectorHeath Stewart25-Apr-04 4:19 
forgiven4u wrote:
first I have to use IE for syntax checking

That's what I'm getting at - the XML classes in the .NET Framework check for well-formedness and perform schema validation if you want. This will return you were the error is and let you fix it. You're really taking a backward approach to doing something so simple. Remember, IE isn't even the one validating your XML well-formedness (it doesn't do schema validation) - it's MSXML which IE uses.

forgiven4u wrote:
the thing is that I want to know how get an output of any program that you launch within the code.

There is no universal way of doing this. Sometimes you can redirect stdout and stderr, sometimes you can use the Windows APIs to get Window text, and sometimes you must read a DOM. Every application is designed differently.

forgiven4u wrote:
say that IE returned an error, can I detect that and show it to the user?

If you used the XML classes in .NET, you wouldn't have to worry about this because any invalid XML will throw an exception while loading, giving you the information to present to the user so they can fix it. Besides, if IE is visible, it will display the error.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to capture IE output of displaying an XML file? Pin
forgiven4u25-Apr-04 5:07
forgiven4u25-Apr-04 5:07 
Generaldynamically add/remove reference for a specific configuration Pin
Glaxo23-Apr-04 13:49
Glaxo23-Apr-04 13:49 
GeneralRe: dynamically add/remove reference for a specific configuration Pin
Daniel Turini23-Apr-04 14:21
Daniel Turini23-Apr-04 14:21 
GeneralRe: dynamically add/remove reference for a specific configuration Pin
leppie23-Apr-04 20:55
leppie23-Apr-04 20:55 
Questionclicking an anchor (link) with AxWebBrowser? Pin
synthmusic23-Apr-04 12:22
synthmusic23-Apr-04 12:22 
AnswerRe: clicking an anchor (link) with AxWebBrowser? Pin
Heath Stewart23-Apr-04 15:59
protectorHeath Stewart23-Apr-04 15:59 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Anonymous26-Apr-04 8:58
Anonymous26-Apr-04 8:58 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Heath Stewart26-Apr-04 9:24
protectorHeath Stewart26-Apr-04 9:24 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Anonymous26-Apr-04 10:04
Anonymous26-Apr-04 10:04 
GeneralRe: clicking an anchor (link) with AxWebBrowser? Pin
Heath Stewart26-Apr-04 10:08
protectorHeath Stewart26-Apr-04 10:08 
GeneralCreating a database manager Pin
showboat202323-Apr-04 12:00
showboat202323-Apr-04 12:00 
GeneralRe: Creating a database manager Pin
Heath Stewart23-Apr-04 15:56
protectorHeath Stewart23-Apr-04 15:56 
GeneralPassing a Class instance to a method... Pin
hammackj23-Apr-04 10:38
hammackj23-Apr-04 10:38 
GeneralRe: Passing a Class instance to a method... Pin
Heath Stewart23-Apr-04 10:41
protectorHeath Stewart23-Apr-04 10:41 
GeneralRe: Passing a Class instance to a method... Pin
hammackj23-Apr-04 10:51
hammackj23-Apr-04 10:51 
GeneralRe: Passing a Class instance to a method... Pin
Werdna23-Apr-04 16:32
Werdna23-Apr-04 16:32 
GeneralRe: Passing a Class instance to a method... Pin
Heath Stewart24-Apr-04 8:14
protectorHeath Stewart24-Apr-04 8:14 

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.