Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 21 Feb 2002
Offline Last Active Today, 04:29 AM

#5285965 Input Polling - Low Latency API

Posted by Endurion on 09 April 2016 - 01:25 AM

Nobody mentioned the Raw Input API? That's what you ought to use for Windows nowadays. It's a bit complicated to set up, but you're not missing any key presses or controller events.

#5285730 My app cannot write files anywhere on Windows 10

Posted by Endurion on 08 April 2016 - 12:40 AM

So, have you actually checked the error code (GetLastError) after a create/write fails? This would be a real good indication on what exactly the issue is.


You might think it's an issue with access rights and it could be a wrong path or similar.

#5277482 Free painter program with transperent color

Posted by Endurion on 22 February 2016 - 01:18 PM

Paint.NET is also a decent free tool (http://www.getpaint.net/download.html)

#5272443 Desktop capturing with DirectX 11

Posted by Endurion on 24 January 2016 - 02:01 AM

The problem I think is that you can't simply access the desktop backbuffer (there might not even be one -> classic theme) from DirectX. You best bet is probably using GDI. It's not that performant, but you only need to grab it once:


Look at http://stackoverflow.com/questions/5069104/fastest-method-of-screen-capturing, the GID way.

#5263770 loop: for(....) {... continue loop; ....} doesn't work

Posted by Endurion on 27 November 2015 - 01:01 AM

Seriously, stop hammering the Post button if it doesn't work right away.


This looks like Java. So the problem probably is the string comparison with the literal. Use this:


if ( ze.getName().equals( "_rels/.rels" ) ) continue loop;

#5257858 Problems writing a BMP exporter

Posted by Endurion on 19 October 2015 - 01:21 AM

To add on on the upside down:


If you store height as negative the bitmap data is top down instead.


Also, for iFileSize you must use the size calculated with scanline size as Gl2eenDl2agon described.

#5255876 What's the best system on which to learn ASM?

Posted by Endurion on 06 October 2015 - 01:29 PM

I'd target the machine you actually want to target :)


Obviously I'm biased for the C64, there's documentation abundant and there's no problem getting decent cross compilation tools.


<SelfAd>I recommend C64-Studio, my Visual Studio like IDE, which uses (Win)VICE for a neat debugging experience.</SelfAd>

#5254017 sprite render is very slow

Posted by Endurion on 25 September 2015 - 11:30 AM

As BitMaster said, make the PeekMessage check a while. Process all messages from a queue or you have extremely delayed window behaviour (dragging your window should lag like hell). It's not solving the main problem, but could be the cause of a few others.


while ( PeekMessage( &message, NULL, 0, 0, PM_REMOVE ) ) 
  TranslateMessage( &message ); 
  DispatchMessage( &message ); 

#5251826 Cursor Position slowly becoming less pixel perfect when moving from origin

Posted by Endurion on 11 September 2015 - 11:57 PM

Did you take in account the window border size? The size you pass to CreateWindow(Ex) is the outer size.


You can use AdjustWindowRect(Ex) to calculate the outer size from a wanted client size.

#5248693 Visual Studio 2013 raw string support missing

Posted by Endurion on 24 August 2015 - 11:42 PM

From the MSDN site you seem to have to add brackets inside the quotes:


std::string test = R"(\hello)";

#5244129 default install folder for windows game

Posted by Endurion on 02 August 2015 - 04:48 AM

You might try the guest account (or a samey common other user account) for testing. Install the game, run the game under the other account (via Shift-right click, run as...) and see if it works.


A bit annoying to debug this way, but doesn't require changing logged in user.

#5243952 Constant speed for dragging of 3D objects by mouse

Posted by Endurion on 31 July 2015 - 11:21 PM

Frame time shouldn't be used here at all?


Unless you want to push the object which would then be going on its way all by itself the object should simply be placed under the current location of the mouse.

#5238791 Monogame explorer crashes when doing a simple shader?

Posted by Endurion on 07 July 2015 - 08:59 AM

Just an additional info on fullscreen debugging in VS:

VS does show an error message, which is the actual problem. It displays the "debug or abort" dialog, which cannot be shown in full screen modes (because the main window of an app that goes fullscreen usually gets topmost set)

In such cases press Escape and then try to abort debugging (Shift-F5 is the default debug cancel key AFAIR)

#5238307 2D Platform C++ Templates?

Posted by Endurion on 03 July 2015 - 10:57 PM

Here's an old game I made for Dr. Dobb's Challenge back in the days: It's using DX8 in the back and comes with the full source. No other external libraries are required. You may have to search for an old DX8 SDK though:



#5238139 How to run a DX8 application on windows 7 64-bit

Posted by Endurion on 03 July 2015 - 02:02 AM

I can run my DX8 apps fine on Win 7 64bit (C++ though).


Is there any error code in that exception? That might give some hints on what exactly fails.