Schneider Electric GIS Tech Support

Forum discussion for Schneider Electric GIS products, including ArcFM, ArcFM Viewer, Designer, Responder, and others.
It is currently Sat May 18, 2013 5:12 am

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Using IMMVersioningUtils interface
PostPosted: Mon Jul 07, 2008 5:45 am 
Offline

Joined: Fri Apr 04, 2008 5:01 am
Posts: 32
Hi,
I am trying to use the function GetAllDifferences() & GetDifferences() from the interface IMMVersioningUtils.
But when I try to create an object (as shown below), Visual Studio 2005 informs that such a class in not defined and recommends to use "MMVersionDiffClass" instead.

Code Snippet:
***************************
Dim verDiffList As ID8List
Dim listItem As ID8ListItem
Dim pMMVersionObj As IMMVersioningUtils 'IMMVersionDiff
Dim pVersion As IVersion
Dim pDS As IDataset
Dim pObjectClass As IObjectClass
Dim parentVersion, childVersion As String

pMMVersionObj = New MMVersionDiffClass 'MMVersioningUtils

verDiffList = pMMVersionObj.GetAllDifferences(pWorkspace, childVersion, parentVersion, False, False)

verDiffList.Reset()
listItem = verDiffList.Next

While Not (IsDBNull(listItem))
MsgBox("List Item Value: " + listItem.DisplayName)
End While
***************************

Now the problem is, when use the recommended class to instantiate the object, I get the following runtime error:

Error : System.InvalidCastException: Unable to cast COM object of type 'Miner.Interop.MMVersionDiffClass' to interface type 'Miner.Interop.IMMVersioningUtils'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{EC79BBA3-301E-11D4-AC32-00500462E2B6}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

I've also tried using IMMVersionDiff, but then I cannot access the GetAllDifferences() method, as they are not defined in that class.

The ArcFM documentation shows MMVersioningUtils as the CO-CLASS for IMMVersioningUtils, but when used, it doesnt work.

Can anyone help me with this, as this is quite urgent for us and I am unable to find a co-class for this in the documentation. Or is there a different way to achieve the same.

Regards
Ujjwal

[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 09, 2008 5:36 am 
Offline

Joined: Fri Apr 04, 2008 5:01 am
Posts: 32
Hi All,
I finally figured it out myself.

I was not incluidng Miner.Interop.Desktop.dll in the references. Once this is added, you can simply work as follows:

Dim obj as IMMVersioningUtils
obj=new MMVersioningUtils

Regards
Ujjwal


Top
 Profile  
 
 Post subject: Re: Using IMMVersioningUtils interface
PostPosted: Fri Aug 12, 2011 6:41 am 
Offline

Joined: Tue Jul 12, 2011 12:08 am
Posts: 2
Hi,

I am getting an error while using this IMMVersioningUtils.GetAllDifferences. The error is "MMVersioningUtils.GetAllDifferences
modVersioningTools.GetVersion
Version not found[MSURESHKUMAR.SN_519]
Error at line: 60 - Build: 9.30.5168
Error at line: 384 - Build: 9.30.5168".

Could someone help me with this?

Regards,
Naveen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group