Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [Guid("14B55D90-E07B-4DC9-B2EE-25F15607518B")]
  2. [ComVisible(true)]
  3. public interface ComInterface
  4. {
  5. [DispId(0)]
  6. void ShowWindow();
  7. }
  8.  
  9. [Guid("CC01974D-82E2-4E9E-A48C-562D3ED83459")]
  10. [ComVisible(true)]
  11. [ClassInterface(ClassInterfaceType.None)]
  12. [ComDefaultInterface(typeof(ComInterface))]
  13.  
  14. public class ComClass: ComInterface
  15. {
  16. public void ShowWindow()
  17. {
  18. MainWPFWindow window = new MainWPFWindow();
  19. window.Show();
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement