473,378 Members | 1,395 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Faster Executible??

In Visual Studio .Net 2003, what can I do with my c# application to
make the exe run as fast as possible? It seems very slow (although it
is checking the error status of the printer, and waiting for a response
accross a network). Any faster at all would be great.
Thanks,
Trint

Nov 16 '05 #1
7 1036
That is a vary broad question, just like asking for the meaning of life.
Can you ask something more specific related to your problem?

"trint" <tr***********@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
In Visual Studio .Net 2003, what can I do with my c# application to
make the exe run as fast as possible? It seems very slow (although it
is checking the error status of the printer, and waiting for a response
accross a network). Any faster at all would be great.
Thanks,
Trint

Nov 16 '05 #2

"trint" <tr***********@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
In Visual Studio .Net 2003, what can I do with my c# application to
make the exe run as fast as possible? It seems very slow (although it
is checking the error status of the printer, and waiting for a response
accross a network). Any faster at all would be great.
Thanks,
Trint


Put the printer error status detection code into another thread and display
a progress. This won't make it any faster, but will not hang while it's
detecting the error status. So, you can do other things during the
detection (such as display and update the progress or a graphical icon that
displays that there is something going on).

Hope this helps...

Mythran
Nov 16 '05 #3
Mythran,
Do you mean a separate application? The only problem is that if the
laserjet has any type of error, the printing must stop immediately.
Thanks,
Trint

Nov 16 '05 #4
> That is a vary broad question, just like asking for the meaning of life.

The answer to this question is short and well known: 42

:-)
Nov 16 '05 #5

"trint" <tr***********@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Mythran,
Do you mean a separate application? The only problem is that if the
laserjet has any type of error, the printing must stop immediately.
Thanks,
Trint


No, take a look at the Threading examples in the MSDN library for help on
threading. Threading is useful because it allows applications to do more
than 1 thing at once. Sort of like running 2 programs at the same time but
instead, it's all coming from the same executing process with only 1 set of
source code running.

That's how you are allowed to cancel pending actions that are running in
Windows (such as some installations, or other applications). They make use
of Threading.

Mythran
Nov 16 '05 #6
So long, and thanks for all the fish.
"Alexander Shirshov" <al*******@omnitalented.com> wrote in message
news:eO**************@TK2MSFTNGP15.phx.gbl...
That is a vary broad question, just like asking for the meaning of life.


The answer to this question is short and well known: 42

:-)

Nov 16 '05 #7
I've heard there is a movement afoot to change 42 to 47. :)

--
....Carl Frisk
Anger is a brief madness.
- Horace, 20 B.C.
http://www.carlfrisk.com
"Alexander Shirshov" <al*******@omnitalented.com> wrote in message news:eO**************@TK2MSFTNGP15.phx.gbl...
That is a vary broad question, just like asking for the meaning of life.


The answer to this question is short and well known: 42

:-)

Nov 16 '05 #8

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

Similar topics

23
by: YinTat | last post by:
Hi, I learned C++ recently and I made a string class. A code example is this: class CString { public: inline CString(const char *rhs) { m_size = strlen(rhs);
98
by: jrefactors | last post by:
I heard people saying prefix increment is faster than postfix incerement, but I don't know what's the difference. They both are i = i+1. i++ ++i Please advise. thanks!!
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
1
by: James dean | last post by:
I done a test and i really do not know the reason why a jagged array who has the same number of elements as a multidimensional array is faster here is my test. I assign a value and do a small...
9
by: VenuGopal | last post by:
Hi, why n++ executes faster than n+1..... or does it realli execute faster? thanks Venugopal.B
11
by: ctman770 | last post by:
Hi Everyone, Is it faster to save the precise location of an html dom node into a variable in js, or to use getElementById everytime you need to access the node? I want to make my application...
12
by: karthikbalaguru | last post by:
Hi, How is 'Int' Faster than 'Char' ? I think , 'Char' is small and so it should be easily & efficiently . Can someone here provide some info regarding this. Thanks and Regards, Karthik...
23
by: Python Maniac | last post by:
I am new to Python however I would like some feedback from those who know more about Python than I do at this time. def scrambleLine(line): s = '' for c in line: s += chr(ord(c) | 0x80)...
41
by: c | last post by:
Hi every one, Me and my Cousin were talking about C and C#, I love C and he loves C#..and were talking C is ...blah blah...C# is Blah Blah ...etc and then we decided to write a program that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.