I have created my GUID, and I'm trying to compile my code.
But always is the same error message:
Error 1 The type 'System.Windows.Interop.IWin32Window' is defined in an assembly that is not referenced. You must add a reference to assembly 'PresentationCore, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. C:\C#_Projects\test8\PreviewBox\PreviewBox\Class1.
I have MVS2010 and AutoCAD2013.
Net framework 4.0.
What I should to do?
the message shows you:
>> You must add a reference to assembly 'PresentationCore [...]
have you done that?
- alfred -
no, I did not...
after the addition, works
I had to also add "static" in this line:
static Guid guid = new Guid("2919D05C-3A64-4098-B465-FCE445CBD1C7");
PaletteSet myPal = new PaletteSet("commandname", guid);
I test this example:
thank you alfred.
what I see when I open your project (have not started it at all):
Interesting would be to see what message you get? Upload a screenshot from this message.
- alfred -
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register