Migrating 8.3 to 9.3.1

927
3
08-18-2010 11:31 PM
prasadprasad
New Contributor
Dear All,

  I am having problem while converting 8.3 application to 9.3.1 .In 8.3 application its using below following interfaces
IFeatureProgress_set_FeatureClassNameEventHandler
IFeatureProgress_set_MaxFeaturesEventHandler
IFeatureProgress_set_StepValueEventHandler
IFeatureProgress_StepEventHandler

But these interface are not available in 9.3.1..Please anyone suggest me what is the alternate
i should use

Thanks in advance
0 Kudos
3 Replies
AndrewMay
New Contributor
There's an example in C# of how to use the IFeatureProgress interface here:

http://resources.arcgis.com/content/kbase?fa=articleShow&d=34908

Basically you need to create a class which implements this interface.  Then the following methods are the ones you're interested in:

IFeatureProgress::FeatureClassName - IFeatureProgress_set_FeatureClassNameEventHandler
IFeatureProgress::MaxFeatures- IFeatureProgress_set_MaxFeaturesEventHandler
IFeatureProgress::FeatureClassName - IFeatureProgress_set_StepValueEventHandler
IFeatureProgress::StepValue- IFeatureProgress_StepEventHandler

Hope this helps.
0 Kudos
prasadprasad
New Contributor
Hi

  Thank you very much for your valuable information..
I have created the seperate class file FeatureProgressHelper 
I am getting one error in my code could please suggest me how to resolve this

Private mpChkOutIsCancelled As New FeatureProgressHelper  //Created instance for helper class
Dim lpCheckout As ICheckOut
lpCheckout = New CheckOut

mpChkOutIsCancelled = New IFeatureProgress_get_IsCancelledEventHandler(AddressOf GetCheckoutIsCancelled)  //i am getting error in this line please tell me what i should mention instead of IFeatureProgress_get_IsCancelledEventHandler
        
AddHandler CType(lpCheckout, IFeatureProgress).IsCancelled, mpChkOutIsCancelled

Private Function GetCheckoutIsCancelled() As Boolean
        Return False
    End Function
0 Kudos
AndrewMay
New Contributor
Hi
Glad I've been able to help.  All the methods you need to implement are in the link in my post above.  So you need to implement the method IFeatureProgress::IsCancelled and return false instead of the line

mpChkOutIsCancelled = New IFeatureProgress_get_IsCancelledEventHandler(Addre ssOf GetCheckoutIsCancelled)
0 Kudos