<?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: Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7) in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302539#M17327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the linker isn't finding the DLL, it might not be looking for the one that's been installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a 64-bit ArcSDE SDK installed?&amp;nbsp; ArcGIS 10.1 will be mostly 64-bit, but 10.0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is mostly 32-bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unix has this great little utility called 'ldd' which reports dynamic library dependencies and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;resolution for an application or library.&amp;nbsp; The closest windows has is &lt;/SPAN&gt;&lt;A href="http://dependencywalker.com/"&gt;Dependency Walker&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which I've used to track down obscure dependencies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the time_t size was an issue you would have gotten a different error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2011 12:21:22 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2011-04-14T12:21:22Z</dc:date>
    <item>
      <title>Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7)</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302536#M17324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;P align="left"&gt;Hello,&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;P align="left"&gt;I am migrating a solution from Visual Studio 2005 (Windows XP, ArcGIS 9.3.1) to Visual Studio 2008 (Windows 7, ArcGIS 10). The solution contains several ArcMap Class libraries (dlls). The libraries are written in C#. One library, however, is written in C++ (named SDEWriter). It is a CLR class library (dll) and uses the ArcSDE C SDK written in native C. I have a problem linking the ArcSDE libraries (libs) to my SDEWriter dll. One of the error messages is as follows:&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: Courier New;"&gt;error LNK2028: unresolved token (0A00000E) "extern "C" long __stdcall SE_error_get_string(long,char *)" (?SE_error_get_string@@$$J18YGJJPAD@Z) referenced in function "public: static bool __clrcall SDEWriter::SDEfuncs::Error(long,class std::basic_string&amp;lt;char,struct std::char_traits&amp;lt;char&amp;gt;,class std::allocator&amp;lt;char&amp;gt; &amp;gt;)"&lt;/STRONG&gt;&lt;SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;P align="left"&gt;As far as I understand the problem, my C++ project is a managed project, whereas the ArcSDE C SDK libraries are written in native C. --&amp;gt; My managed project (dll) cannot link to the unmanaged ArcSDE libraries (libs). What is strange: on Windows XP, everything worked fine!&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;P align="left"&gt;Some additional information about the "SDEWriter" project properties:&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Common Language Runtime Support: Old Syntax (/clr: oldSyntax)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Additional Include Directories: path to the ArcSDE C SDK include folder&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Additional Libary Directories: path to the ArcSDE C SDK lib folder&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Additional Dependencies: sg.lib, sde.lib, pe.lib and icuuc.lib&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;I have searched the web and tried out a lot of things, but nothing works! I would be very glad if anyone could help!!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;P align="left"&gt;Thanks a lot for your help in advance,&lt;/P&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;P align="left"&gt;Barbara&lt;/P&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 06:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302536#M17324</guid>
      <dc:creator>BarbaraSchneider</dc:creator>
      <dc:date>2011-04-12T06:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems migrating using ArcSDE C SDK project to Windows 7</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302537#M17325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your title is a bit misleading, since the issue is VS2005-&amp;gt;VS2008 migration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using&amp;nbsp; vs9 for several years, but I write 'C' programs with the 'C' API. I found &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;incompatibility with the default time_t upon upgrade to VS2008, requiring addition of a &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_USE_32BIT_TIME_T macro on Win32 projects (x64 ArcSDE uses the default 64-bit &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time_t).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The static/dynamic issue seems like an artifact introduced by Microsoft with the new&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;compiler.&amp;nbsp; I've found that rebuilding my solution from scratch can sometimes change&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dependencies, so if you can't live with a static DLL, then that should probably be your &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 11:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302537#M17325</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-04-12T11:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7)</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302538#M17326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your reply! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I now understand why I can build a static library (lib): no linking is done there. I can compile my project, but I cannot link it. Rebuilding my solution from scratch doesn't help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that the linker cannot find the sde.dll, or that it cannot find the methods in the sde.lib. That's what I infer from the linker outputs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my VS 2005 project, the linker output is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;......
1&amp;gt;Searching libraries
1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Searching C:\ArcGIS\ArcSDE\lib\sde.lib:
1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Found _SE_error_get_string@8
1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loaded sde.lib(sde.dll)
........&lt;/PRE&gt;&lt;SPAN&gt;In my VS 2008 project, however, the linker output is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;.......
1&amp;gt;Searching libraries
1&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Searching C:\ArcGIS\arcsde\lib\sde.lib:
......&lt;/PRE&gt;&lt;SPAN&gt;I don't use the data type time_t in my project, so I suppose that this is not a problem? Otherwise, could you please explain to me how this macro works? I haven't found anything useful on the web.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Barbara&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302538#M17326</guid>
      <dc:creator>BarbaraSchneider</dc:creator>
      <dc:date>2021-12-11T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7)</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302539#M17327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the linker isn't finding the DLL, it might not be looking for the one that's been installed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a 64-bit ArcSDE SDK installed?&amp;nbsp; ArcGIS 10.1 will be mostly 64-bit, but 10.0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is mostly 32-bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unix has this great little utility called 'ldd' which reports dynamic library dependencies and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;resolution for an application or library.&amp;nbsp; The closest windows has is &lt;/SPAN&gt;&lt;A href="http://dependencywalker.com/"&gt;Dependency Walker&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which I've used to track down obscure dependencies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the time_t size was an issue you would have gotten a different error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 12:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302539#M17327</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-04-14T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7)</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302540#M17328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 64-bit ArcSDE SDK installed. I am using ArcGIS 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already tried the dependency walker, but it gave me some strange results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- On my "old" machine (i.e. the one with VS 2005 and ArcGIS 9.3.1), I opened SDEWriter.dll in dependecy walker. There was an error message saying sde.dll and msvcr80d.dll could not be found (see attachment "VS2005_DepWalker_SDEWriter.dll.jpg"). This is REALLY strange because I could build and link my SDEWriter.dll, and the code works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- On my "new" machine (VS 2008 and ArcGIS 10.0) I could obviously not open SDEWriter.dll in dependecy walker (because it could not be created beforehand). However, I opened sde.dll. There were also some error messages (see attachment "VS2008_DepWalker_Sde.dll.jpg"). I don't know if they are important.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Barbara&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 13:25:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302540#M17328</guid>
      <dc:creator>BarbaraSchneider</dc:creator>
      <dc:date>2011-04-14T13:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7)</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302541#M17329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 64-bit ArcSDE SDK will *NOT* link to 32-bit applications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is true on *all* platforms --&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;32-bit app with 32-bit SDK with 32-bit DLL on 32-bit _OR_ 64-bit OS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;64-bit app with 64-bit SDK with 64-bit DLL on 64-bit OS *only*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you uninstall the 64-bit SDK and install the 32-bit, your applications will resolve the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sde.dll/sg.dll/pe.dll dependency chain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 13:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302541#M17329</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-04-14T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7)</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302542#M17330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cool!!!!!!! If this is the solution, I can go on a vacation ...:D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try it tomorrow and let you know. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a nice day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Barbara&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 17:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302542#M17330</guid>
      <dc:creator>BarbaraSchneider</dc:creator>
      <dc:date>2011-04-14T17:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems migrating ArcSDE C SDK project to Visual Studio 2008 (Windows 7)</title>
      <link>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302543#M17331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Barbara&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 06:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/problems-migrating-arcsde-c-sdk-project-to-visual/m-p/302543#M17331</guid>
      <dc:creator>BarbaraSchneider</dc:creator>
      <dc:date>2011-04-15T06:09:21Z</dc:date>
    </item>
  </channel>
</rss>

