Hi Toni,

        I've taken a look at other implementations of dynModuleExecutionImpl 
and your code seems correct. The error says that cannot convert between two 
types. It could be a missing include file of one type: dynModuleExecutionImpl.h 
or blSmartPointer.h.

        If this doesn't fix the problem, could you please send me the header 
file?

Best,
Xavi

-----Original Message-----
From: antoni artigues [mailto:[email protected]] 
Sent: lunes, 09 de mayo de 2011 13:49
To: [email protected]
Subject: [Gimias-developers] Instantiation error dynModuleExecutionImpl

Hello,

I create new class dynModuleUnicoreExecution extenden from:
dynModuleExecutionImpl

When I try to create an instance:

uc::dynModuleUnicoreExecution::Factory::Pointer factory = 
uc::dynModuleUnicoreExecution::Factory::New();

I obtain this compilation error:

error C2440: 'inicializando' : no se puede realizar la conversión de 
'dynModuleExecutionImpl::Factory::Pointer' a 'blSmartPointer<ObjectType>'

Where is the problem?

The first header file lines are:

-----------------------------------------------------------
class dynModuleUnicoreExecution : public dynModuleExecutionImpl {
public:
        typedef dynModuleUnicoreExecution Self;
        typedef blSmartPointer<Self> Pointer;
        blNewMacro(Self);
        defineModuleFactory(  dynModuleUnicoreExecution );

        //!
        void Update( );

protected:
        //!
        dynModuleUnicoreExecution( );
.
.
.
-----------------------------------------------------------

Thanks in advance

Antoni Artigues


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software The most intuitive, 
comprehensive, and cost-effective network management toolset available today.  
Delivers lowest initial acquisition cost and overall TCO of any competing 
solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to