Time of Update: 2018-12-05
一、AEEClsCreateInstance中 調用 AEEApplet_New( sizeof(CMain), ClsId, pIShell, po, (IApplet**)ppObj, (AEEHANDLER)CMain::HandleEvent, (PFNFREEAPPDATA)CMain::freeAppData) ) ;如果 sizeof(CMain) 等於1 也就是 該類沒有成員變數時,在真機上運行時,, 運行到 AEEApplet_New 中的
Time of Update: 2018-12-05
// 定義路徑#ifdef _DEBUG _LIT(KPath, "c://System//Apps//myfile");//C盤對應/epoc32/wins/c#else _LIT(KPath, "e://myfile");// e盤對應手機上的e盤#endif// 用於儲存檔案夾名稱RPointerArray<HBufC> iFolderlist; // 第一種方法CDirScan* ds =
Time of Update: 2018-12-05
VS2005 + widows mobile 5.0 ppc win32項目 第一種方法一、標頭檔/********************************************************************* Name: Image_C.h* Creater: Yunhong Mi* Date: 2009-09-23* Summary: 圖片類* Note:*********************************
Time of Update: 2018-12-05
轉載自:http://read.pudn.com/downloads10/sourcecode/comm/39460/databasesample/databasesample.c__.htm /*=========================================================================== FILE: databasesample.c====================================================
Time of Update: 2018-12-05
雖然做出來了,還是很失望的!!!加油!!!還是慢慢來吧!!!》》》》》》》》》》》》》》》》》》》》》》》》》》《《《《《《《《《《《《《《《《《《《《《《《《《《《》》》》《《《《很簡單的一道題,一步步的走,走出矩陣則說明沒有環,若走到已經走過的地方,說明有環,按格式輸出結果即可!!!#include<stdio.h>#include<string.h>int n,m,temp;int ans[1010][1010];char map[1010][1010];void
Time of Update: 2018-12-05
要畫一個紅色的水平直線// 一般會選擇以下實現, RGBVAL old = IDISPLAY_SetColor(_DISPLAY, CLR_USER_LINE, MAKE_RGB(255,0,0)); IDISPLAY_DrawHLine(_DISPLAY, 0, 20, 50); IDISPLAY_SetColor(_DISPLAY, CLR_USER_LINE, old);// 但畫的總是黑色的線,原來#define
Time of Update: 2018-12-05
轉載自: http://www.jysls.com/thread-19975-1-1.html 在所有的預先處理指令中,#Pragma 指令可能是最複雜的了,它的作用是設定編譯器的狀態或者是指示編譯器完成一些特定的動作。#pragma指令對每個編譯器給出了一個方法,在保持與C和C++語言完全相容的情況下,給出主機或作業系統專有的特徵。依據定義,編譯指示是機器或作業系統專有的,且對於每個編譯器都是不同的。 其格式一般為: #Pragma Para 其中Para 為參數,下面來看一些常用的參數。 (
Time of Update: 2018-12-05
此刻再看優先隊列,不像剛接觸時的那般迷茫!這也許就是集訓的成果吧!加油!!!優先隊列必須要搞定的!這道題意很簡單!自己定義優先順序別!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++===================================================================================+++++++++++++++++
Time of Update: 2018-12-05
轉自:http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3554.htmlWhat does "Error: L6248E: cannot have address type relocation" mean? This linker error can occur when trying to build "Position Independent" code. Consider a small
Time of Update: 2018-12-05
一、int main(int argc, char* argv[]) { int *p = 0; int i = &(*p); // 運行不出錯 int b= (*p); // 運行出錯 return 0; } 二、以下代碼如果儲存為c檔案,則warning C4047: “初始化” : “int”與“char **__w64 ”的間接層級不同以下代碼如果儲存為c++檔案,則error C2660: “fun” : 函數不接受 1 個參數error
Time of Update: 2018-12-05
// Common.h /********************************************************************* Name: Common.cpp* Creater: Yunhong Mi* Date: 2009-09-24* Path: #include "Common.h"* Summary:* Note:*******************************************
Time of Update: 2018-12-05
1、E32USER-CBase 63只有Pop();delete;2、E32USER-CBase 64只有Pop();3、E32USER-CBase 71只有PushL();4、E32USER-CBase 90只有PopAndDestroy();5、Alloc:只有PushL(); Pop();6、KERN-EXEC 31)解引用NULL指標,2)CCoeControl* CRandomAppView::ComponentControl(TInt aIndex) const { switch
Time of Update: 2018-12-05
轉載自:http://blog.csdn.net/luckwangjing/archive/2010/05/18/5603824.aspx 但有一定不同,,因為本人的編譯環境是 ADS1.2注 : 1. 開發環境 :VS2005 + BREW SDK 3.1.5 SP02 + BREW SDK TOOLS 1.1.0 SP06 2. 編譯環境 : ADS1.2 3. 開發語言 :C 語言 一、 lib的編譯 1. 建立 lib 工程
Time of Update: 2018-12-05
提出問題:建立一個名為HelloWorld的GUI應用程式進入程式後點擊功能表項目“Test”,彈出內容為”HelloWorld”的對話方塊,如果想將顯示內容改為”中國”兩個字現有三種方法可以解決: 解決方案: 第一種方法:一、HelloWorld.loc做出以下幾個改動1、在其中增加一行CHARACTER_SET UTF82、將#define R_MESSAGE_TEXT_STRING "HelloWorld";改為 #define R_MESSAGE_TEXT_STRING "中國"
Time of Update: 2018-12-05
#include <iostream>using namespace std; typedef struct _RecInfo{int ID;char *URL;} Info;int main(){const Info info ={5,"sdf"};int d= 56;const char *ch = "asdf";void * p = info.URL; // 合法 為什麼? info.URL不是 const char * 類型嗎p = ch; //
Time of Update: 2018-12-05
文章目錄 do...while(0)-妙用 (轉...) 轉載自:http://blog.ednchina.com/fpga2006/34658/message.aspx #define MACRO_NAME(para) do{macro content}while(0) 的格式,總結了以下幾個原因: 1,空的宏定義避免warning: #define foo()
Time of Update: 2018-12-05
一、_LIT宏在討論描述符之前,有必要來看下_LIT宏可以用它引入一個字串常量, 如_LIT(KText, "OK");KText並不是描述符,而是TLiC類型,TLiC類的定義在<e32std.h>,3rd fp1 將其定義在<e32cmn.h>,其中有一個public變數,TUint iTypeLength; 表示字串的長度 可以通過3種方式轉換為描述符:隱式轉換,使用operator()轉換和使用operator&轉換,《Series 60應用程式開發》P7
Time of Update: 2018-12-05
如果使用了 全域變數 或 靜態變數(注意如果只是定義,而沒有使用是不會報錯的),報下面的錯誤(本人是在CCommon.cpp裡使用了靜態變數) Error: L6265E: Non-RWPI Section CCommon.o(.bss) cannot be assigned to PI Exec region ER_ZI.Error: L6248E: CCommon.o(i.__ct__7CCommonFv) in PI region 'ER_RO' cannot have address
Time of Update: 2018-12-05
協變、抗變英文分別是 Covariance 、Contravariance ,形容詞為 '-ce '==> '-t ' 這是數學和物理學術語,在OO領域中也有應用。 “共變”、“逆變”是一種譯法,另外一種譯法是“協變”、“抗變”。特別在OO領域,基本上都是用後面這組。此外還有“不變(Nonvariance)”。 在OO中,協變是指按照繼承鏈正向改變,抗變是指逆向改變。樣本如下: class Base { public: virtual RB
Time of Update: 2018-12-05
一、GetCurrentDirectory The GetCurrentDirectory function retrieves the current directory for the current process. DWORD GetCurrentDirectory( DWORD nBufferLength, // size of directory buffer LPTSTR lpBuffer // directory buffer);#include