Monday, April 24, 2006

VSIP goodnes

I'm working on a Visual Studio package for MySQL and discovering that it is
possible to write hundreds of pages of documentation and still not be able to
answer some of the most basic questions.  Microsoft does it over and over
again. 


In this case I'm using managed code to create a custom editor for our
database objects (think Server Explorer).  I don't want to register a file
extension.  After considerable trial and error, I got  a chunk of code
working.  This code called IVsUIShellOpenDocument.InitializeEditorInstance
and IVsUIShell.CreateDocumentWindow and my editor appeared.  However, it
would not prompt to save when the window pane was closed.  GetDocumentInfo
showed an edit lock on my document but UnlockDocument could not remove it.


I replaced this code with simpler code that called
IVsUIShellOpenDocument.OpenSpecificEditor and my documents suddenly started
prompting to save properly.  I had wanted to avoid going this route because
it requires an editor factory class that I thought was unnecessary.  Oh
well.  Unnecessary working code is better than sleek busted
code.

19 comments:

  1. corel draw graphics suite 12%November 24, 2006 at 5:27 AM

    %22corel draw graphics suite 12%22 activation code

    ReplyDelete
  2. nelly ctip drill

    ReplyDelete
  3. barnes & noble

    ReplyDelete
  4. christmas jokes

    ReplyDelete
  5. grammy awards



    ReplyDelete
  6. elizabeth berkley


    ReplyDelete
  7. jennifer aniston sedu hair straiNovember 24, 2006 at 3:33 PM

    jennifer aniston sedu hair straightener




    ReplyDelete
  8. may be it;s too late, but i have to say that this post is nice :)

    ReplyDelete
  9. Kampanye Damai Pemilu Indonesia 2009April 28, 2009 at 9:21 PM

    what a nice post, thanks for informing.

    ReplyDelete
  10. welcome to my blog world trying to have a blog like this but until now I can not. Maybe next time I will be able to have a blog like this

    ReplyDelete