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

rozema
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..
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..
0
Comments
-
You must register component with regsvr32.exe because it’s an automation and not a OCX.0
-
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"0 -
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.0 -
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.0
-
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.0 -
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...0
-
run "yourapp.exe /regserver"0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions