И это целый контекст. р>
Код: Выделить всё
#include "stdafx.h"
#include "imageviewer12.h"
#include "imageviewer12Dlg.h"
#include "afxdialogex.h"
#ifdef PYLON_WIN_BUILD
#endif
void Cimageviewer12Dlg::OnEnChangeEdit3()
{
if (camera->IsOpen())
{
AfxMessageBox(_T("카메라가 열려 있지 않습니다."), MB_OK | MB_ICONERROR);
return;
}
try
{
int64_t totalBufferCount = camera.GetStreamGrabberParams().Statistic_Total_Buffer_Count.GetValue();
CString strBufferCount;
strBufferCount.Format(_T("X: %d"), totalBufferCount);
SetDlgItemText(IDC_EDIT3, strBufferCount);
}
catch (const GenericException &e)
{
AfxMessageBox(CString("에러났습니다: ") + CString(e.GetDescription()), MB_OK | MB_ICONERROR);
}
}
Код, который я взял отсюда: https://docs.baslerweb .com/stream-grabber-parameters#total-buffer-count.
Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/790 ... -structure