473,499 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Console Window and XmlSchema

Good Afternoon:

I have two questions I was hoping someone can help me with.

1. I've created a app that creates a xml file; the project was constructed
as a console window. I want to know is there anyway to suppress the console
window from showing? One of the options is I have is to generate the xml file
without showing the console window. Even though I'm not calling the Console
it still flashes. Any suggestions. I plan on running this exe as a scheduled
task. Is there a better method in doing that; like should it be a library
(dll) file? Would a dll run as a scheduled task?

2. The xml file that I'm creating needs a schema. Is there any good
information on how to create the schema for such a file? It's a simple xml
file with that's in the following format:

<main>
<record>
<name>Joe Smith</name>
.... other elements
</record>
<record>....
</main>
--
TC
Jun 27 '08 #1
3 1366

"Terrance" <Te******@discussions.microsoft.comwrote in message
news:26**********************************@microsof t.com...
Good Afternoon:

I have two questions I was hoping someone can help me with.

1. I've created a app that creates a xml file; the project was constructed
as a console window. I want to know is there anyway to suppress the
console
window from showing? One of the options is I have is to generate the xml
file
without showing the console window. Even though I'm not calling the
Console
it still flashes. Any suggestions. I plan on running this exe as a
scheduled
task. Is there a better method in doing that; like should it be a library
(dll) file? Would a dll run as a scheduled task?
What do you care if the Console application is showing the console?
So, you have it running as an unattened scheduled task, there is nothing
wrong with that.

No, you can't schedule a DLL to run by itself. A DLL must be hosted by an
EXE that's using the DLL. The Task Scheduler knows nothing a about the DLL
interfaces. Only a program/exe that was written by the developer to use the
DLL would know about the DLL's interfaces and methods, and the Task
Scheduler doesn't know them.
>
2. The xml file that I'm creating needs a schema. Is there any good
information on how to create the schema for such a file? It's a simple xml
file with that's in the following format:
There are plenty of articles on Google or Dogpile.com

Jun 27 '08 #2
I'm looking for some examples for creating a schema programmatically. I've
searched using Yahoo and found articles in creating a schema in the IDE of VS
but nothing programmatically.

The reason I don't want the console to flash was because it may be
distracting for the user. I'm trying to make the app user friendly as
possible.
--
TC
"Mr. Arnold" wrote:
>
"Terrance" <Te******@discussions.microsoft.comwrote in message
news:26**********************************@microsof t.com...
Good Afternoon:

I have two questions I was hoping someone can help me with.

1. I've created a app that creates a xml file; the project was constructed
as a console window. I want to know is there anyway to suppress the
console
window from showing? One of the options is I have is to generate the xml
file
without showing the console window. Even though I'm not calling the
Console
it still flashes. Any suggestions. I plan on running this exe as a
scheduled
task. Is there a better method in doing that; like should it be a library
(dll) file? Would a dll run as a scheduled task?

What do you care if the Console application is showing the console?
So, you have it running as an unattened scheduled task, there is nothing
wrong with that.

No, you can't schedule a DLL to run by itself. A DLL must be hosted by an
EXE that's using the DLL. The Task Scheduler knows nothing a about the DLL
interfaces. Only a program/exe that was written by the developer to use the
DLL would know about the DLL's interfaces and methods, and the Task
Scheduler doesn't know them.

2. The xml file that I'm creating needs a schema. Is there any good
information on how to create the schema for such a file? It's a simple xml
file with that's in the following format:

There are plenty of articles on Google or Dogpile.com

Jun 27 '08 #3

"Terrance" <Te******@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
I'm looking for some examples for creating a schema programmatically. I've
searched using Yahoo and found articles in creating a schema in the IDE of
VS
but nothing programmatically.
Programmically create a XSD to do what? The XSD is based off an existing XML
file. The XML is validated against its XSD. You change the the XML file, you
create a XSD from it in VS 2008 or some other XML tool, and you validate the
XML file's data and tags against its XSD programmically to veryify that the
XML is correct when using the XML in a program..
>
The reason I don't want the console to flash was because it may be
distracting for the user. I'm trying to make the app user friendly as
possible.
Then you use a Windows Service application that doesn't use a console. It
runs unattended in the background, uses a thread process on a timer event,
the tread executes, its processes and goes back to sleep until the elapsed
time event for the thread fires again to start the process over --- in
intervals.

>
"Mr. Arnold" wrote:
>>
"Terrance" <Te******@discussions.microsoft.comwrote in message
news:26**********************************@microso ft.com...
Good Afternoon:

I have two questions I was hoping someone can help me with.

1. I've created a app that creates a xml file; the project was
constructed
as a console window. I want to know is there anyway to suppress the
console
window from showing? One of the options is I have is to generate the
xml
file
without showing the console window. Even though I'm not calling the
Console
it still flashes. Any suggestions. I plan on running this exe as a
scheduled
task. Is there a better method in doing that; like should it be a
library
(dll) file? Would a dll run as a scheduled task?

What do you care if the Console application is showing the console?
So, you have it running as an unattened scheduled task, there is nothing
wrong with that.

No, you can't schedule a DLL to run by itself. A DLL must be hosted by
an
EXE that's using the DLL. The Task Scheduler knows nothing a about the
DLL
interfaces. Only a program/exe that was written by the developer to use
the
DLL would know about the DLL's interfaces and methods, and the Task
Scheduler doesn't know them.
>
2. The xml file that I'm creating needs a schema. Is there any good
information on how to create the schema for such a file? It's a simple
xml
file with that's in the following format:

There are plenty of articles on Google or Dogpile.com

Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5348
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
11
4833
by: objectref | last post by:
Hi to all, i have a window app and i want to display some info in a console window. I figured out (after a very long search...) how am i supposed to do it and i try using the following code. ...
17
4191
by: MumboJumbo | last post by:
Hi I have a really basic question hopefully some can help me with: Can you write a (i.e. one) C# project that works from the cmd line and gui? I seems if i write a GUI app it can't write to...
0
4661
by: Mythran | last post by:
I can draw onto the console window where I want using a mixture of API calls and the System.Drawing namespace (.Net 1.1). I am trying to install hooks for the window to catch a resize or another...
6
6157
by: Mythran | last post by:
Is it possible to attach Windows WndProc hooks into a Console application window? Thanks, Mythran
10
6285
by: Stephany Young | last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common or garden Console application, one can set the WindowStyle property of the StartInfo object to ProcessWindowStyle.Hidden...
3
13840
by: TC | last post by:
I'm trying to debug a console application, but I can't see the console output. I've seen many references which say that console output is supposed to appear on the Output window when the...
12
6494
by: Dilip | last post by:
Hi All I have a server based C# console application. This application must hide its console window when its launched out on the field. So I dutifully P/Invoke'd FindWindow/ShowWindow...
5
10757
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.