In C++, you use the class member initialization list to call a non-default constructor of a member variable of the class. The member initialization list is specified with the constructor of the class. So, what you want to do is something like the following, where CMyDlg is the class that contains m_graph.
CMyDlg::CMyDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyDlg::IDD, pParent),
m_graph(CNiInterface::SingleThread)
{
}
David Rohacek
National Instruments