|
Do you have such a display to test on? if so have you looked at the documentation or even looked at code samples for the device? I would think that most of these types of equipment would come with an SDK etc.
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Hi guys!
There a two things i wish to know.
Lets start with the creation of an msi file that installs my service.
I have added a simple setup project to my solution (VS 2010).
But when i start my setup i got asked for an location where the "application" should be installed. My setup copies than the binary of my service to that location. I am talking about the file that you need to install the service with installutil. But I dont need it, cause the setup project already installs this service. What i am doing wrong?
Lets step to my next question.
My service needs some parameters when it starts. Now (maybe influenced by the situation described above), i want that the user can provide a location when he installs the service. In this location a config file shall be stored (a xml file that is easily to understand an editable for most user). How can i realize this? Including the config file in my project and set its property to "Copy to output path"="Always" didnt help. And what about the installation path? It is possible that my service can fetch the information about the path? The service itself wont be located in this path, so i assume that
Assembly.GetExecutingAssembly wont help.
Any ideas`?
Jeff
|
|
|
|
|
Your description is so weird that I doubt you understand what you do.
It is rather normal that the setup program will ask you where to install the program - that holds true for desktop applications and services as well. You may provide a useful default value for that.
Startup parameters are rather unusual for a service, though in rare case can be useful and e.g. added on the properties page of the servcie for the next start (and only the next manual start from that tab - not as a general parameter!). What you describe is a configuration. For configuration, there is the Application Configuration file. In your Visual Studio, it is the app.config file. When the program gets built, it becomes yourservcie.exe.config. That's the place where to add configurable items. When you changed the entries e.g. in a text editor, do not forget to re-start the service. If you have another program interacting with your service which could be used for configuring it, use Settings.
|
|
|
|
|
Quote: It is rather normal that the setup program will ask you where to install the program - that holds true for desktop applications and services as well. You may provide a useful default value for that.
Oh yeah, i was wrong. I was believing that in contrast to applications, windows services dont need installation locations, cause they will be automatically stored in a windows specific folder that is designed for services.
That belief was created by the message prompt that was shown to me by double clicking the executable file my setup created in the installation location.
I was believing that this executable file is only needed for installing purposes.
But given that this executable file represents the service, it is of course able to use
Directory.GetParent(System.Reflection.Assembly.GetExecutingAssembly().Location).FullName to get the correct location of the config file.
For your information:
Im using the XmlSerializer-Class to realize a config file that corresponds to my own config-class. I really like this way.
So thank you!
|
|
|
|
|
hi frndz,
as per u suggested i have installed k lite mega codec packon my 32 bit windows 7 system but still i m getting same problem in video steganography code:
if(getFrameObject == 0){ throw new Exception("Exception in AVIStreamGetFrameOpen!"); }
please help me.
krrish8891
|
|
|
|
|
I am able to find the Parent Window but I would like to have the list of all its Child Windows, in order to find their Class Name & Window Name, can anyone help?
I have used:
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle);
[DllImport("user32.dll")]
private static extern IntPtr FindWindow(string className, string windowName);
Thanks in-advanced
|
|
|
|
|
...and?
You build your own list. There is no function that returns the entire child window handles tree. You have to build it yourself.
I suggest reading the documentation on the EnumChildWindows[^] function.
|
|
|
|
|
While I am waitting for a reply I found this and it works
http://www.experts-exchange.com/Programming/Languages/.NET/Q_26708666.html
Thank you anyway
|
|
|
|
|
Member 10636998 wrote: While I am waitting for a reply
That is called RESEARCH and should be done BEFORE posting the question.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Sorry, I disagree with this reply. At least he made an effort of trying to find a solution. You're never sure to get a reply...
|
|
|
|
|
I am trying to encourage the OP to do some research before posting, I find 95% of my questions have already been answered somewhere, usually many times. Also note that I did not down vote the OP, that would have been very unreasonable.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I make a graphics app and I need to know when the display is refreshed.In which mode I can to call this event(vsync)
Roland
|
|
|
|
|
There is no "event".
You haven't specified anything about your app, how you're writing it, or if you're even using DirectX, so it's pretty much impossible to tell you anything useful.
|
|
|
|
|
This is probably an example of the XY problem[^] - you have problem X and you think Y will solve, but you can't figure out how so you ask for help with Y.
That sometimes works, but often it doesn't - that Y is hard is often because Y isn't the best solution to begin with (it might not even be possible).
What problem are you really trying to solve? If you just want to render with vsync, it depends on what API you're using (you should tell us which one), but it will never involve a vsync event because it doesn't exist.
|
|
|
|
|
Hi,
I have a computer with two monitors. Primary monitor display normal but i want to flip (not rotate) image of second monitor. How can i implement it by c# programing ? Pls point me some hints.
Thanks
|
|
|
|
|
By "Flip" do you mean "mirror left - right", so that all the text comes out backwards?
Because if so, then I doubt if you can - I've never heard of it being done - but if you can it's probably going to be dependant on your video card driver.
I'd start by asking them.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I would have thought checking the monitor stand would be the first step!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
And how is that flipped? It looks pretty "Normal" to me...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
We all make mistakes!
Yes, that's a horizontal mirror - as I said, I think you need to start with the video card driver - I've never seen that done in any high level language, and I doubt it's a standard feature (as it renders text unreadable to many people).
Email your card maker!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
My card is: Mobile Intel(R) 945 Express Chipset Family
|
|
|
|
|
I think he means you should mail Intel for info on how their card works
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Yeah...I should have phrased that better, shouldn't I?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
i mean, like images below:
Normal desktop:
http://i61.tinypic.com/2w5ivib.png
Flipped desktop:
http://i61.tinypic.com/2s8mj5u.png
In c#, i only find the way out to rotate it.
Thanks
|
|
|
|