VS2005 #pragma
摘要:#pragma once 加在头文件的最开始保证头文件被编译一次#pragma warning #pragma warning( disable : 4507 34; once : 4385; error : 164 ) 等价于: #pragma warning(disable:4507 34) // 不显示4507和34号警告信息 #pragma warning(once:4385) // 4385号警告信息仅报告一次 #pragma warning(error:164) // 把164号警告信息作为一个错误(百度一下 你就知道 哈哈)#pragma comment(lib,"*.
阅读全文
android提示:很抱歉!应用程序xxxx(进程:xxx.xxx.xxx)意外停止,请重试 强行关闭
摘要:照着别人的代码写,总是会出现意想不到的惊喜<?xml version="1.0" encoding="utf-8"?><linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent&quo
阅读全文
Eclipse :main cannot be resolved or is not a field (来自 CSDN_ID typename)
摘要:来自:http://blog.csdn.net/typename/archive/2011/02/25/6207815.aspx(差点忘记。。。)Link all references for a local rename (does not changereferences in other files)main cannot be resolved or is not a field刚遇到这个纠结的问题,代码都没错,R.layout.main总是在layout上游错误提示波浪线。在网上查了好多都是说clean一下工程 然后build工程就可以了,或者fix project properti
阅读全文
eclipse android main.xml error parsing XMLnot well-formed(invalid token)
摘要:开始学习android,晋级最菜的菜鸟从网上复制代码到eclipse中复制别人博客的main.xml的布局到自己的工程中,其他都没改变main.xml中有错误提示 鼠标放上去显示error parsing XML:not well-formed(invalid token)开始怀疑是引号 ” 不对,就改了,还是同样的错误,就开始迷茫了,发现那行不写代码还是报错,最终结果:确实是引号(”)的错误只不过不是那行 ,也不是那行附近,是下面的好多行,都改了就可以运行了。网上复制代码的时候又要注意了,标点符号有时候自动转成中文的想起以前复制C代码的时候,经常有看不到的空格报错。
阅读全文
Wince6.0 截图函数,BMP格式
摘要:void OnScreenSave(){ HDC hScrDC, hMemDC; int width, height; BYTE *lpBitmapBits = NULL; hScrDC = CreateDC(_T("DISPLAY"), NULL, NULL, NULL); width = GetDeviceCaps(hScrDC, HORZRES); height = GetDeviceCaps(hScrDC, VERTRES); hMemDC = CreateCompatibleDC(hScrDC); BITMAPINFO RGB24BitsBITMAPINFO; Z
阅读全文
复制下大四毕设时候小记录(fedora9)
摘要:Linux 的.bashrc使用man bash命令查看到的联机帮助文件中的相关解释如下:.bashrc - The individual per-interactive-shell startup file.这个文件主要保存个人的一些个性化设置,如命令别名、路径等。下面是个例子:# User specific aliases and functionsPATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"LANG=zh_CN.GBKexport PATH LANGalias rm='r
阅读全文
编译windows下的android SDK 杯具的经过
摘要:先转个:http://blog.csdn.net/chenyongxinglove/archive/2011/01/27/6167080.aspx开始还弱弱的以为Cygwin是linux下的一个工具呢Cygwin的常见错误http://cygwin.com/faq-nochunks.html#faq.using.missing-dllsE文的,百度一下能发现很多翻译,但是只翻译了目录和前几个问题,后面的没找到编译windows下的android SDK 文档在android源码的froyo/development/docs目录下名字是:howto_build_SDK.txt(注,我用的源码是f
阅读全文