Code: Select all
CFrameWnd::Create(........)
{
SiOpenData oData;
SiInitialize ();
SiOpenWinInit (&oData, GetSafeHwnd());
if ((m_DevHdl = SiOpen ("Buddy", SI_ANY_DEVICE, SI_NO_MASK, SI_EVENT, &oData)) == NULL )
{
char buf[1000];
sprintf(buf, "no supported 3DxWare device\n");
AfxMessageBox(L"no supported 3DxWare device\n",0, 0);
SiTerminate();
}
else
{
AfxMessageBox(L"3DxWare device found!\n", NULL, MB_OK);
SiSetUiMode (&m_DevHdl, SI_UI_ALL_CONTROLS);
}
}
I compiled siapp using the source code found in the 3Dconnexion 3DxWare SDK/lib/siapp/src.... Totally helpless here.
thx for your help![/code]