<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to display help in AutoCAD 2015 32bit in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/unable-to-display-help-in-autocad-2015-32bit/m-p/5082502#M43722</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the acedSetFnHelp function from the "accore.dll" to call out to my own help file from a VB.NET application (loaded using netload). The call is declared as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;DllImport("accore.dll", CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Auto, EntryPoint:="acedSetFunHelp")&amp;gt; _&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Private Function acedSetFunHelp(ByVal functionName As String, ByVal helpFile As String, ByVal helpTopic As String, ByVal cmd As Integer) As Integer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;End Function&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This call works fine for AutoCAD 2012,2013,2014 both 32bit and 64bit and also works for AutoCAD 2015 64bit.&lt;/P&gt;&lt;P&gt;However I cannot get it to work when the application is running under AutoCAD 2015 32bit. The call simply fails and I am unable to get any form of error message to find out why it is failing. In fact it stops the application from loading.&amp;nbsp; I have tried putting a try..catch around the call to acedSetFunHelp but this does not help (the try..catch does not even&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The call to the function acedSetFunHelp always passes the value 0 (zero) as the cmd parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has the call to the acedSetFunHelp function changed in the 2015 release and is it different between the 32bit and 64bit versions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help you can give on this matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jun 2014 09:14:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-09T09:14:43Z</dc:date>
    <item>
      <title>Unable to display help in AutoCAD 2015 32bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-display-help-in-autocad-2015-32bit/m-p/5082502#M43722</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the acedSetFnHelp function from the "accore.dll" to call out to my own help file from a VB.NET application (loaded using netload). The call is declared as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;DllImport("accore.dll", CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Auto, EntryPoint:="acedSetFunHelp")&amp;gt; _&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Private Function acedSetFunHelp(ByVal functionName As String, ByVal helpFile As String, ByVal helpTopic As String, ByVal cmd As Integer) As Integer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;End Function&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This call works fine for AutoCAD 2012,2013,2014 both 32bit and 64bit and also works for AutoCAD 2015 64bit.&lt;/P&gt;&lt;P&gt;However I cannot get it to work when the application is running under AutoCAD 2015 32bit. The call simply fails and I am unable to get any form of error message to find out why it is failing. In fact it stops the application from loading.&amp;nbsp; I have tried putting a try..catch around the call to acedSetFunHelp but this does not help (the try..catch does not even&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The call to the function acedSetFunHelp always passes the value 0 (zero) as the cmd parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has the call to the acedSetFunHelp function changed in the 2015 release and is it different between the 32bit and 64bit versions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help you can give on this matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 09:14:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-display-help-in-autocad-2015-32bit/m-p/5082502#M43722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T09:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to display help in AutoCAD 2015 32bit</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-display-help-in-autocad-2015-32bit/m-p/5090978#M43723</link>
      <description>&lt;P&gt;Dear Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try using C++ undecorated function names in entrypoint in you dllimport, as these entrypoints are different for both x64 and X86.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;PRE&gt;/*x64*/
/* [DllImport("accore.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, EntryPoint = "?acedSetFunHelp@@YAHPEB_W00H@Z", ExactSpelling = true)]
private static extern int acedSetFunHelp(string functionName, string helpFile,string helpTopic,int cmd);*/

/*x86*/
[DllImport("accore.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, EntryPoint = "?acedSetFunHelp@@YAHPB_W00H@Z", ExactSpelling = true)]
private static extern int acedSetFunHelp(string functionName, string helpFile,string helpTopic,int cmd);
         
[CommandMethod("HelpTest")]
static public void Cmd1()
{
    string exfun = "c:MYCOMMAND";
         
    int rc = -1;
    string helpfile= "arxref.chm";
    rc = acedSetFunHelp(exfun, helpfile, "", 0);
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-IN; mso-fareast-language: EN-IN; mso-bidi-language: AR-SA;"&gt;Here “MYCOMMAND” is custom command registered using&lt;BR /&gt;ARX, sample command function I used to test&lt;/SPAN&gt;.&lt;/P&gt;&lt;PRE&gt;static void ASDkMyGroupMyCommand ()
{
ads_real result;
if(acedGetReal(L"Now Click F1 to get Help displayed",&amp;amp;result) == RTNORM)
{
acutPrintf(L"HelpDisplayed");
 
}
}
ACED_ARXCOMMAND_ENTRY_AUTO(CArxTestOne2015App, ASDkMyGroup, MyCommand, MyCommandLocal, ACRX_CMD_MODAL, NULL)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2014 12:48:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-display-help-in-autocad-2015-32bit/m-p/5090978#M43723</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2014-06-12T12:48:12Z</dc:date>
    </item>
  </channel>
</rss>

