OLE automation interface / only .tlb and .exe. No dll/ocx

rozemarozema Member Posts: 15
Hello,

Here is a nice puzzle.....

Does anyone know if it possible to interface with a 3rd party application, without having ocx or dll components?
The API are inside the .exe (as I was told by the supplier)? They also have a .tlb file.
I tried to register the .exe in Custom controls - did not work.

The supplier claims that it would work from a VB environment, using the following code (I am not a VB developer):

Dim ConnectionApp As Object
Set ConnectionApp = CreateObject("Connection.Application")

Anyone?

Thx in advance..

Comments

  • nunomaianunomaia Member Posts: 1,153
    You must register component with regsvr32.exe because it’s an automation and not a OCX.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • rozemarozema Member Posts: 15
    nunomaia wrote:
    You must register component with regsvr32.exe because it’s an automation and not a OCX.

    Hello,

    I tried to regsvr32 APPNAME.exe but this did not work: I received the error:
    "appname.exe was loaded, but the dllregserver entry point was not found. appname.exe does not seem to be a .dll or .ocx"
  • nunomaianunomaia Member Posts: 1,153
    That means that DLL was made in .NET

    check http://www.mibuso.com/forum/viewtopic.p ... gsvr32+tlb to see a way to register a .NET automation.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • rozemarozema Member Posts: 15
    nunomaia wrote:
    That means that DLL was made in .NET

    Thx for your response, but the problem is:

    NOT available:
    .dll
    .ocx

    Available:
    .exe
    .ltb

    (By the way: The applicatication is IBM Content Mananger)
  • DenSterDenSter Member Posts: 8,305
    I think you'll need to write a .NET component that uses the code in your sample, and expose that as a COM component, which you can then access in C/AL code. I really don't think it is possible to have an exe as an automation server in C/AL.
  • nunomaianunomaia Member Posts: 1,153
    rozema wrote:
    nunomaia wrote:
    That means that DLL was made in .NET

    Thx for your response, but the problem is:

    NOT available:
    .dll
    .ocx

    Available:
    .exe
    .ltb

    (By the way: The applicatication is IBM Content Mananger)

    I think you should contact your vendor to give you support. You can also register an EXE automation with regsvr32. TLB file is usually the entry point to automation. Even if you past that code to a VB application it won’t run correctly if automation isn’t installed.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • kinekine Member Posts: 12,562
    To register Automation which is inside .exe file, if done correctly, you need only to run the exe file once. It will register itself and after that you can use it. If it is not registering itself, you need some wrapper for it...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • wakestarwakestar Member Posts: 207
    run "yourapp.exe /regserver"
Sign In or Register to comment.