Menu
comp.lang
Embarcadero
Microsoft
Related Sites

Newsgroup: microsoft.public.vsnet.general


=?Utf-8?B?Um9iYnk=?= - I can't believe I am stuck on this! -   15 Nov, 18:16 [ Get full thread ]  
I can't believe I am stuck on this!
Hello,

Forgive my so basic question, but my program doesn't compile, and I really 
don't know why... The errors point to the following line of the code:

v = (s*COLUMNS)*3;

The line above really doesn't seem to be a problem, does it?

Here is the code:
================================================

int r[69696];  //Read from source file
int st[69696]; //Re-structure data from Windows format to ST Flash format!
int w[46464];  //Write to target file

void main(void)
{

#define ROWS 132;
#define COLUMNS 176;
#define WINCOLS 528;

long s,PIXELSTOCONVERT=0,t=0,v=0;	//Declare some long utility variables

//... other code

printf("DATA IS BEING RE-STRUCTURED, PLEASE WAIT!\n\n");

for(s=131;s>0;s--)
{
	v = (s*COLUMNS)*3;           //<<< ERROR POINTS HERE !!!!!
	for(t=0;t<COLUMNS;t++)
	{
		st[v+t] = r[t+((131-s)*WINCOLS];     
	}
}

//... other code

===================================================

here are the first coup[le of errors I get!

c:\_DTS_PROGRAMMING\C_PROGRAMMING\c\BITMAP_CONVERTOR\BCM\BMC_24_16\BMC.cpp(94): error C2143: syntax error : missing ')' before ';'

c:\_DTS_PROGRAMMING\C_PROGRAMMING\c\BITMAP_CONVERTOR\BCM\BMC_24_16\BMC.cpp(94): error C2059: syntax error : ')'

c:\_DTS_PROGRAMMING\C_PROGRAMMING\c\BITMAP_CONVERTOR\BCM\BMC_24_16\BMC.cpp(94): error C2100: illegal indirection

-- 
Best regards
Robert
David Webber - Re: I can't believe I am stuck on this! -   15 Nov, 18:30 [ Get full thread ]  
Igor Tandetnik - Re: I can't believe I am stuck on this! -   15 Nov, 18:32 [ Get full thread ]  
nathan - Re: I can't believe I am stuck on this! -   15 Nov, 18:52 [ Get full thread ]  

Click on title to retrieve message.