Article View: news.software.readers
Article #229474Can you run X.EXE under the debugger ?
From: Jeffβ²Relf
Date: Fri, 30 Jan 2009 15:31
Date: Fri, 30 Jan 2009 15:31
73 lines
3737 bytes
3737 bytes
Can you run X.EXE under the debugger ?
Are you an expert on Visual C++ 9 and
Visual Studio 2008 Standard Edition ?
If not, then it's no surprise that you can't follow it.
The hard-coded URL was an aborted attempt
to make X.EXE a mini web browser.
The hard-coded IP addresses were part of
an aborted attempt to get a hostname from an IP address.
( My cost-free ISP, NoCharge.COM, blocks pings and such )
β DaysPerYear = 365.2425, DaysPerMonth = DaysPerYear / 12 β
is good enough for reporting something like:
β β Was posted 3.6 months ago β and even β 2.1 years ago β β.
Someone ( Gergory Hall, I'm sure ) was forging ( a.k.a. frogging )
me and others using β Odessa.UA β.
I tagged those nyms with the β FaKE_ β prefix, like this:
β FaKE_LesβΈHarris β.
The β Header is endless β error message is not essential;
it's just there in case I ( me, and only me ) screw something up.
When X.EXE can't find what client was used to post an article,
it looks at the Message-ID or Host to come up with nicks like:
β MicroSoft_ β ( via its website ), β Web_TV_ β and β U_Cambridge β.
Here's some comments for the code you quoted from JeffRelf.F-M.FM/X.CPP:
// β Def( Title ) β, for example, creates a variable named β Title β
// and sets it to the current line ( and null terminates it ).
//
// β Title β is then used to see if the outgoing post
// has this essential field; it's also used to report what was sent.
// When testing and reporting, a leading β .. β becomes just β . β.
#define Def( NP ) \
LnP NP = P + EqN ( P, L"..", 2 ); _Def( B_Def, P, NP, Z, ChZ );
_Def( LnP & B_Def, LnP & P, LnP & NP, LnP & Z, wchar_t & ChZ ) {
// Remove leading spaces and tabs.
while ( * NP == 32 || * NP == 9 ) NP ++ ;
P = Find ( 10, B_Def = NP, 400 );
if ( ! P )
// No lineFeed, so get the null terminator.
// The line, which comes from something I wrote or copied,
// is seldom over 72 columns long, never over 400.
P = Find ( 0, B_Def, 400 );
// At this point, P points to the end of the line.
// Here, I used to have a warning about
// a line being over 400 columns long, but I took it out
// because I control the line length elsewhere.
Z = P ;
if ( * P )
// P, the end of the line, is not the null terminator;
// so move it to the start of the next line.
P ++ ;
// Remove trailing spaces from the line.
while ( Z > B_Def && * Z <= 32 ) Z -- ;
if ( * Z > 32 )
// Found some blackspace at the end of the line,
// move Z to β one beyond the blackspace β.
Z ++ ;
// Clobber the end of the line with a null,
// but remember what was there.
ChZ = * Z ; * Z = 0 ; }
Technical Details
Message-ID:
<Jeff_Relf@Seattle.2009_Jan.30|7.30am|y>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams.giganews.com!nntp.giganews.com!news.addix.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<z7ednbZD8-zrdh_UnZ2dnUVZ_q_inZ2d@giganews.com>Show Full Headers
Complete Article Headers
Message-ID: <Jeff_Relf@Seattle.2009_Jan.30|7.30am|y> Subject: Can you run X.EXE under the debugger ? Date: Fri, 30 Jan 2009 15:31:00 +0000 From: Jeffβ²Relf <Jeff_Relf@Seattle.Test> References: <z7ednbZD8-zrdh_UnZ2dnUVZ_q_inZ2d@giganews.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams.giganews.com!nntp.giganews.com!news.addix.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 73 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net WO0YkfSMQ0vbezfAIXOp2gRmOT4agQTfGf6F3d2h2DvbU/l7pr Cancel-Lock: sha1:9uFqem6cH0taA0cQNQa/QeZIeB4= User-Agent: JeffRelf.F-M.FM/X.ZIP