格式:
/**
* @warning A Warning!!
*/
參照到使用者介面物件
取得目前使用者
Have you implemented Access' security? Because the built-in CURRENTUSER function returns the ACCESS user, not the WINDOWS user. If you haven't implemented Access' workgroup security, everyone is an "ADMIN" user. If you want to get the name of the WINDOWS/network user logged in, see this link:
http://www.mvps.org/access/api/api0008.htm
幾個簡單檢視目前Windows SDK版本的方法:
Windows SDK版本設定如果不正確,可能會導致vc專案編譯失敗,出現類似像windows.h找不到的錯誤訊息。
修正方式:
參考資料
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
using namespace std;
class Base{
public:
int m_i;
Base(int i):m_i(i) {}
~Base(){ cout << m_i << "~Base()" << endl; }
};
class Derived: public Base{
public:
Derived(int i):Base(i) { }
~Derived(){
cout << "~Derived()" << endl;
}
};
int main()
{
vector< shared_ptr<Base> > v;
v.push_back(shared_ptr<Base>(new Derived(1)));
v.push_back(shared_ptr<Base>(new Derived(2)));
sort(v.begin(), v.end(), [](shared_ptr<Base> a, shared_ptr<Base> b){
return a->m_i > b->m_i;
});
for_each(v.begin(), v.end(), [](shared_ptr<Base> a){
cout << a->m_i << "\t";
});
cout << endl;
return 0;
}
由於vs2010 IDE似乎沒有直接支援這樣設定,因此採用Import Project的方式,以便明確地看出這是額外加上去的指令。
<Target Name="BeforeCppClean">
<Exec Command="echo Hello World" />
</Target>
</Project>
相關資料:
定義:
各registry key詳細的redirection與reflection狀況需參考 Registry Keys Affected by WOW64。
其他注意事項:
參考