<?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 Re: How to use third party dll in arcobject tool? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369813#M9720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry. It's my mistake. I done with this job. Tks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Apr 2013 06:56:40 GMT</pubDate>
    <dc:creator>TruongPham</dc:creator>
    <dc:date>2013-04-04T06:56:40Z</dc:date>
    <item>
      <title>How to use third party dll in arcobject tool?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369810#M9717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use arcobject to build custom tool for working with arcmap or arcgis server like a geoprocessing tool. Is there any way to use third party dll in my case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have try test app as an arcengine application. It work fine when i copy 3nd dll to debug/bin folder and call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[DllImport("Shp2Dgn.dll")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public static extern int shp2dgn(string InputShp, string outputDGN, string seedFile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i try this code in geoprocessing app. Nothing occur.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 07:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369810#M9717</guid>
      <dc:creator>TruongPham</dc:creator>
      <dc:date>2013-04-03T07:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use third party dll in arcobject tool?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369811#M9718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My suggestion is to either debug your code or modify it such that it does logging.&amp;nbsp; For example, add a try/catch around the call to the unmanaged code and log any errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem might be that the logic is not finding your DLL.&amp;nbsp; Did you put in in the same directory as the executable image which is running, e.g. ArcMap.exe?&amp;nbsp; You should be able to modify the System PATH environment variable and put it in whatever directory that you choose.&amp;nbsp; Just note that existing process will not see the updated environment variable unless they are restarted, e.g. services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369811#M9718</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-04-03T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use third party dll in arcobject tool?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369812#M9719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My suggestion is to either debug your code or modify it such that it does logging.&amp;nbsp; For example, add a try/catch around the call to the unmanaged code and log any errors.&lt;BR /&gt;&lt;BR /&gt;The problem might be that the logic is not finding your DLL.&amp;nbsp; Did you put in in the same directory as the executable image which is running, e.g. ArcMap.exe?&amp;nbsp; You should be able to modify the System PATH environment variable and put it in whatever directory that you choose.&amp;nbsp; Just note that existing process will not see the updated environment variable unless they are restarted, e.g. services.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used try - catch but is just run throw the code with out catch. I had try put Shp2Dgn dll to Arcgis.exe (C:\Program Files\ArcGIS\Bin) folder also but it seem can not see this library. Shp2Dgn is library in C++ to convert from Shape file to DGN file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I show here test code in arcengine which work fine. [ATTACH=CONFIG]23188[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And other code in arcobject geoprocessing that didn't call C++ library. [ATTACH=CONFIG]23189[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wondering that in geoprocessing code, i have to register dll with arcgis (by code or manually). I had try register Shp2Dgn dll manually but not success. Because of it isn't com dll.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me! Thanks for your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 01:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369812#M9719</guid>
      <dc:creator>TruongPham</dc:creator>
      <dc:date>2013-04-04T01:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use third party dll in arcobject tool?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369813#M9720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry. It's my mistake. I done with this job. Tks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 06:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-third-party-dll-in-arcobject-tool/m-p/369813#M9720</guid>
      <dc:creator>TruongPham</dc:creator>
      <dc:date>2013-04-04T06:56:40Z</dc:date>
    </item>
  </channel>
</rss>

