Hi Peter<div><br></div><div>Thanks for your answer. Your provided code got compiled straight away.</div><div><br></div><div>But when I actually ran my interpreter (a very simple one, just exports the current model), I got an assertion error at this line:</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">COMTHROW( dumper-&gt;DumpProject(project-&gt;getProjectI(), xmlPath) );</span></div><div>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Do you have any idea what may cause the error?</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Many thanks</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Cuong Tran.<br>
</span></font><br><div class="gmail_quote">On Mon, Nov 1, 2010 at 1:46 PM, Peter Volgyesi <span dir="ltr">&lt;<a href="mailto:peter.volgyesi@vanderbilt.edu">peter.volgyesi@vanderbilt.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There is no built-in support for that. You can use &quot;raw&quot; COM to invoke<br>
the parser/dumper.<br>
Eg.:<br>
<br>
CComPtr&lt;IMgaParser&gt; parser;<br>
COMTHROW(parser.CoCreateInstance(L&quot;Mga.MgaParser&quot;) );<br>
CComBSTR xmlPath(&quot;C:\\Temp\\test.xme&quot;);<br>
COMTHROW( parser-&gt;ParseProject(project-&gt;getProjectI(), xmlPath) );<br>
<br>
CComPtr&lt;IMgaDumper&gt; dumper;<br>
COMTHROW(dumper.CoCreateInstance(L&quot;Mga.MgaDumper&quot;) );<br>
CComBSTR xmlPath(&quot;C:\\Temp\\test.xme&quot;);<br>
COMTHROW( dumper-&gt;DumpProject(project-&gt;getProjectI(), xmlPath) );<br>
<br>
<br>
--<br>
<font color="#888888">peter<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Mon, Nov 1, 2010 at 6:49 AM, FMT &lt;<a href="mailto:taweelf@cs.manchester.ac.uk">taweelf@cs.manchester.ac.uk</a>&gt; wrote:<br>
&gt; Hello Peter,<br>
&gt;<br>
&gt; Is it possible to invoke the Import/Export functions (GME:<br>
&gt; File-&gt;Import/Export) from the an interpreter?<br>
&gt;<br>
&gt; Thanks<br>
&gt; UM<br>
&gt;<br>
&gt;<br>
&gt; On 27/10/2010 15:27, Peter Volgyesi wrote:<br>
&gt;&gt; I guess some of the dependent dlls are not present on the target<br>
&gt;&gt; machine (as the dialog says). If you compiled the interpreter with<br>
&gt;&gt; VS2008 you need to have the corresponding runtime dlls installed (c,<br>
&gt;&gt; c++, mfc, atl runtime dlls: &quot;Microsoft Visual C++ 2008 Redistributable<br>
&gt;&gt; Package &quot;)<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Peter Volgyesi<br>
&gt;&gt; Research Scientist<br>
&gt;&gt; Vanderbilt University, ISIS<br>
&gt;&gt; Office: +1 (615) 322-1018<br>
&gt;&gt; Cell: +1 (615) 294-6520<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Oct 27, 2010 at 9:26 AM, FMT&lt;<a href="mailto:taweelf@cs.manchester.ac.uk">taweelf@cs.manchester.ac.uk</a>&gt;  wrote:<br>
&gt;&gt;&gt; We have tried to register it using regsvr32 (Admin), but it failed. A screen shot is attached. Any hint?<br>
&gt;&gt;&gt; For simplicity, we created an empty interpreter to try registration.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 27/10/2010 15:14, Peter Volgyesi wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You can either register your interpreters from the GME application (Tools/Register Components) or use regsvr32.exe to register the interpreter dll.<br>
&gt;&gt;&gt; Best regards,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Peter Volgyesi<br>
&gt;&gt;&gt; Research Scientist<br>
&gt;&gt;&gt; Vanderbilt University, ISIS<br>
&gt;&gt;&gt; Office: +1 (615) 322-1018<br>
&gt;&gt;&gt; Cell: +1 (615) 294-6520<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Oct 27, 2010 at 5:08 AM, F T&lt;<a href="mailto:ftman2004@yahoo.com">ftman2004@yahoo.com</a>&gt;  wrote:<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; We have developed a number of GME interpreters and we need to register these interpreters on other new machines. These machines have GME already installed, but not VS2008. What else do we need to guarantee successful registration of an interpreter on new machine configured as above.<br>

&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; gme-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
&gt;&gt;&gt;&gt; <a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; gme-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
&gt;&gt;&gt; <a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; gme-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
&gt;&gt;&gt; <a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gme-users mailing list<br>
&gt;&gt; <a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
&gt;&gt; <a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gme-users mailing list<br>
&gt; <a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
&gt; <a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
&gt;<br>
_______________________________________________<br>
gme-users mailing list<br>
<a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br>
<a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>
</div></div></blockquote></div><br></div>