🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #487

Re: Need you guys' help!

#487
From: Josh Sebastian
Date: Tue, 03 Oct 2000 00:00
38 lines
2194 bytes
On Tue, 03 Oct 2000 17:12:39 -0400, Yanxia Liu <yliu6@eos.ncsu.edu>
wrote:

>Hi,
>
>I met a very strange problem when I tried to use C++ via MFCAppWizard to
>create a first program.

MFC is off-topic.

> I followed the instruction to type in a single line
>of code:
>
>pC->TextOut(50,50,"Hello!",10);

Did you (or the framework) allocate memory for pC?

>
>It was compiled and builed. And it created an executive file. But it didn't
>allow me to execute it. When I tried to execute the hello.exe file, a message
>window was jumped. It said::"This program has performed an illegal operation
>and will be shut down".

But your program *did* run. While it was running, it performed an
illegal action, so the OS decieded to shut it down.

>
>I ran the same program in other computer. It works very well. Nothing
>happened.

Memory access violations are not always repeatable with different
computers (or even on the same computer).
_______

"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.

Josh Sebastian
<curien@earthlink.net>
Technical Details
Message-ID: <39da59be.1108239864@news.earthlink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39da0385.0@news.ruca.ua.ac.be> <39DA4BC7.3EF28AC3@eos.ncsu.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5ca7,f2706f20e1973f75
X-Google-Attributes: gidf5ca7,public
X-Google-Thread: f7a51,f2706f20e1973f75
X-Google-Attributes: gidf7a51,public
X-Google-Thread: 109fba,f2706f20e1973f75
X-Google-Attributes: gid109fba,public
X-Google-Thread: 114592,f2706f20e1973f75
X-Google-Attributes: gid114592,public
X-Google-Thread: 103bde,f2706f20e1973f75
X-Google-Attributes: gid103bde,public
From: curien@earthlink.net (Josh Sebastian)
Subject: Re: Need you guys' help!
Date: 2000/10/03
Message-ID: <39da59be.1108239864@news.earthlink.net>
X-Deja-AN: 677219842
References: <39da0385.0@news.ruca.ua.ac.be> <39DA4BC7.3EF28AC3@eos.ncsu.edu>
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 970611406 63.178.118.11 (Tue, 03 Oct 2000 15:16:46 PDT)
Organization: EarthLink Inc. -- http://www.EarthLink.net
NNTP-Posting-Date: Tue, 03 Oct 2000 15:16:46 PDT
Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.winapi,borland.public.cppbuilder.winapi,comp.lang.c++,microsoft.public.vc.language