Scattan
asked on
Problems with lineGetID()
Hi!
I'm trying to use lineGetID() like this:
int size = sizeof(VARSTRING) + 4;
VARSTRING* vs = (VARSTRING*)new char[size];
vs->dwTotalSize = size;
long r = GetID(NULL, 0, m_theCall, LINECALLSELECT_CALL, vs, "wave/out");
I have also tried:
GetID(m_theLine, 0, m_theCall, LINECALLSELECT_CALL, vs, "wave/out");
and:
GetID(NULL, 0, m_theCall, LINECALLSELECT_LINE, vs, "wave/out"); ...etc.
I get the return value 0x8000042 which is "nodevice".
What am I doing wrong? m_theLine and m_theCall have proper values (I think) from lineOpen etc.
Shall I use LINECALLSELECT_LINE or LINECALLSELECT_CALL for "wave/out" or doesn't it matter?
Maybe someone recognizes the problem!?
I'm trying to use lineGetID() like this:
int size = sizeof(VARSTRING) + 4;
VARSTRING* vs = (VARSTRING*)new char[size];
vs->dwTotalSize = size;
long r = GetID(NULL, 0, m_theCall, LINECALLSELECT_CALL, vs, "wave/out");
I have also tried:
GetID(m_theLine, 0, m_theCall, LINECALLSELECT_CALL, vs, "wave/out");
and:
GetID(NULL, 0, m_theCall, LINECALLSELECT_LINE, vs, "wave/out"); ...etc.
I get the return value 0x8000042 which is "nodevice".
What am I doing wrong? m_theLine and m_theCall have proper values (I think) from lineOpen etc.
Shall I use LINECALLSELECT_LINE or LINECALLSELECT_CALL for "wave/out" or doesn't it matter?
Maybe someone recognizes the problem!?
You may also need to use:
vs->dwStringFormat= STRINGFORMAT_BINARY;
-- Dan
vs->dwStringFormat= STRINGFORMAT_BINARY;
-- Dan
ASKER
Sorry.. I forgot to show the function declaration, GetID is just a WINAPI* to lineGetID so I can load tapi.dll instead of using the lib.
Anyway, the problem is now solved. The solution was to 1) use openLine with the LINEMAPPER parameter (this should NOT be necesary but it helped for me)
2) use the parameters GetID(m_theLine, 0, NULL, LINECALLSELECT_LINE, vs, "wave/out");
If I use LINECALLSELECT_LINE it seems like the call parameter must be null.
Thank you for trying to help me anyway!
Anyway, the problem is now solved. The solution was to 1) use openLine with the LINEMAPPER parameter (this should NOT be necesary but it helped for me)
2) use the parameters GetID(m_theLine, 0, NULL, LINECALLSELECT_LINE, vs, "wave/out");
If I use LINECALLSELECT_LINE it seems like the call parameter must be null.
Thank you for trying to help me anyway!
ASKER
(PS. I did not have to set vs->dwStringFormat= STRINGFORMAT_BINARY, it works anyway.)
ASKER
(PS. I did not have to set vs->dwStringFormat= STRINGFORMAT_BINARY, it works anyway.)
Since you have solved this yourself, please post to Community Support that you would like to get a refund and finalize this questioin. Ask to have this
"saved as a 0-pt PAQ"
Also say that the only commenting expert has no objection and mention the Question ID. It is:
Q_20341865
You can post to CS by clicking this link:
https://www.experts-exchange.com/Community_Support/qAskQuestion.jsp
-- Dan
"saved as a 0-pt PAQ"
Also say that the only commenting expert has no objection and mention the Question ID. It is:
Q_20341865
You can post to CS by clicking this link:
https://www.experts-exchange.com/Community_Support/qAskQuestion.jsp
-- Dan
ASKER
Thanks a lot!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
-- Dan