#ifdef WPRFLAG int wWinMainCRTStartup( #else /* WPRFLAG */ int WinMainCRTStartup( #endif /* WPRFLAG */
#else /* _WINMAIN_ */
#ifdef WPRFLAG int wmainCRTStartup( #else /* WPRFLAG */ int mainCRTStartup( #endif /* WPRFLAG */
#endif /* _WINMAIN_ */ void ) { /* * The /GS security cookie must be initialized before any exception * handling targetting the current image is registered. No function * using exception handling can be called in the current image until * after __security_init_cookie has been called. */ __security_init_cookie();
__declspec(noinline) int __tmainCRTStartup( void ) { int initret; int mainret=0; int managedapp; #ifdef _WINMAIN_ _TUCHAR *lpszCommandLine; STARTUPINFO StartupInfo;
__try { /* Note: MSDN specifically notes that GetStartupInfo returns no error, and throws unspecified SEH if it fails, so the very general exception handler below is appropriate */ GetStartupInfo( amp;StartupInfo ); } __except(EXCEPTION_EXECUTE_HANDLER) { return 255; } #endif /* _WINMAIN_ */ /* * Determine if this is a managed application */ managedapp = check_managed_app();
if ( !_heap_init(1) ) /* initialize heap */ fast_error_exit(_RT_HEAPINIT); /* write message and die */
if( !_mtinit() ) /* initialize multi-thread */ fast_error_exit(_RT_THREAD); /* write message and die */
/* Enable buffer count checking if linking against static lib */ _CrtSetCheckCount(TRUE);
/* * Initialize the Runtime Checks stuff */ #ifdef _RTC _RTC_Initialize(); #endif /* _RTC */ /* * Guard the remainder of the initialization code and the call * to user's main, or WinMain, function in a __try/__except * statement. */
int __cdecl _cinit ( int initFloatingPrecision ) { int initret;
/* * initialize floating point package, if present */ #ifdef CRTDLL _fpmath(initFloatingPrecision); #else /* CRTDLL */ if (_FPinit != NULL amp;amp; _IsNonwritableInCurrentImage((PBYTE)amp;_FPinit)) { (*_FPinit)(initFloatingPrecision); } _initp_misc_cfltcvt_tab(); #endif /* CRTDLL */
/* * do initializations */ initret = _initterm_e( __xi_a, __xi_z ); if ( initret != 0 ) return initret;
#ifdef _RTC atexit(_RTC_Terminate); #endif /* _RTC */ /* * do C++ initializations */ _initterm( __xc_a, __xc_z );
#ifndef CRTDLL /* * If we have any dynamically initialized __declspec(thread) * variables, then invoke their initialization for the thread on * which the DLL is being loaded, by calling __dyn_tls_init through * a callback defined in tlsdyn.obj. We can't rely on the OS * calling __dyn_tls_init with DLL_PROCESS_ATTACH because, on * Win2K3 and before, that call happens before the CRT is * initialized. */ if (__dyn_tls_init_callback != NULL amp;amp; _IsNonwritableInCurrentImage((PBYTE)amp;__dyn_tls_init_callback)) { __dyn_tls_init_callback(NULL, DLL_THREAD_ATTACH, NULL); } #endif /* CRTDLL */
\documentclass{beamer} \usetheme{Warsaw} \usepackage{fontspec,xunicode,xltxtra} \usepackage[slantfont,boldfont]{xeCJK} % 允许斜体和粗体 \setbeamercovered{transparent} \usepackage[english]{babel} % or whatever \usepackage{hyperref} \usepackage[T1]{fontenc} % or whatever \usefonttheme{professionalfonts} \usepackage{times} \usepackage{mathptmx} \usepackage{tabularx} % Or whatever. Note that the encoding and the font should match. If T1 % does not look nice, try deleting the line with the fontenc. \usepackage{xcolor} \usepackage{booktabs, multirow, enumerate} \usepackage{animate} \usepackage{multimedia}
% ... or whatever. Note that the encoding and the font should match. % If T1 does not look nice, try deleting the line with the fontenc. \usepackage{lmodern} %optional \usepackage{listings}
% Delete this, if you do not want the table of contents to pop up at % the beginning of each subsection: \AtBeginSection[] { \begin{frame}<beamer> \frametitle{内容大纲} \tableofcontents[currentsection] \end{frame} }
native final function SetBool(string Member, bool b); native final function SetFloat(string Member, float f); native final function SetDouble(string Member,double d); native final function SetInt(string Member,int i); native final function SetString(string Member, string s); native final function SetObject(string Member, GFxObject val);
//军衔列表每项的数据 struct RankListData { var int Level;//等级 var string Name;//军衔名 }; var array<RankListData> RankListDatas; var string path; function SetFlashRankListDatas() { local int Index; local GFxObject GfxRankListDatas; local GFxObject GfxTempObj;
struct RankAwardData { var string RankAwardTitle; var array<AwardData> AwardDatas; }; var array<RankAwardData> RankAwardDatas; var string path;
function SetFlashRankAwardDatas() { local int Index; local int i; local GFxObject GfxRankAwardDatas; local GFxObject GfxTempObj; local GFxObject GfxAwardDatas; local GFxObject GfxAwardTempObj;
GfxRankAwardDatas = CreateArray(); for (Index = 0; Index < RankAwardDatas.Length; Index++) { GfxTempObj = CreateObject("Object"); GfxTempObj.SetString("RankAwardTitle", RankAwardDatas[Index].RankAwardTitle);
GfxAwardDatas = CreateArray(); for (i = 0; i < RankAwardDatas[Index].AwardDatas.Length; ++i) { GfxAwardTempObj = CreateObject("Object"); GfxAwardTempObj.SetString("IconSource", RankAwardDatas[Index].AwardDatas[i].IconSource); GfxAwardDatas.SetElementObject(i, GfxAwardTempObj); GfxAwardTempObj.DestroyObject(); } GfxTempObj.SetObject("RankAward", GfxAwardDatas); GfxRankAwardDatas.SetElementObject(Index, GfxTempObj); GfxAwardDatas.DestroyObject(); GfxTempObj.DestroyObject(); }
int i; float f, p, q, t; if(S == 0) { // achromatic (grey) R = G = B = V; return V4B(R, G, B, 255); }
H /= 60; // sector 0 to 5 i = floor( H ); f = H - i; // factorial part of h p = V * ( 1 - S ); q = V * ( 1 - S * f ); t = V * ( 1 - S * ( 1 - f ) );
switch( i ) { case 0: R = V; G = t; B = p; break; case 1: R = q; G = V; B = p; break; case 2: R = p; G = V; B = t; break; case 3: R = p; G = q; B = V; break; case 4: R = t; G = p; B = V; break; default: // case 5: R = V; G = p; B = q; break; }