I used the following code to lock my program to work only as portrait
but i get an error that CEikonEnv is unknown i inluded #include <eikenv.h> and i again get that there is no such file name.Code:#ifdef TMGN_SYMBIAN_5 CAknAppUi* appUi = dynamic_cast<CAknAppUi*>(CEikonEnv::Static()->AppUi()); if(appUi){ QT_TRAP_THROWING(appUi ->SetOrientationL( CAknAppUi::EAppUiOrientationLandscape)); } #endif
I wonder how to make this code work or if there is another way of locking the application to portrait given that my application is self signed."i cann't access extra capabilities"



