can char * be used in the Symbian C++ paltform 1 code ?

Login to reply to this topic.
Mon, 2005-01-17 13:28
Joined: 2005-01-03
Forum posts: 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.

Mon, 2005-01-17 14:53
Joined: 2004-05-26
Forum posts: 73
can char * be used in the Symbian C++ paltform 1 code ?
What error do you get?
Mon, 2005-01-17 17:26
Anonymous (not verified)
Forum posts: 2043
can char * be used in the Symbian C++ paltform 1 code ?
Hi the error is
Code:
setData(unsigned char *) is not defined in the class ImageLib
where ImageLib is my class name.
  • Login to reply to this topic.