언어 설정

Menu
Sites
Language
PLEASE REMOVE IT

I come from Java and Objective-C .... (porting program to tizen)

And I did't know that impossible to call one constructor from another....

Loose whole day to understand where is bug :-)

Please remove this post

class my : public Tizen::Base::Object {
public:
my();
my(int i);
~my();
...

Bitmap* getBitmap();
private:
Bitmap* rBitmap;
int par;
};

my::my()
{
rBitmap=NULL;
par=300;
AppLog("Default constructor");
}

my::my(int i)
{
my();
// I wait that rBitmap==NULL now... But this is non Java.... That's impossible in C++
}

Edited by: Vitaly on 06 4월, 2014

Responses

1 댓글

You code is complicated for simple task IMO. You can store bitmap path in ArrayListT<String> and then use

Bitmap* bmp= pAppResource->GetBitmapN((ArrayListT->get(index))