PIXNET Logo登入

阿勇的blog

跳到主文

歡迎光臨阿勇在痞客邦的小天地

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 9月 16 週四 201016:46
  • gdi++



今天 忽然覺得mac的畫面好醜
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(1)

  • 個人分類:
▲top
  • 9月 08 週三 201011:14
  • 在Qt中整合freetype

建立字型對照表
QSettings settings("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts",
QSettings::NativeFormat);
QStringList list = settings.allKeys();
for(int i=0;i<list.size();i++)
{
QString key = list.at(i);
QString text = settings.value(key).toString();
QStringList keys = key.split(" & ");
QString last = keys.last();
keys[keys.size()-1] = last.left(last.indexOf(" ("));
for(int j=0;j<keys.size();j++)
{
index.insert(keys[j], j);
name.insert(keys[j], text);
}
}
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(30)

  • 個人分類:freetype
▲top
  • 8月 31 週二 201008:37
  • 用mingw編譯freetype

下載ft242.zip,解壓縮
1.devcpp+mingw
set PATH=C:\Dev-Cpp\bin
set PATH=%PATH%;C:\Dev-Cpp\mingw\bin
set PATH=%PATH%;%SystemRoot%\System32
set make=mingw32-make
set make=%make%
make
make
copy objs\freetype.a C:\Dev-Cpp\lib\libfreetype.a /Y
xcopy include\* C:\Dev-Cpp\include /Y /S
pause
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(10)

  • 個人分類:mingw
▲top
  • 8月 16 週一 201017:24
  • 避免打開雙視窗

#include <windows.h>
#define Executable "test.exe"
char TITLE[] = "The SoftW";//full title name "The SoftWare"
int size;
BOOL CALLBACK EnumWindowsProc(HWND hwnd, DWORD lParam)
{
//get hwnd title
char buffer[255];
SendMessage(hwnd,WM_GETTEXT,255,(long)buffer);
//check title is we want
if(strncmp(buffer,TITLE,size)==0)
{
//if window is iconic, show it as normal
if(IsIconic(hwnd))
ShowWindow(hwnd, SW_RESTORE);
//show it at top of desktop
SetForegroundWindow(hwnd);
//we got it
return FALSE;
}
//to check next hwnd
return TRUE;
}
int main(int argc, char** argv)
{
//check title size,remove '\0'
size = sizeof(TITLE)/sizeof(char);
size--;
//check window is show or not
if(EnumWindows((WNDENUMPROC)EnumWindowsProc,0)==TRUE)
{
//if window not show, to execute it
WinExec(Executable,SW_SHOW);
}
return 0;
}
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(7)

  • 個人分類:windows
▲top
  • 8月 11 週三 201011:46
  • 使用glut時,不顯示控制台視窗

prevent opening a console window in addition to your GLUT window when it is run
in vc
menu option ( Project → Properties )
From the Configuration: list box, select All Configurations.
select the Linker subtree and then Command Line option in the left pane. Then add the following code to the Additional Options: text box
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(6)

  • 個人分類:opengl
▲top
  • 7月 20 週二 201015:24
  • 專案自動化建置(先叫這個名字)

這是我轉寫的批次檔
主要功能是將Qt的專案編譯成執行檔
再轉成安裝程式(unicode nsis)
最後上傳到伺服器
資料夾說明
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(3)

  • 個人分類:windows
▲top
  • 6月 23 週三 201011:52
  • print bitmap font array


先定義一下bitmap格式方便之後處裡typedef struct Bitmap_ {
int x;
int y;
unsigned int width;
unsigned int height;
unsigned int pitch;
unsigned char* data;
} Bitmap;
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(13)

  • 個人分類:bitmap font
▲top
  • 3月 31 週三 201009:14
  • 專案交接

1.建置環境必須建立實作一套可以在命令列下完成 init, build, package, install, test 動作的建置程序,並且包涵需要之套件軟體。視專案內容,這套建置程序可能是一份 build.xml(ant), 也可能是一份 Makefile ,或是更基礎的 shell script。重點是,這套建置程序要能交由建置系統自動執行並完成上述所有動作,整個過程不可以有人工輸入的部份。
2.環境說明文件必須說明專案以及所需套件軟體和函式庫的用途。
3.專案uml圖
4.程式碼文件開頭必須作文件簡介,及各函式簡介和修改紀錄
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(9)

  • 個人分類:
▲top
  • 2月 05 週五 201016:40
  • Lua vs Squirrel


LuaSquirrel語言CC++版權MITzlib速度快不錯物件導向用table模擬支援跨平台是是
參考資料:
http://blog.vckbase.com/carr/archive/2008/11/13/35638.htmlhttp://blog.vckbase.com/carr/archive/2008/11/08/35598.htmlhttp://blog.csdn.net/tsrhy/archive/2009/04/27/4128614.aspx
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(1)

  • 個人分類:lua
▲top
  • 1月 25 週一 201015:41
  • 如何在建立windows執行檔的版本資訊


打開rc檔加入
VALUE "CompanyName", "公司\0"
VALUE "FileVersion", "檔案版本\0"
VALUE "FileDescription", "描述\0"
VALUE "InternalName", "內部名稱\0"
VALUE "LegalCopyright", "著作權\0"
VALUE "LegalTrademarks", "合法商標\0"
VALUE "OriginalFilename", "原始檔名\0"
VALUE "ProductName", "產品名稱\0"
VALUE "ProductVersion", "產品版本\0"
VALUE "Comments", "註解\0"
斷行要用\r\n
更詳細內容看http://support.microsoft.com/kb/237870
(繼續閱讀...)
文章標籤

阿勇 發表在 痞客邦 留言(0) 人氣(5)

  • 個人分類:windows
▲top
«1...78913»

個人資訊

阿勇
暱稱:
阿勇
分類:
不設分類
好友:
累積中
地區:

熱門文章

  • (0)Cordova速記
  • (0)Cordova run simulation
  • (5)swift速記
  • (1)cordova發布到andriod
  • (4)迷香
  • (11)notification results in “unrecognized selector sent to instance…”
  • (0)分開設定xcode的configureration
  • (10)關於doesNotRecognizeSelector引起的exception crash
  • (1)在SQL中,當二個鍵同時相等時,唯一鍵成立。
  • (56)防止繼承的delegate跟原本的衝突(how to extend a protocol for a delegate in objective C)

文章分類

  • 替代役的日子 (5)
  • 黑色鈣片 (4)
  • java (3)
  • picasa (1)
  • lua (1)
  • mingw (1)
  • nsis (1)
  • squirrel (1)
  • freetype (1)
  • bitmap font (7)
  • windows (5)
  • c (1)
  • NetBeans (2)
  • uml (1)
  • html5 (1)
  • Wheel Light (4)
  • Qt (26)
  • opengl (6)
  • chrome (2)
  • hg (2)
  • mac (4)
  • apns (1)
  • python (4)
  • php (2)
  • SQL (4)
  • iOS (3)
  • xcode (4)
  • Objective-C (8)
  • phonegap (1)
  • swift (1)
  • cordova (2)
  • 未分類文章 (1)

最新文章

  • Cordova速記
  • Cordova run simulation
  • swift速記
  • cordova發布到andriod
  • 迷香
  • notification results in “unrecognized selector sent to instance…”
  • 分開設定xcode的configureration
  • 關於doesNotRecognizeSelector引起的exception crash
  • 在SQL中,當二個鍵同時相等時,唯一鍵成立。
  • 防止繼承的delegate跟原本的衝突(how to extend a protocol for a delegate in objective C)

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: