05-10-2008 04:40 PM
05-12-2008 04:08 PM
05-13-2008 06:03 PM
05-14-2009 10:23 AM
I realise that this is some time ago, but I'm working on a similar project and need some MFC assistance.
I've created a DLL with MFC, but I need to use Multithreading to collect some data.
Since all the calls look similar to
_declspec(dllexport) HRESULT __cdecl OpenPort ( unsigned char DeviceID )
{
return ( m_pBrickInput->OpenDevice ( DeviceID ) );
}
I haven't had any reason to create any instances of the class.
Now, when I try to do this...
static void StartRead(void)
{
CBrickApp *MyApp;
MyApp = new (CBrickApp);
MyApp->StartReader();
}
void CBrickApp::StartReader(void)
{
CWinThread *pReaderThread;
// this->Data.SetSize(0);
pReaderThread = AfxBeginThread (ReadThread, (void *)this, THREAD_PRIORITY_HIGHEST,
0, 0, NULL );
}
the MFC Linker complains...
Any suggestions ?
DOK
05-15-2009 10:17 AM
DOK has created a new forum post with this question. See this link for additional resources.
Measurement Studio for VC++ (http://forums.ni.com/ni/board/message?board.id=231&message.id=6360&jump=true#M6360)
Regards,
Steven Zittrower
Applications Engineer
National Instruments