Author Topic: DLLImport for acedSSGet in AutoCAD R13 in .Net  (Read 2242 times)

0 Members and 1 Guest are viewing this topic.

cannorth

  • Guest
DLLImport for acedSSGet in AutoCAD R13 in .Net
« on: November 02, 2012, 05:34:11 PM »
Hello,

  I'm trying to use old code from AutoCAD R12 .Net in a new AutoCAD R13 .Net program.  However, when I do
    <DllImport("acad.exe", CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Unicode, ExactSpelling:=True)> _
    Private Shared Function acedSSGet(ByVal str As String, ByVal pt1 As IntPtr, ByVal pt2 As IntPtr, ByVal filter As IntPtr, ByRef ss As ads_name) As Autodesk.AutoCAD.EditorInput.PromptStatus
    End Function

  and I run the acedSSGet function it doesn't work.  What DLL do I need to import?

Thanks,

cannorth
« Last Edit: November 02, 2012, 06:05:14 PM by cannorth »

BlackBox

  • King Gator
  • Posts: 3770
Re: DLLImport for acedSSGet in AutoCAD 2013
« Reply #1 on: November 02, 2012, 05:59:24 PM »
Did you mean for AutoCAD 2013 .NET 4.0 (i.e., R13 != 2013)...?
« Last Edit: November 02, 2012, 06:02:35 PM by RenderMan »
"How we think determines what we do, and what we do determines what we get."

cannorth

  • Guest
Re: DLLImport for acedSSGet in AutoCAD R13
« Reply #2 on: November 02, 2012, 06:01:14 PM »
Yes.

BlackBox

  • King Gator
  • Posts: 3770
Re: DLLImport for acedSSGet in AutoCAD 2013
« Reply #3 on: November 02, 2012, 06:02:24 PM »
You may want to revise your thread title, and references in the OP so others do not get confused.  :wink:
"How we think determines what we do, and what we do determines what we get."

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8825
  • AKA Daniel
Re: DLLImport for acedSSGet in AutoCAD R13 in .Net
« Reply #4 on: November 02, 2012, 08:10:22 PM »
change "acad.exe" to "accore.dll"  :-)

cannorth

  • Guest
Re: DLLImport for acedSSGet in AutoCAD R13 in .Net
« Reply #5 on: November 06, 2012, 10:27:04 AM »
That solved it.  Thanks.

cannorth