<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>For good reason, imported (dynamically linked) data doesn't work great on Win32.<BR>
Functions work much better. Data can work, but you generally need the header to say __declspec(dllimport), to change it to a declaration of a pointer. I've seen GNU ld has some workaround but I'm not familiar with it, it doesn't worthwhile to me, and I'm having a problem.<BR>
<BR>
I strongly suggest all the Utime.i3:<BR>
<BR>
<*EXTERNAL*> VAR timezone: time_t;<BR><*EXTERNAL*> VAR daylight: int;<BR><*EXTERNAL*> VAR tzname: ARRAY [0..1] OF char_star;<BR><BR>
be changed to functions:<BR>
<BR>
<*EXTERNAL Utime__get_timezone*> get_timezone(): time_t;<BR><*EXTERNAL Utime__get_daylight*> get_daylight(): int;<BR><*EXTERNAL Utime__get_tzname*> get_tzname(a: [0..1]): char_star;<BR><BR>
<BR>
with an implementation in C:<BR>
<BR>
UtimeC.c<BR>#include <time.h><BR>
time_t Utime__get_timezone(void)<BR>{<BR> return timezone;<BR>}<BR>
<BR>
int Utime__get_daylight(void)<BR>{<BR> return daylight;<BR>}<BR>
<BR>
char* Utime__get_tzname(unsigned a)<BR>{<BR> return tzname[a];<BR>}<BR><BR>
for now I'm going to try another workaround..where NT386GNU has this data as not external and some C code to call tzset and then copy the data from the C globals to Modula-3 globals.<BR>
<BR>
The datetime feature I added to Quake is crashing, I think due to this...<BR>
<BR>
- Jay<BR><br /><hr />Shed those extra pounds with MSN and The Biggest Loser! <a href='http://biggestloser.msn.com/' target='_new'>Learn more.</a></body>
</html>