This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DWORD dw = GetLastError(); | |
char *TextSize; | |
std::printf("Error has occured: "); | |
FormatMessage(0x00000100 | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, 0, | |
dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), | |
(LPTSTR) &TextSize, 0, 0); | |
OutputDebugString((LPCWSTR)TextSize); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
*Add an event handler to an element to detect pointer down | |
*Ensure that is a touch event | |
*MSPointerDown and MSPointerUp are Windows 8/IE10 events. You should look at another code to handle gestures on other browsers | |
*/ | |
this._element.addEventListener("MSPointerDown", function (e) { | |
//Touch event | |
if (e.pointerType == 2) { | |
context._gestureInfos = new Object(); | |
context._gestureInfos.started = true; |
NewerOlder