<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
1. That is the expected result. Please please look closer.<br>2. Yeah, the sample I derived from is a bit buggy but I think I fixed its bugs, I vaguely recall.<br><br><br>I'm sure there's no problem here, anyway. At least on Windows 2000 and newer.<br>Maybe on NT 3.x, NT 4.0, Win9x, maybe depending on the install of IE. But I doubt anyone cares.<br><br><br>Heck, for a very long time, this code didn't really work for MacOSX, FreeBSD, NetBSD, OpenBSD, Solaris,<br>only Windows, Linux, OSF/1, and nobody seemed to notice.. (it falls back to the local<br>IPv4 address, which isn't very unique typically).<br>I think it works everywhere now, through heavy #ifdef.<br>(Given the level of #ifdef, I wonder if we should either combine Windows and Posix into<br>one file, or split up Posix into multiple files, or just leave it alone..)<br><br><br>Thanks,<br> - Jay<br><br><hr id="stopSpelling">From: rcolebur@SCIRES.COM<br>To: m3devel@elegosoft.com<br>Date: Sat, 19 Feb 2011 04:34:38 -0500<br>Subject: Re: [M3devel] More on threading<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass BODY.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<style>
</style><style title="owaParaStyle">
.ExternalClass P
{margin-bottom:0px;}
</style>
<div style="font-size: x-small; color: rgb(0, 0, 0); direction: ltr; font-family: Tahoma;">
<div>Jay:</div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">For Windows 2000 SP4, using Visual C++ 2005 Express Edition:</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">1. I tried building the MachineID.c program in the first example link, but it runs into an unresolved symbol at link time.</font></div>
<div><font face="Courier New"></font> </div>
<blockquote dir="ltr" style="margin-right: 0px;">
<div><font face="Courier New">cl MachineID.c<br>
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86</font></div>
<div><font face="Courier New">Copyright (C) Microsoft Corporation. All rights reserved.</font></div>
<div><font face="Courier New">MachineID.c<br>
Microsoft (R) Incremental Linker Version 8.00.50727.762<br>
Copyright (C) Microsoft Corporation. All rights reserved.</font></div>
<div><font face="Courier New">/out:MachineID.exe<br>
MachineID.obj<br>
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup<br>
MachineID.exe : fatal error LNK1120: 1 unresolved externals</font></div>
</blockquote>
<div><font face="Courier New"></font> </div>
<div><font face="tahoma">2. I was able to build the program in the 2nd link. Here is the output from running this program:</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="Courier New"> Num Entries: 2</font></div>
<div><font face="Courier New"> Index[0]: 16777219<br>
InterfaceName[0]: osoft Visual Studio 8\Common7\Tools\<br>
Description[0]: EL574ND4 Ethernet Adapter<br>
Type[0]: Ethernet<br>
Mtu[0]: 1500<br>
Speed[0]: 100000000<br>
Physical Addr: 00-00-86-5E-DF-A0<br>
Admin Status[0]: 1<br>
Oper Status[0]: Operational</font></div>
<div><font face="Courier New"> Index[1]: 1<br>
InterfaceName[1]:<br>
Description[1]: MS TCP Loopback interface<br>
Type[1]: Software Lookback<br>
Mtu[1]: 1500<br>
Speed[1]: 10000000<br>
Physical Addr:<br>
Admin Status[1]: 1<br>
Oper Status[1]: Operational<br>
</font></div>
<div><font face="tahoma">Regards,</font></div>
<div><font face="tahoma">Randy</font></div>
<div dir="ltr"><font color="#000000" face="Tahoma" size="2"></font> </div>
<div id="ecxdivRpF936601" style="direction: ltr;">
<hr>
<font style="font-size: 10pt;" color="#000000" face="Tahoma" size="2"><b>From:</b> jayk123@hotmail.com [jayk123@hotmail.com] On Behalf Of Jay K [jay.krell@cornell.edu]<br>
<b>Sent:</b> Tuesday, February 15, 2011 7:56 PM<br>
<b>To:</b> Coleburn, Randy; m3devel<br>
<b>Subject:</b> RE: [M3devel] More on threading<br>
</font><br>
</div>
<div></div>
<div>It should work.<br>
<br>
<br>
<a href="http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-libs/libm3/src/uid/WIN32/MachineID.c?rev=1.14;content-type=text/plain" target="_blank">http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-libs/libm3/src/uid/WIN32/MachineID.c?rev=1.14;content-type=text%2Fplain</a><br>
<br>
<br>
Bing for "MSDN GetIfTable"<br>
=> <a href="http://msdn.microsoft.com/en-us/library/aa365943%28VS.85%29.aspx" target="_blank">
http://msdn.microsoft.com/en-us/library/aa365943(VS.85).aspx</a><br>
<br>
<br>
Mika, what made you think cm3 doesn't work on Windows 2000??<br>
I don't think anything has been remotely suggested.<br>
<br>
<br>
- Jay<br>
<br>
<hr id="ecxstopSpelling">
From: rcolebur@SCIRES.COM<br>
To: jay.krell@cornell.edu; m3devel@elegosoft.com<br>
Date: Tue, 15 Feb 2011 17:05:37 -0500<br>
Subject: Re: [M3devel] More on threading<br>
<br>
<style>
@page WordSection1
{;}
.ExternalClass P.ecxMsoNormal
{font-size:12pt;margin-bottom:0pt;font-family:'Times New Roman','serif';}
.ExternalClass LI.ecxMsoNormal
{font-size:12pt;margin-bottom:0pt;font-family:'Times New Roman','serif';}
.ExternalClass DIV.ecxMsoNormal
{font-size:12pt;margin-bottom:0pt;font-family:'Times New Roman','serif';}
.ExternalClass A:link
{color:blue;text-decoration:underline;}
.ExternalClass SPAN.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass A:visited
{color:purple;text-decoration:underline;}
.ExternalClass SPAN.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass P
{font-size:12pt;margin-left:0in;margin-right:0in;font-family:'Times New Roman','serif';}
.ExternalClass SPAN.ecxEmailStyle18
{color:#1f497d;font-family:'Calibri','sans-serif';}
.ExternalClass .ecxMsoChpDefault
{font-size:10pt;}
.ExternalClass DIV.ecxWordSection1
{;}
</style>
<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Jay, since I have a Windows2000 system, I can test the MAC address discovery (or anything else you need). Just let me know.</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Regards,</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';">Randy Coleburn</span></p>
<p class="ecxMsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125); font-family: 'Calibri','sans-serif';"></span> </p>
<div>
<div style="border-right: medium none; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;">
<p class="ecxMsoNormal" style="margin-left: 0.5in;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';"> jayk123@hotmail.com [mailto:jayk123@hotmail.com]
<b>On Behalf Of </b>Jay K<br>
<b>Sent:</b> Monday, February 14, 2011 8:12 PM<br>
<b>To:</b> Coleburn, Randy; m3devel<br>
<b>Subject:</b> Re: [M3devel] More on threading</span></p>
</div>
</div>
<p class="ecxMsoNormal" style="margin-left: 0.5in;"> </p>
<p class="ecxMsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">Agreed -- I don't know of any reason Windows 2000 wouldn't work.<br>
Or possibly even older. The main "upgrade driving" factor is what the C toolset/runtime supports.<br>
And I've tested building with quite old C toolsets.<br>
Hm. Maybe the new-ish MAC address discovery code doesn't work on older systems? That could be.<br>
I could make that use GetProcAddress and fallback to the older code.<br>
That is an area with the historical code seemed too non-ideal to stick with, and clearer<br>
more direct code might depend on newer systems.<br>
<br>
<br>
- Jay<br>
<br>
<br>
> From: rcolebur@SCIRES.COM<br>
> To: m3devel@elegosoft.com<br>
> Date: Mon, 14 Feb 2011 18:01:14 -0500<br>
> Subject: Re: [M3devel] More on threading<br>
> <br>
> Mika wrote...<br>
> >But no I don't use Windows. I was asking on here how to get started with<br>
> >Modula-3 on Windows once but my machine was/is a Windows 2000 system and<br>
> >apparently CM3 no longer works on win2k..?<br>
> <br>
> I use CM3 on Windows 2000/XP/7 and it works on all of these versions.<br>
> --Randy Coleburn</span></p>
</div>
</div>
</div> </body>
</html>