Code Red > .NET

How to use CAcUiDockControlBar and CAcUiPaletteSetDockFrame in autocad2005?

(1/1)

itcad:
How to use  CAcUiDockControlBar and CAcUiPaletteSetDockFrame in autocad2005?
The code:

     [DllImport("acui16.dll", EntryPoint = "??0CAcUiDockControlBar@@QAE@XZ",
         CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        private static extern object  CAcUiDockControlBar();


        [DllImport("acui16.dll", EntryPoint = "??0CAcUiPaletteSetDockFrame@@QAE@XZ",
         CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        private static extern void CAcUiPaletteSetDockFrame();

        [DllImport("acui16.dll", EntryPoint = "?GetPalette@CAcUiMRUComboBox@@QAEPAUHPALETTE__@@XZ",
         CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        private static extern void GetPalette();

        [CommandMethod("AcUiTest")]
        static public void AcUiTest()
        {
            CAcUiPaletteSetDockFrame();
            GetPalette();
            CAcUiDockControlBar();
        }

TonyT:
There's no way to do what you are trying to do from managed code.

I also think that most reading your posts are not terribly interested in
topics related to 'retro-programming' with AutoCAD 2005 to do what
can easily be done in later releases.

There's really no justification for staying with that release and jumping
through all of the hoops you have to jump through to do things that
very easy in later releases.


--- Quote from: itcad on December 17, 2008, 10:33:46 PM ---How to use  CAcUiDockControlBar and CAcUiPaletteSetDockFrame in autocad2005?
The code:

     [DllImport("acui16.dll", EntryPoint = "??0CAcUiDockControlBar@@QAE@XZ",
         CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        private static extern object  CAcUiDockControlBar();


        [DllImport("acui16.dll", EntryPoint = "??0CAcUiPaletteSetDockFrame@@QAE@XZ",
         CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        private static extern void CAcUiPaletteSetDockFrame();

        [DllImport("acui16.dll", EntryPoint = "?GetPalette@CAcUiMRUComboBox@@QAEPAUHPALETTE__@@XZ",
         CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        private static extern void GetPalette();

        [CommandMethod("AcUiTest")]
        static public void AcUiTest()
        {
            CAcUiPaletteSetDockFrame();
            GetPalette();
            CAcUiDockControlBar();
        }

--- End quote ---

Navigation

[0] Message Index

Go to full version