[gme-users] Registering GME interpreters
Cuong Minh Tran
vaioinman at googlemail.com
Thu Nov 4 13:00:48 CDT 2010
The latest code indeed works flawlessly.
Thank you so much.
Regards
Cuong.
On 4 Nov 2010, at 17:45, Peter Volgyesi wrote:
> Please, add the following lines before and after the original code snippet:
>
> project->commitOnly();
> ...<parser or dumper code>
> project->beginOnly();
>
> --
> peter
>
>
>
> On Thu, Nov 4, 2010 at 12:38 PM, Cuong Tran <vaioinman at googlemail.com> wrote:
>>
>> The value of hres is: -2023423946
>> A screenshot is also attached. The line 109 is the COMTHROW(hres);
>> Note that, I tried different directory and hres is the same.
>> Cheers
>> Cuong.
>>
>> On Thu, Nov 4, 2010 at 4:19 PM, Peter Volgyesi
>> <peter.volgyesi at vanderbilt.edu> wrote:
>>>
>>> Please, send me the error code which triggers the assertion.
>>> You can get the error code by rewriting the line like this:
>>>
>>> HRESULT hres = dumper->DumpProject(project->getProjectI(), xmlPath);
>>> COMTHROW(hres);
>>>
>>> I am interested the value of 'hres'.
>>> Thanks,
>>>
>>>
>>>
>>> --
>>> peter
>>>
>>>
>>>
>>> On Thu, Nov 4, 2010 at 8:49 AM, Cuong Tran <vaioinman at googlemail.com>
>>> wrote:
>>>> Hi Peter
>>>> Thanks for your answer. Your provided code got compiled straight away.
>>>> But when I actually ran my interpreter (a very simple one, just exports
>>>> the
>>>> current model), I got an assertion error at this line:
>>>> COMTHROW( dumper->DumpProject(project->getProjectI(), xmlPath) );
>>>> Do you have any idea what may cause the error?
>>>> Many thanks
>>>> Cuong Tran.
>>>>
>>>> On Mon, Nov 1, 2010 at 1:46 PM, Peter Volgyesi
>>>> <peter.volgyesi at vanderbilt.edu> wrote:
>>>>>
>>>>> There is no built-in support for that. You can use "raw" COM to invoke
>>>>> the parser/dumper.
>>>>> Eg.:
>>>>>
>>>>> CComPtr<IMgaParser> parser;
>>>>> COMTHROW(parser.CoCreateInstance(L"Mga.MgaParser") );
>>>>> CComBSTR xmlPath("C:\\Temp\\test.xme");
>>>>> COMTHROW( parser->ParseProject(project->getProjectI(), xmlPath) );
>>>>>
>>>>> CComPtr<IMgaDumper> dumper;
>>>>> COMTHROW(dumper.CoCreateInstance(L"Mga.MgaDumper") );
>>>>> CComBSTR xmlPath("C:\\Temp\\test.xme");
>>>>> COMTHROW( dumper->DumpProject(project->getProjectI(), xmlPath) );
>>>>>
>>>>>
>>>>> --
>>>>> peter
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Nov 1, 2010 at 6:49 AM, FMT <taweelf at cs.manchester.ac.uk>
>>>>> wrote:
>>>>>> Hello Peter,
>>>>>>
>>>>>> Is it possible to invoke the Import/Export functions (GME:
>>>>>> File->Import/Export) from the an interpreter?
>>>>>>
>>>>>> Thanks
>>>>>> UM
>>>>>>
>>>>>>
>>>>>> On 27/10/2010 15:27, Peter Volgyesi wrote:
>>>>>>> I guess some of the dependent dlls are not present on the target
>>>>>>> machine (as the dialog says). If you compiled the interpreter with
>>>>>>> VS2008 you need to have the corresponding runtime dlls installed (c,
>>>>>>> c++, mfc, atl runtime dlls: "Microsoft Visual C++ 2008
>>>>>>> Redistributable
>>>>>>> Package ")
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Peter Volgyesi
>>>>>>> Research Scientist
>>>>>>> Vanderbilt University, ISIS
>>>>>>> Office: +1 (615) 322-1018
>>>>>>> Cell: +1 (615) 294-6520
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Oct 27, 2010 at 9:26 AM, FMT<taweelf at cs.manchester.ac.uk>
>>>>>>> wrote:
>>>>>>>> We have tried to register it using regsvr32 (Admin), but it failed.
>>>>>>>> A
>>>>>>>> screen shot is attached. Any hint?
>>>>>>>> For simplicity, we created an empty interpreter to try
>>>>>>>> registration.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 27/10/2010 15:14, Peter Volgyesi wrote:
>>>>>>>>
>>>>>>>> You can either register your interpreters from the GME application
>>>>>>>> (Tools/Register Components) or use regsvr32.exe to register the
>>>>>>>> interpreter
>>>>>>>> dll.
>>>>>>>> Best regards,
>>>>>>>>
>>>>>>>> --
>>>>>>>> Peter Volgyesi
>>>>>>>> Research Scientist
>>>>>>>> Vanderbilt University, ISIS
>>>>>>>> Office: +1 (615) 322-1018
>>>>>>>> Cell: +1 (615) 294-6520
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Oct 27, 2010 at 5:08 AM, F T<ftman2004 at yahoo.com> wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> 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.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> gme-users mailing list
>>>>>>>>> gme-users at list.isis.vanderbilt.edu
>>>>>>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> gme-users mailing list
>>>>>>>> gme-users at list.isis.vanderbilt.edu
>>>>>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> gme-users mailing list
>>>>>>>> gme-users at list.isis.vanderbilt.edu
>>>>>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> gme-users mailing list
>>>>>>> gme-users at list.isis.vanderbilt.edu
>>>>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>>>>
>>>>>> _______________________________________________
>>>>>> gme-users mailing list
>>>>>> gme-users at list.isis.vanderbilt.edu
>>>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>>>>
>>>>> _______________________________________________
>>>>> gme-users mailing list
>>>>> gme-users at list.isis.vanderbilt.edu
>>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>>
>>>>
>>>> _______________________________________________
>>>> gme-users mailing list
>>>> gme-users at list.isis.vanderbilt.edu
>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>>
>>>>
>>> _______________________________________________
>>> gme-users mailing list
>>> gme-users at list.isis.vanderbilt.edu
>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>
>>
>> _______________________________________________
>> gme-users mailing list
>> gme-users at list.isis.vanderbilt.edu
>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>
>>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
More information about the gme-users
mailing list