<?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: Help with IntPtr Please? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/help-with-intptr-please/m-p/2805876#M63343</link>
    <description>&lt;P&gt;&lt;FONT size="2"&gt;Thank you for the links, I see what it does, and I'd like to implement it as we are going to Win7 64 bit soon and this would save me from changing some code, but I still dont get how to change my code, all the examples dont pertain to autocad and ObjectIds so they are'nt helping me much. Can you gimme a push?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Here's a little more of the code...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;Dim oInputID &lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt; ObjectId&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Select&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Case&lt;/FONT&gt;&lt;/FONT&gt; (arInputArgs(0).TypeCode)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; Case&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(LispDataType.ObjectId, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Short&lt;/FONT&gt;&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oInputID = &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(arInputArgs(0).Value, Autodesk.AutoCAD.DatabaseServices.ObjectId)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; Case&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(LispDataType.Int32, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Short&lt;/FONT&gt;&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;'warning occurs on the following line &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oInputID = &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt; ObjectId(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(arInputArgs(0).Value, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;End&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Select&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Oct 2010 11:48:16 GMT</pubDate>
    <dc:creator>jshimkus</dc:creator>
    <dc:date>2010-10-23T11:48:16Z</dc:date>
    <item>
      <title>Help with IntPtr Please?</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-with-intptr-please/m-p/2805340#M63341</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;I have these warnings that I cant figure out how to clear up...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;'Public Sub New(oldId As Inter)' is obsolete: 'Use ObjectId(IntPtr)'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;The highlghted lines of code are are all like this one....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;oInputID =&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt; ObjectId(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(arInputArgs(0).Value, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I dont understand how to implement the correction&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Could someone explain IntPtr and show me how to correct this line?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:17:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-with-intptr-please/m-p/2805340#M63341</guid>
      <dc:creator>jshimkus</dc:creator>
      <dc:date>2010-10-22T17:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IntPtr Please?</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-with-intptr-please/m-p/2805728#M63342</link>
      <description>&lt;P&gt;Start here&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="nofollow"&gt;http://msdn.microsoft.com/en-us/library/system.intptr(v=VS.90).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="nofollow" href="http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/e7bb4152-30e3-4a00-93d5-0361060425d9"&gt;http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/e7bb4152-30e3-4a00-93d5-0361060425d9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="nofollow" href="http://www.google.com.au/search?hl=en&amp;amp;rlz=1T4ADFA_enAU389AU389&amp;amp;q=c+intptr+tutorial&amp;amp;aq=0m&amp;amp;aqi=g-m1&amp;amp;aql=&amp;amp;oq=intptr+tu&amp;amp;gs_rfai"&gt;http://www.google.com.au/search?hl=en&amp;amp;rlz=1T4ADFA_enAU389AU389&amp;amp;q=c+intptr+tutorial&amp;amp;aq=0m&amp;amp;aqi=g-m1&amp;amp;aql=&amp;amp;oq=intptr+tu&amp;amp;gs_rfai&lt;/A&gt;=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 22:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-with-intptr-please/m-p/2805728#M63342</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2010-10-22T22:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IntPtr Please?</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-with-intptr-please/m-p/2805876#M63343</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Thank you for the links, I see what it does, and I'd like to implement it as we are going to Win7 64 bit soon and this would save me from changing some code, but I still dont get how to change my code, all the examples dont pertain to autocad and ObjectIds so they are'nt helping me much. Can you gimme a push?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Here's a little more of the code...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;Dim oInputID &lt;/FONT&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt; ObjectId&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Select&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Case&lt;/FONT&gt;&lt;/FONT&gt; (arInputArgs(0).TypeCode)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; Case&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(LispDataType.ObjectId, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Short&lt;/FONT&gt;&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oInputID = &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(arInputArgs(0).Value, Autodesk.AutoCAD.DatabaseServices.ObjectId)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; Case&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(LispDataType.Int32, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Short&lt;/FONT&gt;&lt;/FONT&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;'warning occurs on the following line &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oInputID = &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;New&lt;/FONT&gt;&lt;/FONT&gt; ObjectId(&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;(arInputArgs(0).Value, &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;End&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Select&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2010 11:48:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-with-intptr-please/m-p/2805876#M63343</guid>
      <dc:creator>jshimkus</dc:creator>
      <dc:date>2010-10-23T11:48:16Z</dc:date>
    </item>
  </channel>
</rss>

