今天寫了一個更新UI的小例子,沒想到出了log列印了這樣一個錯誤:Only the original thread that created a view hierarchy can touch its views。goolgle了一下找到了原因。原來android中相關的view和控制項不是安全執行緒的,我們必須單獨做處理。這裡藉此引出Handler的使用。 Handler的官方描述:A Handler allows you to send and process Message and
最近在自己的伺服器上“玩耍”網站,在本地調試的時候出現提示 "Zend OPtimizer is not installed",本地機器上的XAMPP 版本還是老版本V1.6.7 Zend Optimizer是預設安裝的,那為什麼還會有“is not installed”的提示呢?xampp\apache\bin\php.ini “zend_optimizer.enable_loader = 0”,改為1即可如果是高版本的XAMPP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title>Untitled</title> <script> window.scrollBy(0, 1) window.resizeTo(0,0) window.moveTo(0,0)
Public Type PrinterInfo pServerName As String pPrinterName As String pShareName As String pPortName As String pDriverName As String pComment As String pLocation As StringEnd Type Private Const CCHDEVICENAME = 32Private Const
#include <stdio.h>#include <stdlib.h>#include <math.h>int main(int argc,char *argv[]){ long pow2[]={1L,2L,4L,8L}; char str[20]; long mclk,clkXtal,tmpMclk,bMclk,fVco,max_fvco; long m,p,s,bm,bp; long temp; long
//建立拖動imagecimagelist *cmylist::makedragimage(int item){ cimagelist *ilist = new cimagelist; // create a new image-list crect rc; getitemrect(item, &rc, lvir_bounds); // get the complete row
war3 MH常用的方法就是記憶體補丁。現貼點代碼,原始碼忘記從哪裡找的了。是針對魔獸1.20的,注意和1.20e不是一個版本,這個當然不能過任何對戰平台了。// mh2.cpp : Defines the entry point for the console application.//#include "stdafx.h"/**WC3 Maphack*ccyxcn@gmail.com*/#include <windows.h>int main(int argc, char*