我正在使用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