<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<br>
<br>
You are correct, the pvApiCtx global define available in Scilab 5 no more exists in Scilab 6 as described in [1] or [2]. The call_scilab might need to be updated to cover this change, could you please post a bug on that ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1]: <a href="https://cgit.scilab.org/scilab/tree/scilab/CHANGES.md?id=6.0.2#n374">
https://cgit.scilab.org/scilab/tree/scilab/CHANGES.md?id=6.0.2#n374</a><o:p></o:p></p>
<p class="MsoNormal">[2]: <a href="https://help.scilab.org/docs/6.1.0/en_US/integerExample.html">
https://help.scilab.org/docs/6.1.0/en_US/integerExample.html</a> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In a sentence, you should add a variable `void* pvApiCtx` on each gateway declaration. This variable will be passed through the Scilab APIs as a context of execution.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">--<o:p></o:p></p>
<p class="MsoNormal">Clément<o:p></o:p></p>
<p class="MsoNormal"><br>
> -----Original Message-----<br>
> From: users <users-bounces@lists.scilab.org> On Behalf Of Freddos<br>
> Sent: Friday, May 8, 2020 11:19 AM<br>
> To: users@lists.scilab.org<br>
> Subject: Re: [Scilab-users] Windows 10 VS 2015 example under ilib_build fails<br>
> pvApiCtx undeclared identifier<br>
> <br>
> How did it go with this one? I just upgraded to Scilab 6.1 (from 5.5.2) and got the<br>
> "pvApiCtx: undeclared indentifier" using the "Scilab Engine"<br>
> (calling Scilab from my C++ application). All upgrade documentation (5 to 6) I<br>
> have found only talks about the API using Gateways (not Scilab Engine), and the<br>
> documentation for the call scilab api still has code examples with the pvApiCtx<br>
> variable ("Double management" for example). But looking in the scilab headers<br>
> it seems to have been removed. So either how do I get the pvApiCtx variable (?)<br>
> or how is the right way to read variables from the Scilab Engine in Scilab 6.x?<br>
> <br>
> <br>
> <br>
> --<br>
> Sent from: <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-" target="_BLANK䫘ǿ">
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-</a><br>
> f2602246.html<br>
> _______________________________________________<br>
> users mailing list<br>
> users@lists.scilab.org<br>
> <a href="http://lists.scilab.org/mailman/listinfo/users" target="_BLANK䫘ǿ">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></p>
</div>
</body>
</html>