Thread: How to get Quit event of WORD from our function?

  1. #1
    Registered User lucadoi's Avatar
    Join Date
    Oct 2007
    Posts
    3

    Question How to get Quit event of WORD from our function?

    I am writing a plugin which get text from WORD after quitting WORD. But I do not know how to catch Quit event of WORD from my plug-in function.
    Thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    What does your "plugin" plug into - word, your web browser, your email client ?

    Or do you mean you have a word plugin which runs just before word quits?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User lucadoi's Avatar
    Join Date
    Oct 2007
    Posts
    3

    Thumbs up It is FileMaker Plug-in

    I am working with FileMaker Plug-in. I writing a plug-in function. When this function is called, it will initiate a WORD process. I want to get text from word document(user type) after user close WORD application. This text will be filled in FileMaker. I declare a WORD application and WORD Document object point to the WORD application running. But I do not know how to get the Quit even of WORD app. If you have any ideas, please help me! Thk you so much!

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    A crude way would be to do something like this
    system("word temp.doc");
    which would only return when the user had saved temp.doc and quit word.

    A more refined approach would be to use OLE / DDE / or whatever microsoft calls it's inter-application interfaces nowadays.

    But I don't know any details, since IANAWP.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  3. seg fault at vectornew
    By tytelizgal in forum C Programming
    Replies: 2
    Last Post: 10-25-2008, 01:22 PM
  4. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  5. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM