I've kind of programmed myself into a corner. I just changed my application to use David Hall's Task Scheduler Library for Net, so now the app requires elevated permissions (run as Administrator). However, I discovered that when I 'run as administrator' the app's connection to QuickBooks fails. Some research led me to find that the QuickBooks SDK will not work with elevated permissions on Windows 7. So now part of my app requires elevated permission and part of it requires non-elevated permission.
I think I can get around this by splitting the task scheduler code off in a separate process like this example:
"A new process with elevated privileges can be spawned from within a .NET application using the "runas" verb. An example using C#:"
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "C:\\Windows\\system32\\notepad.exe";
proc.StartInfo.Verb = "runas"; // Elevate the application
So my question is, is this the only way? Are there other, better alternatives? Thanks.
Can you help me with program in C# 2010
I want to make a program that read PDF files ( Arabic and English languages )
If you have any code or tool help please add here and I hope to learn me how to use it and if you have any video or photos help me
There are lots of tools available, just Google for "PDF C#" and take your pick; iTextSharp is a popular one. Also please do not use bold font to post questions, everyone here is quite capable of reading normal text.
I'd rather call it lazy. This is something you google.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
Polymorphism by inheritance can be done by defining virtual methods in a base class and overriding those methods in the derived class giving each derived class it's own implementation something like this
Console.WriteLine("Car speeding up.");
Console.WriteLine("Sportscar is speeding up....");
...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....
So do you think Overriding is polymorphism.
As I know polymorphism is something having different forms of the same thing (e.g. Function Overloading).
But in case of overrideing, function from parent class is obsoleted by the function of child class.
there is no way to call parent class function from the object of Child.
This is my confusion point because I have read around 5-6 books and many of articles online for this confusion but some times I got the same answer as yours and some times different that's why I have asked it here.
But everybody except you is demotivating me for asking this simple question by the way thanks for the reply
Last Visit: 31-Dec-99 18:00 Last Update: 29-Sep-23 8:16