Vurdalak
a me da più di 29 errori e temo mi manchi qualcosa... però funziona...mi daresti un elenco del materiale necessario x usare correttamente il symbian con un ambiente di sviluppo c?
un'altra cosa... non sai dove posso trovare il sorgente Symbiant?
Purtroppo il symbian non lo conosco, ma già noto un semplice errore di scrittura....l'include di ProvaContainer..avevi messo la c minuscola...se mi scrivessi i 29 errori che ti da, potrei esserti pià utile.
Codice:
// Implementation of CProvaContainer
#include <aknutils.h>
#include <Prova.rsg>
#include <uikon.hrh>
#include "ProvaContainer.h"
CProvaContainer* CProvaContainer::NewL(const TRect& aRect)
{
CProvaContainer* self = CProvaContainer::NewLC(aRect);
CleanupStack::Pop(self);
return self;
}
CProvaContainer* CProvaContainer::NewLC(const TRect& aRect)
{
CProvaContainer* self = new (ELeave) CProvaContainer;
CleanupStack::PushL(self);
self->ConstructL(aRect);
return self;
}
CProvaContainer::CProvaContainer()
{
}
CProvaContainer::~CProvaContainer()
{
CleanupComponents();
iCtrlArray.Reset();
}
void CProvaContainer::InitComponentsL()
{
/* 18/05/05 14.13 */
iBackgroundColor = iEikonEnv->Color( EColorControlBackground );
iEikonEnv->AppUiFactory()->StatusPane()->MakeVisible( EFalse );
SetRect( TRect( 0, 0, 176, 208 ) );
}
void CProvaContainer::CleanupComponents()
{
/* 18/05/05 14.13 */
}
void CProvaContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
InitComponentsL();
ActivateL();
}
void CProvaContainer:raw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.SetPenStyle(CGraphicsContext::ENullPen);
gc.SetBrushColor(iBackgroundColor);
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.DrawRect(aRect);
}
TInt CProvaContainer::CountComponentControls() const
{
return iCtrlArray.Count();
}
CCoeControl* CProvaContainer::ComponentControl(TInt aIndex) const
{
return (CCoeControl*)iCtrlArray[aIndex];
}
TKeyResponse CProvaContainer:fferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
{
if (HandleKeyEvents(aKeyEvent, aType))
return EKeyWasConsumed;
else if(iFocusedControl)
return iFocusedControl->OfferKeyEventL(aKeyEvent, aType);
else
return EKeyWasNotConsumed;
}
void CProvaContainer::HandleControlEventL(CCoeControl * aControl, TCoeEvent aEventType)
{
DispatchControlEvents(aControl, aEventType);
}
bool CProvaContainer:ispatchViewCommandEvents(TInt aCommand)
{
return false;
}
void CProvaContainer:ispatchControlEvents(CCoeControl * aControl, TCoeEvent aEventType)
{
}
bool CProvaContainer::HandleKeyEvents(const TKeyEvent& aKeyEvent, TEventCode aType)
{
return false;
}
void CProvaContainer::ChangeFocus(CCoeControl * aNewControl)
{
if(iFocusedControl)
iFocusedControl->SetFocus(EFalse);
iFocusedControl = aNewControl;
if(iFocusedControl)
iFocusedControl->SetFocus(ETrue);
}
Cmq prova a d andare sul sito www.symbian.org/devloper/
l'SDK di symbian si trova qui:
http://www.symbian.com/developer/sdks_series60.asp
Ciao
Nicola