📄 readexcel.c
字号:
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <tchar.h>
//#include "Unicodexdcl.h"
//#include "Ucs2prot.h"
#include "PixtelDataTypes.h"
#include "MMI_features.h"
#include "wap.h"
#include "VoiceMemoDef.h"
#include "FunAndGamesDefs.h"
#include "SSCStringHandle.h"
#include "ShortcutsDefs.h"
#include "CallSetUpEnum.h"
#include "SettingDefs.h"
//micha0202
//#include "NetworkSetupDefs.h"
#include "NetworkSetupGProt.h"
#include "PhoneBookDef.h"/*NVRAM_REVISE*/
#include "ScheduledPowerOnOff.h"
#include "ScreenSaverDefs.h"
#include "WallpaperDefs.h"
#ifdef __MMI_POWER_ON_OFF_DISPLAY__
#include "PowerOnOffDisplayDefs.h"
#endif
#include "OrganizerDef.h"
#include "ExtraDef.h"
//micha0601
#include "ServiceDefs.h"
#include "SATDefs.h"
#include "InfoNum.h"
#include "ProfilesEnum.h"
#include "wgui_categories.h"
#include "wgui_categories_defs.h"
#if defined(__MMI_BMI__)
#include "bmi.h"
#endif
#if defined(__MMI_CALORIE__)
/* under construction !*/
#endif
#if defined(__MMI_MENSTRUAL__)
#include "Healthmenstural.h"
#endif
#ifdef __MMI_DICTIONARY__
#include "DictionaryMain.h"
#endif
// MTK end
#if defined(__MMI_CURRENCY_CONVERTER__)
#include "currencyconvertor.h"
#elif defined(__MMI_EXTENDED_CURRENCY_CONVERTER__)
#include "CurrencyConvertorE.h"
#endif
#if defined(__MMI_UNIT_CONVERTER__) || defined (__MMI_EXTENDED_UNIT_CONVERTER__)
#include "unitconvertor.h"
#endif
#include "worldclock.h"
#if defined(__MMI_CALCULATOR__)
#include "Calculator.h"
#endif
#include "ToDoListEnum.h"
#include "AlarmDef.h"
#include "CustResDef.h"
#include "CalendarDef.h"
#if defined(__MMI_NITZ__)
#include "NITZ.h"
#endif
#include "PersonalizationDef.h"
#include "BootUp.h"
#include "QuickAccessMenuItem_def.h"
#include "SimDetectionDef.h"
#include "MessagesResourceData.h"
#include "mainmenudef.h"
#include "t9def.h"//renamed file as suggested by Elvis on date 20th Aug 2003,changes done for t9
#include "IdleAppDef.h"
//#include "gui_themes.h"
//#include "wgui_categories.h"
#include "AlarmDef.h"
#include "wgui_categories.h"
#include "StatusIconRes.h"
//#include "PixtelDataTypes.h"
//#include "wgui_fixed_menus.h"
#include "FunAndGamesDefs.h"
#include "GameDefs.h"
#ifdef IS_F1RACE_BASE_GAME
#include "F1RaceDefs.h"
#endif /* IS_F1RACE_BASE_GAME */
#ifdef IS_HANOI_BASE_GAME
#include "TOHDefs.h"
#endif /* IS_HANOI_BASE_GAME */
#ifdef IS_RICHES_BASE_GAME
#include "RichesDefs.h"
#endif /* IS_RICHES_BASE_GAME */
#ifdef IS_COLORBALL_BASE_GAME
#include "ColorBallsDefs.h"
#endif /* IS_COLORBALL_BASE_GAME */
#ifdef IS_SNAKE_BASE_GAME
#include "Snakedefs.h"
#endif /* IS_SNAKE_BASE_GAME */
#ifdef IS_SMASH_BASE_GAME
#include "SmashDefs.h"
#endif /* IS_SMASH_BASE_GAME */
#ifdef IS_DOLL_BASE_GAME
#include "DollDefs.h"
#endif /* IS_DOLL_BASE_GAME */
#ifdef IS_NINJA_BASE_GAME
#include "NinjaDefs.h"
#endif /* IS_NINJA_BASE_GAME */
#ifdef IS_MAJUNG_BASE_GAME
#include "MajungDefs.h"
#endif /* IS_MAJUNG_BASE_GAME */
#ifdef IS_MEMORY_BASE_GAME
#include "MemoryDefs.h"
#endif /* IS_MEMORY_BASE_GAME */
#ifdef IS_COPTER_BASE_GAME
#include "CopterDefs.h"
#endif /* IS_COPTER_BASE_GAME */
#ifdef IS_PUZZLE_BASE_GAME
#include "PuzzleDefs.h"
#endif /* IS_PUZZLE_BASE_GAME */
#ifdef IS_PANDA_BASE_GAME
#include "PandaDefs.h"
#endif /* IS_PANDA_BASE_GAME */
#ifdef IS_STAIR_BASE_GAME
#include "StairDefs.h"
#endif /* IS_STAIR_BASE_GAME */
#ifdef IS_UFO_BASE_GAME
#include "UfoDefs.h"
#endif /* IS_UFO_BASE_GAME */
#ifdef IS_DANCE_BASE_GAME
#include "DanceDefs.h"
#endif /* IS_DANCE_BASE_GAME */
#ifdef IS_MAGICSUSHI_BASE_GAME
#include "MagicsushiDefs.h"
#endif /* IS_MAGICSUSHI_BASE_GAME */
#ifdef IS_FRUIT_BASE_GAME
#include "FruitDefs.h"
#endif /* IS_FRUIT_BASE_GAME */
#ifdef IS_VSMJ_BASE_GAME
#include "VsmjDefs.h"
#endif /* IS_VSMJ_BASE_GAME */
/* Motion Game */
#ifdef IS_DICE_BASE_MOTIONGAME
#include "MotionDiceDefs.h"
#endif /* IS_DICE_BASE_MOTIONGAME */
#ifdef IS_DJ_BASE_MOTIONGAME
#include "MotionDJDefs.h"
#endif /* IS_DJ_BASE_MOTIONGAME */
#ifdef __J2ME__
#include "JavaGameDefs.h"
#endif
#include "ComposeRingToneDefs.h"
#include "DownloadDefs.h"
#include "ComposeRingToneEngineDefs.h"
#include "GameDefs.h"
#include "FactoryModeDef.h"
#include "EngineerModeDef.h"
#include "kal_non_specific_general_types.h"
#include "custom_mmi_default_value.h"/*NVRAM_REVISE*/
#include "custom_data_account.h"
#include "DataAccount.h"
#include "CommonScreens.h"
#include "CallsDefs.h"
#include "SettingDefs.h"
#include "PhoneBookDef.h"
#include "CallhistoryEnum.h"
#include "CallmanagementIdDef.h"
#include "CMCommonStringId.h"
#include "CMCommonImageId.h"
#include "HelpDef.h"
//For Audio Player
// dependent headers for AudioPlayerDef.h"
#include "FrameworkStruct.h"
#include "GlobalConstants.h"
#include "FileMgr.h"
#include "AudioPlayerDef.h"
// For AB Repeater
#include "ABRepeaterDef.h"
//For File Manager
#ifdef __MMI_FILE_MANAGER__
#include "FileManagerDef.h"
#endif
#ifdef __MMI_EBOOK_READER__
#include "EbookDefs.h"
#endif
//For Sound Recorder
#ifdef __MMI_SOUND_RECORDER__
#include "SoundRecorderDef.h"
#endif
#ifdef __MMI_EXT_DEVICE__
#include "ExtDeviceDefs.h"
#endif
#ifdef __MMI_CAMERA__
#include "MMI_features_camera.h"
#include "CameraResDefs.h"
#endif
#ifdef __MMI_BARCODEREADER__
#include "MMI_features_barcodereader.h"
#include "BarcodeReaderResDefs.h"
#endif
#ifdef __MMI_IMAGE_VIEWER__
#include "ImageViewerResDefs.h"
#endif
#ifdef __MMI_VIDEO_PLAYER__
#include "MMI_features_video.h"
#include "VdoPlyStrEnum.h" /* Video Player String ID Enum */
#endif
#ifdef __MMI_VIDEO_RECORDER__
#include "MMI_features_video.h"
#include "VdoRecStrEnum.h" /* Video Recorder String ID Enum */
#endif
#ifdef __MMI_FM_RADIO__
#include "FMRadioDef.h"
#endif
#ifdef __MMI_FM_RADIO_SCHEDULE_REC__
#include "FMScheduleRecDef.h"
#endif
#ifdef __MMI_PHOTOEDITOR__
#include "PhoEdtStrEnum.h" /* PhotoEditor String ID Enum */
#endif
//MTK: Paul added for Java
#ifdef __J2ME__
#include "JavaAgencyDef.h"
#endif /* !__J2ME__ */
//MTK: Paul ended
#include "mmiapi_res.h" // add by hjf
#include "ChatAppDef.h"
#include "vObjectsEnum.h"
#include "EmailAppGProt.h"
#ifdef __MMI_IMPS__
#include "mmi_imps_enum.h"
#endif
#ifdef __MMI_STOPWATCH__
#include "StopwatchDef.h"
#endif
#if defined(__MMI_VRSD__)
#include "VRSDEnum.h"
#endif
#if defined(__MMI_VRSI__)
#include "VRSIEnum.h"
#endif
#if (defined (JATAAYU_SUPPORT) && defined(MMS_SUPPORT))
#include "JMMSResEnum.h"
#endif
#if defined (JATAAYU_SUPPORT) && defined (WAP_SUPPORT)
#include "JBrowserMMIDefs.h"
#endif
#if defined (JATAAYU_SUPPORT) && (defined (WAP_SUPPORT) || (defined (MMS_SUPPORT)))
#include "JProvDefs.h"
#include "JProfileHandlerDefs.h"
#endif
#if defined(JATAAYU_SUPPORT)
#include "jdd_ui_defs.h"
#endif
//micha_PoC
#ifdef __MMI_POC__
#include "PoCGProt.h"
#endif
#ifdef __MMI_PICTURE_EDITOR_SUPPORT__
#include "PictureEditorDefs.h"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -