<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for the advice, Kevin.<div><br></div><div>I was finally able to make it run.</div><div><br></div><div>Last time when I tried with GME 12 and failed, I used VS 2010 to create/compile my old BON2 code.</div><div><br></div><div>This time, I used VS2008 with the same code, and ran it on GME 12, and it worked!</div><div><br></div><div>I didn't find exactly what made the difference, but there might have been something different between the VS2008 and VS2010 BON wizards ...</div><div><br></div><div>Thank you again!</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>~Jae</div><div><a href="mailto:jaeyounb@USC.edu">jaeyounb@USC.edu</a></div></div></div></div></span></div></span></div></span></div></span></span>
</div>
<br><div><div>On May 1, 2012, at 9:47 AM, Kevin Smyth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Jae,<br><br>If memory serves, the BON component wizard didn't have the predestroyed<br>event listed, although it should have, for some versions of GME. I'm not<br>sure when that was fixed or when the predestroyed event was added.<br><br>I'd suggest you try to make it work with GME 12. It should be as simple<br>as rebuilding your project. The BON interface and implementation hasn't<br>changed much. Maybe what happened is that you compiled your project,<br>then installed GME 12. Since Visual Studio does its incremental build<br>based on timestamps, your idl and/or cpp files wouldn't have been<br>recompiled. Try installing GME 12 then rebuilding.<br><br>If that doesn't work, let me know what the error message is.<br><br>Kevin<br><br><br>-----Original Message-----<br>From: <a href="mailto:gme-users-bounces@list.isis.vanderbilt.edu">gme-users-bounces@list.isis.vanderbilt.edu</a><br>[mailto:gme-users-bounces@list.isis.vanderbilt.edu] On Behalf Of Jae<br>young Bang<br>Sent: Monday, April 30, 2012 5:02 PM<br>To: gme-users<br>Subject: [gme-users] PRE_DESTROYED in GME 10.8.18<br><br>Hello,<br><br>I was trying to migrate from GME 9.12.15 to GME 10.8.18 to take<br>advantage of the new PRE_DESTROYED object event.<br><br>The README file of GME 10.8.18 says that PRE_DESTROYED was introduced in<br>GME 10.6.1, and I see some lines of code in the GME 10.8.18 source code<br>that look like creating the PRE_DESTROYED object event.<br><br>I actually tried the latest GME 12 first, and it did work partly -- it<br>called objectEventPerformed() in the BON2 component successfully with<br>PRE_DESTROYED. However, my old BON2 code that I originally developed for<br>GME 9.12.15 somehow did not work (it somehow no longer allowed me to<br>call the component itself and invoke invokeEx() through<br>Component->GetInterface()), so I removed GME 12 and am trying with GME<br>10. It seems like GME 10.8.18 runs my old BON2 code with no problem, but<br>somehow I don't get the PRE_DESTROYED events.<br><br>I am trying to create a completely new BON2 AddOn through the SDK. The<br>problem is that I don't see PRE_DESTROYED in the Add-on events list of<br>the GME COM Component Wizard. Does GME 10.8.18 support PRE_DESTROYED?<br>Because I see something regarding the COM interface has been rolled back<br>in the README of GME 10.6.4, I am not so sure if the PRE_DESTROYED<br>support is alive in 10.8.18.<br><br>Is there any way that I can use PRE_DESTROYED in GME 10.8.18?<br><br>Thank you everyone in advance, especially Kevin. I have been asking too<br>many stupid questions over the last several years. This project I'm<br>working on, at least the part that I am supposed to do stuff with GME,<br>is nearing the end. I truly appreciate all of your helps and answers!<br>_______________________________________________<br>gme-users mailing list<br><a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users<br>_______________________________________________<br>gme-users mailing list<br>gme-users@list.isis.vanderbilt.edu<br>http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users<br></div></blockquote></div><br></div></body></html>