<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>This is a recurring problem esp. for Win64.<br><br>AMD64_NT gets this far:<br><br>ProcessWin32.m3:<br><br>PROCEDURE GetFileHandle(hd: DWORD; ds: FileWin32.DirectionSet): File.T =<br>  VAR h := WinBase.GetStdHandle(hd);<br>  END GetFileHandle;<br><br>The hd values are small negative numbers.<br>DWORD is unsigned 32bit.<br><br>This area doesn't seem to work well, doesn't interoperate with C well.<br><br>(and then the stack goes unaligned raising an exception)<br><br> - Jay<br><br><br><div><hr id="stopSpelling">From: jay.krell@cornell.edu<br>To: m3devel@elegosoft.com<br>Date: Sat, 31 Aug 2013 06:17:08 +0000<br>Subject: [M3devel] how to write constants?<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">What is the right way to do this for 64bit systems?<br><br>  other       : INT32 = 16_FFFFFFFF;<br><br><br>"../src/win32/WinUser.i3", line 1321: warning: value not assignable (range fault)<br>  WS_POPUP       : INT32 = 16_80000000;<br><br>"../src/win32/WinVer.i3", line 37: warning: value not assignable (range fault)<br>  VS_FFI_SIGNATURE    : INT32 = 16_FEEF04BD;<br><br><br>I'm guessing..<br> other : INT32 := -1;<br>WS_POPUP = FIRST(INT32)<br>VS_FFI_SIGNATURE    : INT32 = -17890115; (* 16_FEEF04BD *)<br><br><br>?<br><br> - Jay<br>                                      </div></div>                                        </div></body>
</html>