paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] Re: Signels ?


From: Ulf Lorenz
Subject: Re: [paragui-users] Re: Signels ?
Date: Tue, 29 Mar 2005 16:48:48 +0200
User-agent: Mutt/1.5.6+20040907i

On Tue, Mar 22, 2005 at 11:55:03AM +0000, David Stubbs wrote:
> Hi All,
> 
> Thought I would point out the mistakes that I have made just incase it
> helps anybody else thats finds them self's with the same problems...
> (lack of knowledge). I think my infancy with C++ coursed a lot of
> problems so it took me some time but here is the modified test program
> that works. Differences are that the "Testing" class now inherits from
> the SigC::Object and the "PrintHello" member function has the return
> type of bool. The only other change is that the instance "t1" of the
> "Testing" class in instantiated by "Testing t1;" not "Testing t1();",
> not sure why this makes a difference but it does (once again my lack
> of knowledge).
In short:

- the slot function _demands_ a class that is derived from SigC::Object,
  else it makes problems
- all paragui signals require a slot with a bool return value; the
  return value is (mostly?) not used that, but in general why not return
  false on error. :)


Ulf

-- 
recursive:
            see recursive




reply via email to

[Prev in Thread] Current Thread [Next in Thread]