|
I know about those Libs and I alrady have some, BUT,
All of them doesn't have a method to deal with the complex number as a String for an example >>
thanks for patience>>>>
Any Ideas..
|
|
|
|
|
hi
I have a new project with C# that can send and recieve a fax
I want to use faxcomlib.dll to send a fax
but I donot know how to recieve a fax and retrieve a fax status
anyone can help me please ?
|
|
|
|
|
I'd suggest reading the article I link to in my sig. Then, try typing C# fax into google. OR type fax into the search on code project. Either way, you will quickly find this[^].
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
This article you give , just send fax not recive fax and not give fax status,
can you help me about this issue??
|
|
|
|
|
I have a program which takes the full screen that just allows users access to our website. We have one place where they click a button which generates a PDF file that they need to print.
Currently I can open and display the PDF file in the browser window, but since the application is the TopMost window always the print dialog is not visible (this happens when you click the print icon in Acrobat which is embeded into the window).
How can I either automatically print the PDF file and not even display it, or make the print window ontop of my form?
|
|
|
|
|
hi
i want to check if my printer is connected to my pc and show my model (using c# code ).
plz help me .
thx in advance
s_mostafa_h
|
|
|
|
|
Alright, I'll help you with your post as requested:
mostafa_h wrote:
Currently I'm trying to check if a printer is connected to my computer.
I am using this code:
and I was getting this error message:
The error message you was getting goes here
After I get this to work, I would like to know if there is a way to detect the printer's model number or type of printer.
I looked on google and found this Url to example[^] but it is using native API's and that I don't know how to call in C#
s_mostafa_h
|
|
|
|
|
what's ur mean ? where did u find and copy this and put to my message ?
i don't remember to post this before ,
sorry !
s_mostafa_h
|
|
|
|
|
Have you tried google? I got this on the very first hit.
Clickety[^]
Clickety 2[^]
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
thanx a lot !
s_mostafa_h
|
|
|
|
|
You're welcome, but please in the future spend a good 10-20 minutes googling your query and reading the results. If that doesn't work, post to the forums.
Till the next time
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
Hello everyone,
I am new to how to catch uncaught exception. From some self-learning, I think we should use, event handler for AppDomain.CurrentDomain.UnhandledException other than Application.ThreadException if we are writing console or Windows service, right?
Application.ThreadException is for Windows Form application, not console and Windows Service application?
thanks in advance,
George
|
|
|
|
|
try
{
}
catch (Exception exp)
{
}
Maybe, just maybe...
|
|
|
|
|
Correct me if i'm wrong, but generally catching things using catch (Exception err) is bad practice? You should try any catch specific exceptions otherwise you get a much greater performance hit I believe.
*A point always worth mentioning (particularily to people new to the language); try to avoid using try...catch as much as possible due to the massive performance hit it (hundreds of times slower to process try...catch than simple math functions).
|
|
|
|
|
No you're not wrong, you should catch what the error is, but if you don't KNOW what is is (thus you got the unhanded exception) you can add a general
catch (Exception err)
{
}
which can allow you diagnose it/ silently write a log entry for the problem to be corrected.
If you are doing:
int i = 3 + 4;
there isn't a need for a try-catch but normally with FileIO and other process (that are slower than the try catch block itself) they are fine.... It's hard to judge when/where you need them as you are starting off.
|
|
|
|
|
Actually, he is right. You should only do a catch all when performing an operation that you're willing to let fail, or at the top level, to report errors to an end user and write them to a log. The only reason to catch all, is because you're looking to work out why your code is failing, and to log an error.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks Christian,
I agree with your points. Any ideas to my original question? About using using Application.ThreadException or AppDomain.CurrentDomain.UnhandledException in console/Windows service application?
regards,
George
|
|
|
|
|
Spacix One wrote: which can allow you diagnose it
And if nothing else, I guess that's the answer to the orriginal question; set a break point in the catch block and Visual Studio will tell you the type of the exception (and hence you can modify the code to catch exactly that).
Does anyone know if a try...catch block affects the performance of the try block code? I know it has a performance hit on hitting the block, but I wonder if it has a continuing effect beyond that.
|
|
|
|
|
Thanks Derek,
I agree with your points. Any ideas to my original question? About using using Application.ThreadException or AppDomain.CurrentDomain.UnhandledException in console/Windows service application?
regards,
George
|
|
|
|
|
Yes.... run the code with catch (Exception err) and output err.GetType() somehow (Console.WriteLine will do). You'll then know the type of the exception raised so you can go back and modify catch (Exception err) to the specific type.
|
|
|
|
|
Thanks Derek,
I agree with your exception handling approach. Any answers or comments to my original question?
regards,
George
|
|
|
|
|
See above. I don't know the answer, but use the proceedure above will tell you how to find out.
|
|
|
|
|
Thanks Derek,
"the proceedure above" you mean "catch (Exception err) and output err.GetType()"?
regards,
George
|
|
|
|
|
Yes. A breakpoint on the err.GetType() line will give you further information as well however.
|
|
|
|
|
Thanks for your clarification, Derek!
regards,
George
|
|
|
|