Digital Signal Processing Reference
In-Depth Information
FIGURE 9.16.
Visual C++ windows handler for the message
WM
_
HSCROLL.
CSliderCrtl* pSliderCrtl = (CSliderCrtl*)
GetDlgItem(IDC_SLIDER1);
pSliderCrtl->SetRange(1,10);
pRTDX = new IRtdxExp;
pRTDX->CreateDispatch(_T( RTDX ));
if(pRTDX->SetProcessor(_T(
≤
≤
≤
C
6713
DSK
≤
),_T( CPU_1 )))
≤
≤
MessageBox(
Could not se
Open
Could not open
≤
t the processor! ,
≤ ≤
Error
≤
);
if(pRTDX->
( control_channel
≤
≤ ≤ ≤
,
W
))
MessageBox(
≤
the
channel
!
≤ ≤
, Error );
≤
(e)
Double-click on the class
CTestprojectDlg
and add the following line of
code just before the class definition statement:
#include “rtdxint.h”
(f)
Select the class
CTestprojectApp
and expand it. Double-click on the func-
tion
InitInstance( )
and add the following line of code:
AfxOleInit( );
just above the line
CTestApp
Dlg dlg; .
Search WWH ::
Custom Search