Skip to Content
avatar image
Former Member

Alternatives to Replace a COM Component

Hi,

I've got an application written in PB 10.5 using the Kodigo framework.  I would like to migrate it to the latest version of PB, but part of the project includes a COM component which I can't migrate because support for COM components has been dropped.  The COM component includes a NVO which (among other things) opens an input window which is also used elsewhere in the application.  The COM component is called from a VB.Net Word Addin.  What are my options for updating this component to the latest version?  Do I need to create a .Net Component?  Is there a way to migrate a COM component to .Net?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Sep 19, 2014 at 01:44 PM
    but part of the project includes a COM component which I can't migrate because support for COM components has been dropped.

    Is this COM component ActiveX or is it accessed via OLE Automation.  What does it do?

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 19, 2014 at 01:57 PM

    Do you need to enhance the COM component's functionality with features from a newer PB? I just keep an older copy of PB around for my COM component, although I've never bothered recompiling it. I just distribute the older PB DLLs to support it, along with the new PB DLLs to support the main app.

    This may or may not work for you. Just thought I'd throw it out there.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Terry,

      The COM component shares quite a bit of code with our main application which we were hoping to migrate to a newer version of Powerbuilder.  We probably don't need the newer PB features yet but we may in the future.  The main reason I wanted to try and migrate the component to a newer version is because I have a nasty intermittent bug that I can't track down and I wanted to see if it was fixed by building in a newer version of PB.  Occasionally the COM object just seems to disappear from memory when a datastore is retrieved.  I've tried to use try catch blocks but for some reason I can't trap the error.  Very rarely and for some users only it seems to get to a certain line of code and then the COM object just disappears from memory.

  • Sep 19, 2014 at 01:56 PM

    ... mmmh....  a serial port component object model...or just an error in the speed reading?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2014 at 02:27 AM

    Thanks Chris, I didn't realize you could do that.  But sorry, it doesn't help me in this case.  I'm talking about a Component Object Model component.

    Add comment
    10|10000 characters needed characters exceeded