摘要: #define UPGRADE_DEBUG 1#ifdef UPGRADE_DEBUG#define stb_printf(...) printf (__VA_ARGS__)//#define stb_printf(...) #else#define stb_printf(...) do { } while (0)#endif/************************************************************************ 常量定义********************************************************** 阅读全文
posted @ 2011-09-02 15:25 火腿骑士 阅读(418) 评论(0) 推荐(0) 编辑
摘要: /*********头文件区****************************************************/#include "dare_program.h"//#include "dare_sntp.h"//#include "input_event.h"#include "ipanel_event.h"#include "stb_debug_ctrl.h"#ifdef STBSW_DEBUG_dare_program#define stb_printf(...) S 阅读全文
posted @ 2011-09-02 15:15 火腿骑士 阅读(338) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/livexy/archive/2010/07/06/1772213.htmlusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Data;using System.Data.Common;using System.Web.Script.Serialization;using System.IO;using System.Security.Cryptography;n 阅读全文
posted @ 2011-09-02 14:54 火腿骑士 阅读(271) 评论(0) 推荐(0) 编辑
摘要: IList<MediaInfo> l = new List<MediaInfo>(); l.OrderByDescending(m => m.Name);//降序 Dictionary<int, string> dList = new Dictionary<int, string>(); List<KeyValuePair<int, string>> list = dList.OrderByDescending(k => k.Value).ToList();//降序 阅读全文
posted @ 2011-09-02 14:50 火腿骑士 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 1,防止一个头文件被重复包含 #ifndef COMDEF_H #define COMDEF_H //头文件内容 #endif 2,重新定义一些类型,防止由于各种平台和编译器的不同,而产生的类型字节数差异,方便移植。 typedef unsigned char boolean; /* Boolean type. */ typedef unsigned long int uint32; /* Unsigned 32 bit */ typedef unsigned short uint16; /* Unsigned 16 bit */ typedef unsigned char uint8; /* 阅读全文
posted @ 2011-09-02 13:49 火腿骑士 阅读(250) 评论(0) 推荐(1) 编辑