Article View: alt.comp.lang.learn.c-c++
Article #488Re: Need you guys' help!
From: Nick Lawrence
Date: Tue, 03 Oct 2000 00:00
Date: Tue, 03 Oct 2000 00:00
46 lines
2514 bytes
2514 bytes
You probably have a pointer problem. If this is the only real line of code in your program, I would start by checking to see that pC is initalized correctly or points to a valid object. Otherwise you may have to find a debugger and step through your code. :) Memory problems and uninitalized data often do not show up the same on different machines....It may 'just happen' to work for the time being on that other machine. Its also possible (although less likely) that you have an inconsistancy in the code you compiled and the DDL's on your machine. Yanxia Liu <yliu6@eos.ncsu.edu> wrote in message news:39DA4BC7.3EF28AC3@eos.ncsu.edu... > Hi, > > I met a very strange problem when I tried to use C++ via MFCAppWizard to > create a first program. I followed the instruction to type in a single line > of code: > > pC->TextOut(50,50,"Hello!",10); > > 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". > > I ran the same program in other computer. It works very well. Nothing > happened. > > What's wrong about my computer or my program? I appreciate you very much for > you time and your help. > > Cheerio, > > YL > > >
Technical Details
Message-ID:
<8rdlu8$ci0$1@news.rchland.ibm.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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: 114592,f2706f20e1973f75 X-Google-Attributes: gid114592,public X-Google-Thread: f7a51,f2706f20e1973f75 X-Google-Attributes: gidf7a51,public X-Google-Thread: 109fba,f2706f20e1973f75 X-Google-Attributes: gid109fba,public X-Google-Thread: 103bde,f2706f20e1973f75 X-Google-Attributes: gid103bde,public X-Google-Thread: f5ca7,f2706f20e1973f75 X-Google-Attributes: gidf5ca7,public From: "Nick Lawrence" <ntl@us.ibm.com> Subject: Re: Need you guys' help! Date: 2000/10/03 Message-ID: <8rdlu8$ci0$1@news.rchland.ibm.com> X-Deja-AN: 677220866 References: <39da0385.0@news.ruca.ua.ac.be> <39DA4BC7.3EF28AC3@eos.ncsu.edu> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: usenet@news.rchland.ibm.com X-Trace: news.rchland.ibm.com 970611464 12864 9.5.4.252 (3 Oct 2000 22:17:44 GMT) Organization: IBM Rochester MN X-MSMail-Priority: Normal NNTP-Posting-Date: 3 Oct 2000 22:17:44 GMT Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.winapi,borland.public.cppbuilder.winapi,comp.lang.c++,microsoft.public.vc.language