1."extern" before function declaration in c header file is optional, when c++ calling c function defined in c file;
2. If want to only call one c function in c file, and tell code-reader which function will be called in current c++ file, written as below:
extern "C" void func(int a, int b);
#include "cXX.h"
re: VC中的一個很奇怪的問題--關于C4244 Zero Lee 2007-12-15 22:23
應該是自動提升到了int類型了。因為機器內部計算依靠4bytes速度會比較快。我知道在C#中是采取這樣的方式的。
re: MFC中一個容易被忽視的問題 Zero Lee 2007-12-15 22:03
提到的問題,確實很有意思,沒遇到過。前不久做的一個項目中,寫的代碼與“追夢時代”的操作差不多,在VS2003.net和VS2005下不管哪種模式都沒有出現這種問題啊。