Sina,
I am able to successfully at performing the functions below:
CoInitialize(NULL);
testInterface = pmacDevice.CreateDispatch(_T("PcommServer.PmacDevice.1"));
pmacDevice.SelectDevice(NULL,&dwDevice,&pbSuccess);
pmacDevice.Open(dwDevice,&pbSuccess);
pAvail = pmacDevice.GetDPRAvailable(dwDevice );
DPLenWords = pmacDevice.GetDPRSize(dwDevice);
However when I try to do a GetResponseEx pmacDevice.GetResponseEx(dwDevice,Quest,bAddLF,pAns,&DPSuccess);
I'm not sure how to interperate the results. DPSuccess = 0x80000007 which is good, but I don't unstand what is in the pAns (answer).
Do you have any "Visual Studio 6.0" C++ examples that call pmacDevice.GetResponseEx(dwDevice,Quest,bAddLF,pAns,&DPSuccess); and dispaly the results? see code below.
// TODO: Add Delta Tau extra initialization here
long testInterface;
long dwDevice;
BOOL pbSuccess;
CoInitialize(NULL);
testInterface = pmacDevice.CreateDispatch(_T("PcommServer.PmacDevice.1"));
if (!testInterface)
AfxMessageBox("Can Not Connect PcommServer Interface ");
pmacDevice.SelectDevice(NULL,&dwDevice,&pbSuccess);
pmacDevice.Open(dwDevice,&pbSuccess);
bool pAvail;
pAvail = pmacDevice.GetDPRAvailable(dwDevice );
long DPLenWords, DPSuccess;
VARIANT_BOOL bAddLF = true;
DPLenWords = pmacDevice.GetDPRSize(dwDevice);
char Question[2000];
LPCTSTR Quest ;
BSTR pAns[5000] ;
CString SAns;
Quest = Question;
sprintf(Question,"I8000");
pmacDevice.GetResponseEx(dwDevice,Quest,bAddLF,pAns,&DPSuccess);
// TODO: End Add Delta Tau extra initialization here
Thanks,
Islay