Link to home
Start Free TrialLog in
Avatar of Scattan
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!?
 

Avatar of DanRollins
DanRollins
Flag of United States of America image

I need more information to help diagnose this problem.  GetID is not a TAPI function.  Show the code you use to invoke the actual TAPI function.  Place a breakpoint before that call and examine each parameter.  List them (their values going into the TAPI function) here.

-- Dan
You may also need to use:

    vs->dwStringFormat= STRINGFORMAT_BINARY;

-- Dan
Avatar of Scattan
Scattan

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!
Avatar of Scattan

ASKER

(PS. I did not have to set vs->dwStringFormat= STRINGFORMAT_BINARY, it works anyway.)
Avatar of Scattan

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
Avatar of Scattan

ASKER

Thanks a lot!
ASKER CERTIFIED SOLUTION
Avatar of Mindphaser
Mindphaser

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial