|
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
|
|
|
|
|
asp.net MVC related latest news ?
modified 13-May-14 5:56am.
|
|
|
|
|
You already have this posted in Quick Answers - don't duplicate posts, it duplicates work and annoys people.
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 – ∞)
|
|
|
|
|
As Original Griff said, don't cross post.
Even if this weren't a cross post with Q&A, it would have been much better posted in the ASP.Net forum, and you should also format your post so it can be read.
|
|
|
|
|
This is now a nonsense question, even if it did make sense it would be in the wrong forum.
Please read the site guidance about how to ask a question - practically everyone here is an unpaid volunteer.
|
|
|
|
|
The OP changed the question because they'd crossposted it.
|
|
|
|
|
I notice you didn't use the word "improved"...
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 – ∞)
|
|
|
|
|
Hello,
for my app that is designed to run under WinPE 5.0 (both 32/64-bit) I need to implement OpenFileDialog in my Form. But OpenFileDialog can't be used under WinPE, so I decided to use OpenFileName instead. It works well, except file extension filter, because it shows all files. My code is as below
OpenFileName ofn = new OpenFileName();
ofn.structSize = System.Runtime.InteropServices.Marshal.SizeOf(ofn);
ofn.filter = "PDF files\0*.pdf\0";
ofn.file = new String(new char[256]);
ofn.maxFile = ofn.file.Length;
ofn.fileTitle = new String(new char[64]);
ofn.maxFileTitle = ofn.fileTitle.Length;
ofn.initialDir = openPath;
ofn.title = "Open PDF file...";
ofn.defExt = "pdf";
if (LibWrap.GetOpenFileName(ofn))
{
selectedFile = ofn.file;
}
File extension filter works normally under full OS / Win7 64-bit, so there is some problem with WinPE only. Any idea how to solve it ?
|
|
|
|
|
I am trying to make a game in c# for kinect, it runs without any error but it is not working as expected, can anyone with a Kinect test it?
|
|
|
|
|
Member 10807796 wrote: it is not working as expected
Now, I want you to sit back, and think about what you said: how useful a comment is that?
The answer is simple: none whatsoever.
It's like you going for a drive and breaking down in the middle of no-where. Quickly, you grab your phone and call the garage! "Hello? My car broke!" you say, before ending the call.
How long do you think it is going to be before the garage arrives where you are with the right bits to fix your car?
We are in the same position as the garage: all we know is that someone (who? No idea) has a problem (what? No idea) (where? No idea) and wants us to do something (how? No idea).
We only get to see what you tell us: we can't see your screen, access your HDD, or read your mind. So tell us things we can use!
Onward: testing your application. Unlikely. Would you download an executable from someone who don't know, that does something but you have no idea what, and has known problems but you don't know what? Because I wouldn't. And if you would, can I have your name and address, because I have a bridge that I'd like to sell you...
So, think again, and explain your problem. Tell us what you are trying to do, and tell us what is happening that you don't expect, or not happening that you do. Show us the relevant code fragments - not the whole code, just the minimum relevant lines.
Help us to help you!
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 have a requirement to generate an Outlook email that is downloaded after a new user is created through the UI. The client wants to review the email prior to it being sent to the user, this is why it needs to be downloaded. I cannot use Microsoft.Interop because this is a web application and Office is not installed on our servers.
I have created a html template for the email body and I am using MailMessage to generate the email. My current code sends the file to a pickup directory and then I try to download the file as an eml file. This works, except the body of the email is missing from the download. If I go to the server and view the file it does have the body. What am I missing from the download piece of code? Thank you for any thoughts and suggestions.
public static void sendNewUserEmail(string username, string password, string url, List<string> projects, string client)
{
try
{
var response = System.Web.HttpContext.Current.Response;
var emailfilepath = @"C:\LogFiles\FE\Emails\NewUser\";
DateTime now = DateTime.Now;
now.ToString("yyyy-mm-dd");
var projectlist = String.Join(", ", projects.ToArray());
string fromemail = "support@noreply.com";
string subject = "New Account Created - " + client + ": " + projectlist;
MailMessage message = new MailMessage();
using (StreamReader reader = File.OpenText(@"C:\inetpub\fe\Interior\UserAdmin\NewUserEmail.html"))
{
message.From = new MailAddress(fromemail);
message.To.Add(username);
message.Subject = subject;
message.Priority = MailPriority.High;
message.IsBodyHtml = true;
message.Body = reader.ReadToEnd();
message.Body = message.Body.Replace("{Password}", password);
message.Body = message.Body.Replace("{Project}", projectlist);
message.Body = message.Body.Replace("{URL}", url);
}
SmtpClient smtp = new SmtpClient("mysmtphost");
smtp.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
smtp.PickupDirectoryLocation = emailfilepath;
smtp.Send(message);
var file = new System.IO.FileInfo(emailfilepath);
string filename = file.Name.ToString();
response.BufferOutput = true;
response.Clear();
response.ClearHeaders();
response.ContentEncoding = Encoding.Unicode;
response.AddHeader("content-disposition", "attachment; filename=NewUserEmail_" + client + "_.eml");
response.AddHeader("Content-Length", file.Length.ToString(CultureInfo.InvariantCulture));
response.ContentType = "application/octet-stream";
response.WriteFile(emailfilepath + file.FullName);
response.End();
DeleteFile(filename);
}
catch (Exception ex)
{
string message = ex.Message;
string stacktrace = ex.StackTrace;
string source = ex.Source;
string method = "sendNewUserEmail";
Logger.LogFile(source, message, stacktrace, method);
}
}
modified 12-May-14 15:46pm.
|
|
|
|