473,614 Members | 2,361 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 1378

"Terrance" <Te******@discu ssions.microsof t.comwrote in message
news:26******** *************** ***********@mic rosoft.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 programmaticall y. I've
searched using Yahoo and found articles in creating a schema in the IDE of VS
but nothing programmaticall y.

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******@discu ssions.microsof t.comwrote in message
news:26******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.comwrote in message
news:97******** *************** ***********@mic rosoft.com...
I'm looking for some examples for creating a schema programmaticall y. I've
searched using Yahoo and found articles in creating a schema in the IDE of
VS
but nothing programmaticall y.
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******@discu ssions.microsof t.comwrote in message
news:26******* *************** ************@mi crosoft.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
5375
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 application (VB.NET) will start a process, redirect its stdout and capture that process' output, displaying it in a window. I've written a component for this, and a test application for the component. It allows me to specify a command to execute,...
11
4847
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. The problem is that ok is set to true, con is set to a number (all fine until here) the console window appears but the string "anthonyb" is never displayed there...
17
4211
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 console using System.Console.WriteLine if thge project has its "Output Type" to "Windows Application". However I can write to stdio if i set output type to "Console Application". When I do this I unfortunately get a "console box" as well
0
4692
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 message so that when the console window gets redrawn, I can repaint what I need to on this window. So far, no luck. First I install the hook by calling the SetWindowsHookEx passing the type WH_CALLWNDPROC, a delegate for the HOOKPROC param,...
6
6186
by: Mythran | last post by:
Is it possible to attach Windows WndProc hooks into a Console application window? Thanks, Mythran
10
6329
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 so that the window for the Console application is not visible. However, when using some of the 'advanced' properties of the StartInfo object, like Username, Password and Domain, the WindowsStyle property of the StartInfo object is ignored....
3
13853
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 application is run in Debug mode. However, I just can't get that to work. I'm using Visual Studio 2005. I've confirmed that my application is compiled as a console application, and that I'm running in Debug mode. To investigate this issue, I've reduced...
12
6523
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 combination to hide the console window at launch time. The application (for legacy reasons) hangs around by waiting on an old- fashioned Console.ReadLine() statement.
5
10766
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 server. Now, every console program instance will open a command mode window and they occupy the whole screen. I want to minimize all of them and maximize it if neccessary by manual. Is it possible and how to do it? I'm using VB.NET 2005. ...
0
8124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8621
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8427
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7050
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6087
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5538
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4049
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4119
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1712
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.