|
|
User login
Feeds |
can char * be used in the Symbian C++ paltform 1 code ?
|
|||||
| Mon, 2005-01-17 13:28 | |
|
Hi,
I have been trying a lot to compile a correct peice of code, in which borland c++ mobile builder reports the error as. Where can the error possibly be. funct is not a member of class The code segment for C++ class and .h file is as follows Code: .ccp file segment void ImageLib::setData(char* data1){ for(int i=0;i<width;i++){ for(int j=0;j<height;j++){ data[j*width+i]=data1[j*width+i]; } } } void ImageLib::setData(int i,int j,int value){ if(isValid(i,j)){ if(value > 0) data[j*width+i]=(unsigned char)value; else data[j*width+i]=0; } } void ImageLib::setData(int *data1){ for(int i=0;i<width;i++){ for(int j=0;j<height;j++){ data[j*width+i]=data1[j*width+i]; } } } Code: .h file's segment void setData(char * d); void setSize(int height, int width,int max=255); void setData(int *data); I have already tried replacing char* with TDes& in both the place the error remains the same. Please Help. |
|
Forum posts: 73