01-23-2008 12:34 PM
01-23-2008 02:10 PM - edited 01-23-2008 02:11 PM
LOL!! I have too many ms stories..
Ever use Borland C, then Borland C++ ver 4.0, then 4.5? then 5.0?
BAck to topic..
Getting much closer.. The callback example is where I'm at.. Works well... opens word. closes it.. calls the callback VI which pops up the message. It's almost there.
How do you genenrate a trigger from the Strictly Typed VI created by the Reg Event Callback?
01-23-2008 02:36 PM
01-25-2008 09:17 AM
Great topic,
The only other thing to watch out for is that all callback VI's are inherently reentrant and they run in their own application instance of LV. I found this out during my current project using teststand. Drove me crazy trying to figure out why somethings would work and others would not. Just something to keep in mind.
01-26-2008 08:00 AM
Thank you Joe..
I'm close to the solution (although I've been working on other parts of the project). You may have explained a "mysterious" behavior that I did not get a chance to investigate.
What I described earlier is a simplified version of what I'm trying to do. Many thanks also to smercurio for leading me into the right direction. 🙂
01-29-2008 03:49 PM - edited 01-29-2008 03:50 PM
It is somewhat working.. Many thanks guys..
I did find out what causes the "somewhat".. It is a race condition.
Word is busy doing it's thing : adding text to the document & adding pretty pictures, etc.
I need to detect when it is done doing "those" things. I know there is a way of doing this, I did it before, can't remember how, etc... Detecting when it is done will also prevent the application for leaving the foreground.
I include a very tiny code tid-bit.. It's simple, place text in the range and format the text... nothing special. I just want to know when it is done.
I could place a wait.... but that's just not right.. 😠
🙂
01-29-2008 07:27 PM
Everything is good.
It turned out not to be a race condition. I changed a couple of things... related to how the report comes to the front and resetting the boolean for the Quit event.
That was it.. Strangely simple.. 😮
😄
01-30-2008 08:20 AM
01-30-2008 12:25 PM