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->DumpProject(project->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"><<a href="mailto:peter.volgyesi@vanderbilt.edu">peter.volgyesi@vanderbilt.edu</a>></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 "raw" COM to invoke<br>
the parser/dumper.<br>
Eg.:<br>
<br>
CComPtr<IMgaParser> parser;<br>
COMTHROW(parser.CoCreateInstance(L"Mga.MgaParser") );<br>
CComBSTR xmlPath("C:\\Temp\\test.xme");<br>
COMTHROW( parser->ParseProject(project->getProjectI(), xmlPath) );<br>
<br>
CComPtr<IMgaDumper> dumper;<br>
COMTHROW(dumper.CoCreateInstance(L"Mga.MgaDumper") );<br>
CComBSTR xmlPath("C:\\Temp\\test.xme");<br>
COMTHROW( dumper->DumpProject(project->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 <<a href="mailto:taweelf@cs.manchester.ac.uk">taweelf@cs.manchester.ac.uk</a>> wrote:<br>
> Hello Peter,<br>
><br>
> Is it possible to invoke the Import/Export functions (GME:<br>
> File->Import/Export) from the an interpreter?<br>
><br>
> Thanks<br>
> UM<br>
><br>
><br>
> On 27/10/2010 15:27, Peter Volgyesi wrote:<br>
>> I guess some of the dependent dlls are not present on the target<br>
>> machine (as the dialog says). If you compiled the interpreter with<br>
>> VS2008 you need to have the corresponding runtime dlls installed (c,<br>
>> c++, mfc, atl runtime dlls: "Microsoft Visual C++ 2008 Redistributable<br>
>> Package ")<br>
>><br>
>> Regards,<br>
>><br>
>><br>
>> --<br>
>> Peter Volgyesi<br>
>> Research Scientist<br>
>> Vanderbilt University, ISIS<br>
>> Office: +1 (615) 322-1018<br>
>> Cell: +1 (615) 294-6520<br>
>><br>
>><br>
>> On Wed, Oct 27, 2010 at 9:26 AM, FMT<<a href="mailto:taweelf@cs.manchester.ac.uk">taweelf@cs.manchester.ac.uk</a>> wrote:<br>
>>> We have tried to register it using regsvr32 (Admin), but it failed. A screen shot is attached. Any hint?<br>
>>> For simplicity, we created an empty interpreter to try registration.<br>
>>><br>
>>> Thanks<br>
>>><br>
>>><br>
>>><br>
>>> On 27/10/2010 15:14, Peter Volgyesi wrote:<br>
>>><br>
>>> You can either register your interpreters from the GME application (Tools/Register Components) or use regsvr32.exe to register the interpreter dll.<br>
>>> Best regards,<br>
>>><br>
>>> --<br>
>>> Peter Volgyesi<br>
>>> Research Scientist<br>
>>> Vanderbilt University, ISIS<br>
>>> Office: +1 (615) 322-1018<br>
>>> Cell: +1 (615) 294-6520<br>
>>><br>
>>><br>
>>> On Wed, Oct 27, 2010 at 5:08 AM, F T<<a href="mailto:ftman2004@yahoo.com">ftman2004@yahoo.com</a>> wrote:<br>
>>>> Hi,<br>
>>>><br>
>>>> 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>
>>>><br>
>>>> Thanks<br>
>>>><br>
>>>><br>
>>>><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>
>>>><br>
>>><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>
>>><br>
>>><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>
>>><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>
><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>
><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>