¡¾×ª¡¿°´¹Ò»ú¼üºó³ÌÐòÍ˵½ºǫ́ÔËÐУ¬°´c¼ü½áÊø³ÌÐò
http://blog.csdn.net/utopia2006/archive/2008/05/30/2495667.aspx
Ä¿µÄ£ºµ±³ÌÐòÔÚǰ̨ÔËÐÐʱ£¬°´¹Ò»ú¼ü³ÌÐò²»Í˳ö£¬Ö»ÊÇÍ˵½ºǫ́ÔËÐУ¬³ÌÐòÔÚºǫ́ÔËÐÐʱ£¬°´c¼üÄܰѳÌÐò½áÊø
·½·¨£ºÔÚHandleWsEventL()ÖÐÆÁ±Î¹Ò»ú¼üKAknUidValueEndKeyCloseEvent,ÔÚÖµÔÚavkon.hrhÖж¨Ò壬ʵ¼ùÖз¢ÏÖ8.0sdkµÄavkon.hrhûÓж¨ÒåKAknUidValueEndKeyCloseEvent£¬Î¨ÓÐÊÖ¹¤Ìí¼Ó¶¨Òå#define KAknUidValueEndKeyCloseEvent 0x101F87F0
²âÊÔ£ºÔÚ3230£¬N70ºÍE61iÉϲâÊÔͨ¹ý
void CMyClientAppUi::HandleWsEventL(const TWsEvent &aEvent, CCoeControl *aDestination)
{
switch (aEvent.Type())
{
case KAknUidValueEndKeyCloseEvent:
break;
default:
CAknAppUi::HandleWsEventL(aEvent, aDestination);
}
}
// ----------------------------------------------------
// CPocoClientAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CMyClientAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EEikCmdExit:
{
Exit();
break;
}
// TODO: Add Your command handling code here
default:
break;
}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------
ÐèÒªµ¯³ö¿òµÄ»°£¬¿É²Î¿¼£ºhttp://discussion.forum.nokia.com/forum/showthread.php?t=191426
5Â¥£º“·ÇÒª×öµÄ»°¡£¡£¡£ÓÃÒ»¸öglobalnote£¬µ±Óû§°´Ï“·ñ”µÄʱºò£¬ÔÙ°Ñ×Ô¼ºÇе½Ç°Ì¨¡£”
6Â¥£º
void CBTAlarmAppUi::HandleWsEventL(const TWsEvent &aEvent,
CCoeControl *aDestination)
{
if (KAknUidValueEndKeyCloseEvent == aEvent.Type())//Ϊ¹Ò»ú¼üʱ
{
TInt flag;
flag = ShowGlobalConfirmDialogL(_L("are you sure close application?"));
//close the application
i
Ïà¹ØÎĵµ£º
@echo --------------------- ÓÃÓÚ¡¶Ò»¸ö²Ù×÷ϵͳµÄʵÏÖ¡·µÄ cmd ---------------------
@echo off
mode con cols=80 lines=60 ::ǰһ¸öÊý×Ö»ò×ÖĸΪ±³¾°É«£¬ºóÒ»¸öÊý×Ö»òÕß×ÖĸΪǰ¾°É«£¬ÏÂÃæÊÇһЩÑÕÉ«¶ÔÓ¦µÄÊý×Ö»ò×Öĸ£º
::0£½ºÚ¡¢1£½À¶¡¢2£½ÂÌ¡¢3£½Ç³ÂÌ¡¢4£½ºì¡¢5£½×Ï¡¢6£½»Æ¡¢7=°×¡¢8=»Ò¡¢9=µÀ¶¡¢A£½µ ......
Ô¤´¦Àí¹ý³ÌɨÃèÔ´´úÂ룬¶ÔÆä½øÐгõ²½µÄת»»£¬²úÉúеÄÔ´´úÂëÌṩ¸ø±àÒëÆ÷¡£¿É¼ûÔ¤´¦Àí¹ý³ÌÏÈÓÚ±àÒëÆ÷¶ÔÔ´´úÂë½øÐд¦Àí¡£
ÔÚCÓïÑÔÖУ¬²¢Ã»ÓÐÈκÎÄÚÔڵĻúÖÆÀ´Íê³ÉÈçÏÂһЩ¹¦ÄÜ£ºÔÚ±àÒëʱ°üº¬ÆäËûÔ´Îļþ¡¢¶¨Òåºê¡¢¸ù¾ÝÌõ¼þ¾ö¶¨±àÒëʱÊÇ·ñ°üº¬Ä³Ð©´úÂë¡£ÒªÍê³ÉÕâЩ¹¤×÷£¬¾ÍÐèҪʹÓÃÔ¤´¦Àí³ÌÐò¡£¾¡¹ÜÔÚĿǰ¾ø´ó¶àÊý±àÒëÆ÷¶¼°üº ......
[This was posted to comp.lang.c by its author, David Anderson, on 1994-05-06.]
The ``Clockwise/Spiral Rule''
By David Anderson
There is a technique known as the ``Clockwise/Spiral Rule'' which enables any C programmer to parse in their head any C declaration!
There are three simple steps to fo ......
JavaÖе÷ÓÃC/C++Éú³ÉµÄDLL
Ò»¡¢ Éú³ÉCµÄÍ·Îļþ
¡¡¡¡1. ±à¼Main.java
¡¡public class Main
¡¡¡¡{
¡¡¡¡public native static int getStrNum(byte str[], int strLen);
¡¡¡¡}
¡¡¡¡2. Éú³ÉÍ·Îļþ
¡¡¡¡°´win + r´ò¿ª“ÔËÐД´°¿Ú£¬ÊäÈë“cmd”£¬´ò¿ª ......
µ±¶ÁÕßÓÐÒ»¶¨c/c++»ù´¡
ÍÆ¼öµÄÔĶÁ˳Ðò:
level 1
´Ó<<essential c++>>¿ªÊ¼£¬¶ÌС¾«º·£¬¿ÉÒÔ¶Ôc++ÄܽøÒ»²½Á˽âÆäÌØÐÔ
ÒÔ<<c++ primer>>×÷×ÖµäºÍ¿ÎÍâ¶ÁÎÒòΪ̫ºñ²»¿ÉÄÜÒ»¿ÚÆø¿´Íê
level 2
È»ºó´Ó<<effective c++>>¿ªÊ¼×ªÖ°£¬ÕâÊÇÊ¥¾£¬Çë×ñÊØ10½ë£¬Òª¾³£¿´£¬Ã»Ê¾ÍÄÃÀ´··
......