第一代(java)
第二代(Qt)
第三代
第三代(修改版)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command]
@="\"C:\\Documents and Settings\\asus\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=\"R:\\Chrome\" -- \"%1\""
[HKEY_CLASSES_ROOT\ftp\shell\open\command]
@="\"C:\\Documents and Settings\\asus\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=\"R:\\Chrome\" -- \"%1\""
[HKEY_CLASSES_ROOT\http\shell\open\command]
@="\"C:\\Documents and Settings\\asus\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=\"R:\\Chrome\" -- \"%1\""
[HKEY_CLASSES_ROOT\https\shell\open\command]
@="\"C:\\Documents and Settings\\asus\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe\" --user-data-dir=\"R:\\Chrome\" -- \"%1\""
#include <stdio.h>
#include <stdlib.h>
#include <locale.h> //function: setlocale
#include <ctype.h> //define WEOF
/*
*
*/
int main(int argc, char** argv) {
setlocale(LC_CTYPE, ""); //all printf is encode by unicode
FILE *fp;
fp = fopen("file.txt", "rb");//load UTF16-LE
fseek(fp, 0, SEEK_SET);
if (fp) {
wchar_t c = L' ';
while ((c = fgetwc(fp)) != WEOF)
{
printf("%lc\n", c);
}
fclose(fp);
}
return (EXIT_SUCCESS);
}
devcon remove "USB\VID_0403&PID_6001"
devcon rescan
struct bitmap_font {
unsigned char Width; //字元最大寬度
unsigned char Height; //字元高度
unsigned short Chars; //總字元數
const unsigned char *Widths; //每個字元的寬度
const unsigned short *Index; //每個字元的索引
const unsigned char *Bitmap; //每個字元的資料
};
舉例
1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1111111 1111 11111111111 1 1 1 11111 1
1 1 1 1 1111111 1 1 1 1 1 1
1 1 1 1 1 11 1 1 111 1 1 111
1 1 1 1 1 1 1 1 1 1 1 11111 1
11111111 111111 1111111111 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1111 1 1 1111
1 1 1 1 1 1 1 1111111111 1 11111 1
1111111 1 1 1 1 1 1 1
1 1 1 111111111111111 1 1 1 111111111111111
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 11 1 11
1 1 1 1 1 1 1 1 11 1 11
1 1 1 1 1 1 11 1