How to get the group name from this interface ISchemaModelGroupPtr ?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p style="font:inherit; vertical-align:baseline; list-style-type:none; color:#666666; font-family:Segoe UI,Helvetica,Garuda,Arial,sans-serif; line-height:21px
Microsoft Windows Vista, VS 2010, MSXML 6
<p style="font:inherit; vertical-align:baseline; list-style-type:none; color:#666666; font-family:Segoe UI,Helvetica,Garuda,Arial,sans-serif; line-height:21px
Hello,
<p style="font:inherit; vertical-align:baseline; list-style-type:none; color:#666666; font-family:Segoe UI,Helvetica,Garuda,Arial,sans-serif; line-height:21px
I am having a hard time trying to return the name or ID of an object from ISchemaModelGroupPtr. I tried those alternatives (pGroup is an instance of ISchemaModelGroupPtr):
<pre style="padding:0px; border:none; font:inherit; vertical-align:baseline; list-style-type:none; word-wrap:break-word; color:#666666; line-height:21px; font-family:Consolas BSTR bstrGrpName = NULL;
pGroup->get_name(&bstrGrpName);
string strGname = BStrToStr(bstrGrpName);
strGname = BStrToStr(pGroup->name);
strGname = BStrToStr(pGroup->Getid());
strGname = BStrToStr(pGroup->id);[/code]
<p style="font:inherit; vertical-align:baseline; list-style-type:none; color:#666666; font-family:Segoe UI,Helvetica,Garuda,Arial,sans-serif; line-height:21px
All of these alternatives returned an empty string. I had a look at the SOM reference in MSXML MSDN, but it doesnt seem that the property name exists for this interface, neither the method Getname, even if the call to both compiles successfully.
<p style="font:inherit; vertical-align:baseline; list-style-type:none; color:#666666; font-family:Segoe UI,Helvetica,Garuda,Arial,sans-serif; line-height:21px
Does anyone have an idea about this matter? Is it possible to get the name of a Model Group in SOM?
<p style="font:inherit; vertical-align:baseline; list-style-type:none; color:#666666; font-family:Segoe UI,Helvetica,Garuda,Arial,sans-serif; line-height:21px
Thanks & Regards,
<p style="font:inherit; vertical-align:baseline; list-style-type:none; color:#666666; font-family:Segoe UI,Helvetica,Garuda,Arial,sans-serif; line-height:21px
Hajer <hr class="sig the world is mine

View the full article
 
Back
Top