我正在使用Visual C++。你能否以這種語法提供幫助?錯誤表達式
class CVisionSystem
{
public:
CVisionSystem();
~CVisionSystem(void);
int Init();
private:
PvDevice device;
// PvStream object
PvStream stream;
// Buffer
CustomPipeline *pipeline;
// GEV Parameters
PvGenParameterArray *deviceParams;
PvGenInteger *parTLLocked;
};
int CVisionSystem::Init()
{
deviceParams = device.GetGenParameters();
parTLLocked = dynamic_cast<PvGenInteger *>(deviceParams->Get("TLParamsLocked"));
}
deviceParms得到有效價值,但parTLlocked獲取導致錯誤NULL值:「錯誤表達無法計算,_vfptr CX0030和mthis CX0076
什麼可以ParTLLocked的問題
?
'deviceParams->獲取(「TLParamsLocked」)'不能被強制轉換爲'PvGenInteger *' –
這將有很大的幫助,如果你說你正在使用的庫。 – molbdnilo