PE> How's your comms?
MS> Ok. I've written a simple shell-based text-only terminal, which uses
MS> asynchronous IO for the console & the serial port. I've also
MS> written a little program to set the time by calling CompuTime.
PE> I have a program called RSEND*.* (FREQ), which will transfer the
PE> files. The only thing it needs is PDCOMM (also available for
PE> FREQ) to have an Amiga port. I will be modifying the PDCOMM
PE> interface soon, but I suspect the main work of comms will not
PE> change.
I have finished the PDCOMM interface, and have converted all of PDCOMM,
PDPZM, DDC and RSEND to use the new interface, and with a bit of luck I'll
be releasing new versions of all of them tomorrow. The luck is I am trying
to track down a bug in rsend for DOS at the moment and it's not being very
helpful.
MS> Sounds good! I'd love to be able to get away from using NComm.
OK, I'll attach the new PDCOMM as soon as it's written. If you can get the
com*test program to work, then you should have immediate access to the
other programs I have written.
MS>> I think it's MsgEd, not Tobruk, but you're the expert.
PE> No, I thought you were saying that Tobruk was at fault, and I
PE> was not disbelieving you, but I wanted you to make sure.
MS> You did??? I was talking about the messages that I was reading in
MS> MsgEd...
Yeah, I can't remember how I interpreted that with that assumption. I
reread what you wrote, and there was no mention of Tobruk.
PE> I think you'll need to debug where in MSGED that is happening.
PE> Can you put some printfs into the mtime() function in date.c and
PE> see what path it is taking, and what is being put into tmp.
MS> sprintf(tmp, "%02d %s %02d %02d:%02d:%02d",
MS> tm->tm_mday, month[tm->tm_mon], tm->tm_year,
MS> tm->tm_hour, tm->tm_min, tm->tm_sec);
MS> fprintf(zzz, "Good date = %s\n", tmp);
MS> }
MS> When reading a message
Ok, we'll debug this one first. READING one of MY messages, where you
confirmed (via hexdump) that the .msg is correct.
MS> it prints: Good date = 01 Jan 96 15:25:48.
BTW, I am suspicious about mktime() or localtime() not working, you didn't
write either of those yourself did you? Also, are you using a decent
strtok()? Because the next thing I want to know is what is happening in
parsedate() in date.c. Can you put in some debug info to find out what the
value of tm_year and tm_mon are, just before mktime() is called? Oh, and
the input string, too.
BTW, can you wait until we've debugged this BEFORE starting to experiment
with MSGAPI3X.ZIP.
BFN. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|