语言

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++
}

编辑者为: Vitaly 06 4月, 2014

响应

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))