Re: Maemomm
- From: "Naveen Verma" <ernaveenverma gmail com>
- To: "Md. Golam Sarower" <golam sarower bjitgroup com>
- Cc: gtkmm-list gnome org
- Subject: Re: Maemomm
- Date: Mon, 25 Jun 2007 17:09:35 +0300
Dear Sarower,
As per my understanding from the documentation and used in my application. In Gktmm pointers are like Glib::RefPtr, which is a kind of smart pointer. So you can resolve this issue by declaring you member variable as:
Glib::RefPtr<Gdk::Pixmap> pixmap;
Glib::RefPtr<Gdk::GC> gc;
And you can use then as normal pointer as pixmap-><functioncall>, gc-><functioncall>., and you don't need to delete it. It will get deleted by itself.
-Br
Naveen
On 6/25/07, Md. Golam Sarower <golam sarower bjitgroup com> wrote:
Dear paul,
I am very glad to get your mail. Now I am able to work in c++. but some
problem is creating there. Suppose I want to use the GDK/gc, pixmap etc.
but it shows some errors, like:
Gdk::Pixmap *pixmap;
Gdk::GC *gc;
Declare in constructor. It does not show error. but when i am going to
use the functions in the .cc files it shows error like:
Line 37 here:
gc = get_style()->get_fg_gc(get_state());
win.draw_pixmap(gc ,
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
event->area.width, event->area.height);
ScribbleDrawingArea.cc:37: error: cannot convert `Glib::RefPtr<Gdk::GC>'
to `Gdk::GC*' in assignment
ScribbleDrawingArea.cc:38: error: 'class Glib::RefPtr<Gdk::Window>' has
no member named 'draw_pixmap'
ScribbleDrawingArea.cc:40: error: invalid use of member (did you forget
the `&' ?)
ScribbleDrawingArea.cc:40: error: base operand of `->' is not a pointer
ScribbleDrawingArea.cc:40: error: invalid use of member (did you forget
the `&' ?)
ScribbleDrawingArea.cc:40: error: base operand of `->' is not a pointer
ScribbleDrawingArea.cc:41: error: invalid use of member (did you forget
the `&' ?)
ScribbleDrawingArea.cc
:41: error: base operand of `->' is not a pointer
ScribbleDrawingArea.cc:41: error: invalid use of member (did you forget
the `&' ?)
ScribbleDrawingArea.cc:41: error: base operand of `->' is not a pointer
ScribbleDrawingArea.cc:42: error: invalid use of member (did you forget
the `&' ?)
ScribbleDrawingArea.cc:42: error: base operand of `->' is not a pointer
ScribbleDrawingArea.cc:42: error: invalid use of member (did you forget
the `&' ?)
ScribbleDrawingArea.cc:42: error: base operand of `->' is not a pointer
If you have any suggestion then please response ASAP.
Thanking you
Sarower
Paul Davis wrote:
> On 6/6/07, Md. Golam Sarower <golam sarower bjitgroup com> wrote:
>> Hi,
>>
>> I have been working on maemo for 2 months. I am very new in this
>> platform. I used to use the C language. Now i want to use C++ as the
>> programming language. Is it now possible to do it in full flexibility
>> than C?? If so then now what I have to do to set up the development
>> environment? I want to keep the previous set up use for C. I would be
>> very great full to you, if you assist me to this task.
>>
>> Thanking
>> Sarower
>> Bangladesh
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> gtkmm-list gnome org
>>
http://mail.gnome.org/mailman/listinfo/gtkmm-list
>>
>
> There appears to be a maemomm project. You'll probably get a good
> start by reading the docs and examples about that.
>
> Paul
>
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]