<div><br></div>The value of hres is: -2023423946<div><br></div><div>A screenshot is also attached. The line 109 is the COMTHROW(hres);</div><div><br></div><div>Note that, I tried different directory and hres is the same.</div>
<div><br></div><div>Cheers</div><div>Cuong.<br><div><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 4:19 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;">Please, send me the error code which triggers the assertion.<br>
You can get the error code by rewriting the line like this:<br>
<br>
HRESULT hres = dumper->DumpProject(project->getProjectI(), xmlPath);<br>
COMTHROW(hres);<br>
<br>
I am interested the value of 'hres'.<br>
Thanks,<br>
<br>
<br>
<br>
--<br>
<font color="#888888">peter<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Nov 4, 2010 at 8:49 AM, Cuong Tran <<a href="mailto:vaioinman@googlemail.com">vaioinman@googlemail.com</a>> wrote:<br>
> Hi Peter<br>
> Thanks for your answer. Your provided code got compiled straight away.<br>
> But when I actually ran my interpreter (a very simple one, just exports the<br>
> current model), I got an assertion error at this line:<br>
> COMTHROW( dumper->DumpProject(project->getProjectI(), xmlPath) );<br>
> Do you have any idea what may cause the error?<br>
> Many thanks<br>
> Cuong Tran.<br>
><br>
> On Mon, Nov 1, 2010 at 1:46 PM, Peter Volgyesi<br>
> <<a href="mailto:peter.volgyesi@vanderbilt.edu">peter.volgyesi@vanderbilt.edu</a>> wrote:<br>
>><br>
>> 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>
>> peter<br>
>><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>><br>
>> >> wrote:<br>
>> >>> We have tried to register it using regsvr32 (Admin), but it failed. A<br>
>> >>> 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<br>
>> >>> (Tools/Register Components) or use regsvr32.exe to register the interpreter<br>
>> >>> 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<br>
>> >>>> register these interpreters on other new machines. These machines have GME<br>
>> >>>> already installed, but not VS2008. What else do we need to guarantee<br>
>> >>>> successful registration of an interpreter on new machine configured as<br>
>> >>>> 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>
><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>
</div></div></blockquote></div><br></div></div>