|
Hi
I add extern DirectInput* gDInput; in DirectInput.h file. At the beginning of the file DirectInput.cpp I add DirectInput* gDInput = 0;
After the build process I received no errors. But during the debug process I still have the same error on the line in DirectInput.cpp:
HR(mKeyboard->Acquire());
One message box appears with the following message:
Unexpected error encountered: XFile with two buttons Yes/No
Regards
|
|
|
|
|
Then you need to use your debugger to find out why the error occurred. Randomly changing source code is not a very good way to try and resolve problems.
|
|
|
|
|
 I try to find the error using debug but till the moment it is not successful. The debuger is going in files as output.c, ullrem.asm, ulldiv.asm, vsprintf.c,
The debuger is passing through no source available point and continues till:
book_ex1.exe!DXTraceA(const char*strFile, unsigned long dwLine, HRESULT hr, const char*strMsg, int bPopMsgBox)Line 4828
Source file information:
Locating source for 'e:\temp\193462\obj.x86fre\misc\dxerr\objfre\i386\dxerra.cpp'. Checksum: Mo5 {62 b6 ef ba 67 f9 ac 6 4b 2 ec 8e 70 e7 46 a
The file 'e:\temp\193462\obj.x86fre\misc\dxerr\objfre\i386\dxerra.cpp' does not exist.
Looking in script documents for 'e:\temp\193462\obj.x86fre\misc\dxerr\objfre\i386\dxerra.cpp'...
Looking in the projects for 'e:\temp\193462\obj.x86fre\misc\dxerr\objfre\i386\dxerra.cpp'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\crt\src\vccorlib\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\src\atl\'... E}
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\src\mfc'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\src\mfcm'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\src\atl'...
|
|
|
|
|
You know where the exception occurs, add a breakpoint soemwhere before that point and run the program. When the breakpoint fires you can single step through the code and check all variables as you proceed, in order to find the offending value.
|
|
|
|
|
It is very difficult to find the error line because I look in Disassembly. I use step into and step out. Do you know better way to check errors in disassembly section.
|
|
|
|
|
Why are you looking in disassembly, when you have the source code?
|
|
|
|
|
Thank you very much for your help. Everythink is working well when I started the application without debuging.
|
|
|
|
|
|
Has anyone else found that a D3D9 full screen app (D3DCREATE_ADAPTERGROUP_DEVICE) that has worked well up to Win 8.1 fails with Windows 10 after the August update? d3d9->CreateDevice fails with D3DERR_INVALIDCALL. As I said... the code works with Win 8.1, Win 8, Win 7, Vista... and with original Windows 10 developer preview... but NOT after August update. Any tiny clue would be appreciated. I'd be happy to post present params, and other support code. Mainly, I'd like to know if anyone else has experienced this?
TwangGuru
www.twangguru.com
|
|
|
|
|
|
Thanks for your reply, but the answer is we're not "starting off". This is a product that has been sold for several years. There is no reason why a D3D9 application should not work on Windows 10... when the same application works fine in 8.1, etc. To redesign this product for D3D11 would take serious time, considering the development, testing and deployment cycles. This is NOT a simple D3D9 app... it's a complex application comprising 10000s of lines of codes and which is used in environment which demands high reliability. The port might be appropriate for a student project, but not the best path for this project.
TwangGuru
www.twangguru.com
|
|
|
|
|
How to paint right angle connecting line
it looks like as visio in mfc.
right angle connecting line
|
|
|
|
|
Use one of the GDI+[^] classes.
|
|
|
|
|
dx1 = u - x1 - x1^3
dx2 = -x2
how to make a diagram to analyze the bifurcation of the function
P.S. the x-axis of bifurcation is u
the y-axis of bifurcation is || X ||
{the amplitude (or norm) of the equilibrium point }
|
|
|
|
|
This is not a C# question. Nor is it a Graphics question.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
dx1 = u - x1 - x1^3
dx2 = -x2
how to make a diagram to analyze the bifurcation of the function
P.S. the x-axis of bifurcation is u
the y-axis of bifurcation is || X ||
{the amplitude (or norm) of the equilibrium point }
|
|
|
|
|
As a warmup for a more complex project, I had started to test doing layouts and rendering of text with DirectWrite. And for a start, I had used the snippets from the Microsoft Dev Center and created a complete minimal test application in my Visual Studio 2015 with Windows 10.
The good part is that I had some rendered text as a result in my window. The bad part is that the result (see this this screenshot) is far away from good readable text.
My understanding of the relating MSDN documentation is that ClearType is enabled by default. The title bar text of the window is obviously set up with text in ClearType. I guess I missed some setting in the DWrite factory but I do not know which one.
Does anybody have an advice for me?
For anybody who wants to take a look at my application: The project can be found here as ZIP file. The coding of my test application was not thought to be an example for a well structured program; its sole purpose was to find out how text rendering in ClearType could be accomplished.
(A short note: I had originally posted this in the Managed C++/CLI forum, and I received the advice that I might be better off in this forum. So I modified my test into a minimal C++ application - with the same sad result -, and I am reposting it here)
|
|
|
|
|
Nowadays most video editors are desktop-based application and there are just a few that's run online, like WeVideo. While it seems that there isn't one that's used for professional movie editing team like Industrial Light & Magic to produce a large-scale commercial movie. Actually I'm interested in doing researches on this area in my MPhi/PhD study. I want to know what's the main challenge of implementing such kind of online video editors. Is there some possible solutions to it?
|
|
|
|
|
I would think the biggest obstacle to an online video editor would be the huge demands on bandwidth, especially for uploading the raw footage to be edited.
I've shot a lot of standard definition DV over the years, and it runs to about 13GB/hour. For a 20 minute video I'll use, on average, maybe 3 or 4 hours of raw footage (and sometimes much more). Uploading over 50GB of data on a typical home connection is going to take a very long time. I've also recently moved up to HD recording, which requires considerably more space, and would require even longer uploads.
Editing is also a very interactive process, which would require not only very high performance servers, but very good downstream connections to see the results as you edit. When editing, I'm continually zipping back and forward on the timeline, adjusting clips, moving things, changing audio streams etc. etc., and I want instant feedback with no stuttering or "buffering...".
The 'WeVideo' site looks interesting, but even on the 'Professional HD' level it provides virtually no storage, and a very limited amount of published video. What little they show of the editing tools doesn't impress either. It's probably not going to be useable for anything other than very simple, very short features.
Some day, when we all have fibre-to-the-home, it might be possible, but currently I'd say it's not practical.
Days spent at sea are not deducted from one's alloted span - Phoenician proverb
|
|
|
|
|
molesworth wrote: Some day, when we all have fibre-to-the-home
Perhaps, on that day, we would also have a new definition of HD, practically resulting in a similar scenario as today.
|
|
|
|
|
The problem is bandwidth.
If you can separate the presentation from the actual editing, then you will make progress.
Almost all (video) editing is done interactively. Create a server that can process "edit" commands from any source.
The file to be edited would need to be uploaded to the server and downloaded when complete; you may still be running a "desktop editor", but now it is running on a server.
Any "terminal server" (e.g. Team Viewer; remote desktop) will do; the "editing software" can be anything the user prefers (Movie Maker; Nero).
I have a quad-core development machine in my office running Windows 8.1.
I also have single-core 7 year old laptop (running Vista) that is almost useless except when I use it to "remote" into my development machine. When connected, I can run the latest Photoshop, Visual Studio, etc. without any issues.
So, while the Vista laptop won't support the latest releases of IE and Visual Studio (and would grind if it did), it does work very effectively via a remote connection to my development machine.
Terminal servers have come a long way since the days of Norton's PCAnywhere.
|
|
|
|
|
I'm quite interested in building a model of the black hole and visualize it like that shown in the movie "Interstellar". I'm good with C/C++/C# and Windows programming, how can I make it?
|
|
|
|
|
|
|
Hi all. I'm sorry, I know that this is going to come out as a "gimme codez" kind of question, but there's nothing much to do about that.
The thing is: I want to paint a brushed metal knob on my Winforms form surface (using C#) - Similarly to what what is mentioned in this Photoshop article[^]. (I'm only interested in the surface itself. All the trimmings around it are easy enough to paint)
I could just embed an image in the application and paint it from that (and that's probably what I'll do if I can't find any other solutions), but I would rather that the code didn't rely on embedded resources.
I guess I can figure it out somehow, but if anybody knows of any links/tips on how to do it, it would save me a lot of time.
I have tried Googling, but either my Google Fu is not strong enough or there are no such tips out there on the entire web.
So If anybody happens to know and can point me in the right direction, I would really appreciate it...!!!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|