|
Does anyone know what the INTERNAL COMPILER ERROR means?
<br />
--------------------Configuration: Implementation - Win32 Debug--------------------<br />
Compiling...<br />
Implementation.cpp<br />
I:\Documents and Settings\Implementation.cpp(48) : fatal error C1001: INTERNAL COMPILER ERROR<br />
(compiler file 'msc1.cpp', line 1794) <br />
Please choose the Technical Support command on the Visual C++ <br />
Help menu, or open the Technical Support help file for more information<br />
Main.cpp<br />
Error executing cl.exe.<br />
<br />
Implementation.exe - 1 error(s), 0 warning(s)<br />
I found this http://owlnext.sourceforge.net/qa51.html[^].
The site says, "This error occurs only on machines with the Windows 95 or Windows 98 operating system."
But I am running Win XP Home w/SP2.
I'm puzzled.
Thanks,
Eric
|
|
|
|
|
Oops, nevermind the INTERNAL COMPILER ERROR.
I forgot a set of parenthesis (see http://lithiumdata.com/QandA/compileerror.htm[^]).
Originally I had:
<br />
Car::~Car<br />
{<br />
cout << "\n\n The destructor has been called.\n\n";<br />
}<br />
Here is what it needs to be:
<br />
Car::~Car()<br />
{<br />
cout << "\n\n The destructor has been called.\n\n";<br />
}<br />
Thanks,
Eric
|
|
|
|
|
if i have a clistctrl on my dialog.
a variable called list is associated with it.
now, i want to add listview-groups in this list.
i try to create a PLVGROUP-structure,
but if i want to run this code, the compiler generates an error.
i can't create any PLVGROUP structure!
what do i have to do to create one? if i create
a variable of PLVGROUP, then i can access it's members, like cbSize.
but if i want to compile, it doesn't work.
can anyone help me?
(i hope you understand my bad english. im from switzerland, so i don't
know english very well )
|
|
|
|
|
|
#include "commctrl.h"
Software Zen: delete this;
|
|
|
|
|
thanks.
but it still doesn't work when i add "#include 'commctrl.h'".
and: how do i specify comctl32.dll, ver. 6 in the manifest?
|
|
|
|
|
LVGROUP is only for XP+ so you have to tell your compiler that you are targeting XP.
in your stdafx.h file add the following
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x501 // target windows NT version 5.01 (XP)
#endif If you do not do this then the portions of commctrl.h that declares LVGROUP etc. is left out by the preprocessor.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
oke, i tried to do this.
but if i compile, it still fails....
do i have to include other headers or
some libs?
i hope you can help me! thanks
|
|
|
|
|
"It fails" is not very discriptive. If look at the compiler output it will give you an error number (ie C####), a brief description of the error, and the line number in your files that caused the error. Look up the error number in MSDN for a better description, and possible solution for the error. Then try to fix your source file taking into account what MSDN says. If you still have troubles, then post the code here that caused the error, and the compiler output that describes the error, complete with the error number. Then maybe I can help you, but the most obvious solutions, based on the very limited info you supplied, has already been given by me and others.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hi.
Although i have some experience in VC++ but lack in fundamentals and want to learn some basics of VC++ 6.plese help me in this regard.
please forward me the links at "ubiquee@gmail.com".
thanks
|
|
|
|
|
|
Thanks for the link .but i am looking for visual C++ vesion 6.there is a difference between the version 6 and 5.(in commands and prcedures)
|
|
|
|
|
|
Hi.
Although i have some experience in VC++ but lack in fundamentals and want to learn some basics of VC++ 6.plese help me in this regard.
thanks
|
|
|
|
|
|
I have this program I have to write for school that accepts two integers. hours and minutes. I then have to output the format in 6:00 format. I'm only allowed integer division and and modulus division. I've tried everything I can think of but my output still looks like this. 6:0 Any tips?
BINARY
|
|
|
|
|
How about this?
int main(int argc, char* argv[])
{
int hours = 6;
int minutes = 7;
int seconds = 8;
printf("%d:%02d:%02d\n", hours, minutes, seconds);
return 0;
}
|
|
|
|
|
or, without using printf formatting trick, try this:
int main(int argc, char* argv[])
{
int hours = 6;
int minutes = 7;
printf("%d:%d%d\n", hours, minutes / 10, minutes % 10);
return 0;
}
|
|
|
|
|
little too advance for a student who just started learn C++ three weeks ago. Plus It has to advance the hour when the minutes go over 59. I am so stuck.
I cant even use conditional operators
Here's what I got:
#include<iostream><br />
#include<iomanip><br />
using namespace std;<br />
<br />
<br />
int main()<br />
<br />
{<br />
int hours, minutes ;<br />
<br />
<br />
cout << "Input the time as hours and minutes (e.g. 5 23 means 5:23) " ;<br />
<br />
cin >> hours >> minutes ;<br />
<br />
const int minutes_per_hour = 59;<br />
<br />
minutes = minutes + 1;<br />
<br />
<br />
<br />
<br />
cout << " The time is: " << hours<< " :"<< setfill('0')<<setw(1) << minutes << endl ;<br />
<br />
<br />
<br />
<br />
<br />
<br />
system("pause");<br />
<br />
return 0 ;<br />
<br />
}
BINARY
-- modified at 2:22 Sunday 23rd October, 2005
|
|
|
|
|
Change setw(1) to setw(2) .
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Couple more things:
- your minutes_per_hour constant should 60, not 59.
- your hours calculation, even though it is commented out, is not correct.
- after incrementing minutes, you should probably adjust its value using the mod function (% function).
Below is example code also using PJ's setw(2) change:
const int minutes_per_hour = 60;
minutes = minutes + 1;
hours = hours + (minutes / minutes_per_hour);
minutes = minutes % minutes_per_hour;
cout << " The time is: " << hours << ":"<< setfill('0') << setw(2) << minutes << endl;
In Line 1, the expression "x / y" returns the integral portion of x divided by y. When x is 60 and y is 60, this expression yields 1, which will increment the hours by 1. When x is less than y, this expression yields 0, and the hours value is unchanged.
In Line 2, the expression "x % y" returns the remainder value that you get when you divide x by y. If x is less than y, it returns just the value x. If x is 60 and y is 60, the remainder is 0, which handles the case when the minutes goes past 59 (you want it to display 00).
|
|
|
|
|
Thank you so much you people are my heroes
BINARY
|
|
|
|
|
I'll try to inform you of my problem in the best way possible. And I think the best way to do that is to show you a little code that goes with it.
<br />
CObList list;
<br />
---------------------------------------<br />
<br />
class CLineAccess : public CObject
{<br />
DECLARE_DYNAMIC( CLineAccess)<br />
<br />
---------------------------------------<br />
<br />
CLineAccess *temp;<br />
temp = (CLineAccess *)list.GetHead();
pos = list.GetHeadPosition();
<br />
dc.MoveTo(temp->GetStartX(), temp->GetStartY());<br />
dc.LineTo(temp->GetEndX(), temp->GetEndY());<br />
I then have a while loop that gets all the next lines that I am attempting to draw. The only problem is that it seems my CPaintDC dc(this); only draws the last line in the list. Does MoveTo() erase all the previous lines? I get a return of (1) on every run through of the LineTo() so I know that the lines are being drawn. Being that temp is just a local pointer used to traverse through the list I don't see any problems about reusing it. Do any of you have an idea?
|
|
|
|
|
Anonymous wrote: Does MoveTo() erase all the previous lines?
No, but your OnEraseBackground() handler clears all previously drawn lines before calling your OnPaint() handler. You'll need to repaint the entire collection of lines in OnPaint() .
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Anonymous wrote: Does MoveTo() erase all the previous lines?
MoveTo() does not erase anything.
Anonymous wrote: Being that temp is just a local pointer used to traverse through the list I don't see any problems about reusing it.
Reusing temp should not be a problem.
Anonymous wrote: I then have a while loop that gets all the next lines that I am attempting to draw.
Can you show the code for that loop? It almost seems to me that you are drawing the same line over and over again.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|