目前分類:C/C++ (33)

瀏覽方式: 標題列表 簡短摘要

link ffmpeg library 如果出現 Error LNK2019 的時候
請去 .h 檔中找到該 function 並用 extern "C" { } 包起來

JohnDX 發表在 痞客邦 留言(0) 人氣()


LPVOID lpMsgBuf;

JohnDX 發表在 痞客邦 留言(0) 人氣()

例:
static void send_r_unauthorized()

JohnDX 發表在 痞客邦 留言(0) 人氣()

註冊 signal 的 handler function        ---> signal(SIGALRM, helloHandler);
2秒後發送一次 SIGALRM signal      ---> alarm(2);

JohnDX 發表在 痞客邦 留言(0) 人氣()

利用 struct 定義一個 interface 出來
之後讓不同的實體各自去實做

JohnDX 發表在 痞客邦 留言(0) 人氣()

參考網站

1
 

JohnDX 發表在 痞客邦 留言(0) 人氣()

最近在 Debug 一個程式
在 XP 上跑起來運作速度正常

JohnDX 發表在 痞客邦 留言(0) 人氣()

剛剛無意間查到的資料
MFC 中可以用 TRACEASSERT 來 Debug

JohnDX 發表在 痞客邦 留言(0) 人氣()

最近遇到一個怪問題
就是程式 Debug mode 跟 Release mode 的執行結果居然不同???

JohnDX 發表在 痞客邦 留言(0) 人氣()


The stringify() macro can be used to turn any text in your code into a string, but only the exact text between the parentheses. There are no variable dereferencing or macro substitutions or any other sort of thing done.

JohnDX 發表在 痞客邦 留言(0) 人氣()

除了sleep之外的延遲寫法

JohnDX 發表在 痞客邦 留言(0) 人氣()


BYTE = 8 BIT

JohnDX 發表在 痞客邦 留言(0) 人氣()

在ptt上的題目.
how many bytes will be allocated ? (Assume one pointer: 4 bytes)

JohnDX 發表在 痞客邦 留言(0) 人氣()

«12