473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ActiveX Question Revisited

I have a C++ App which currently uses #import to access some ActiveX DLL's
provided to me from some companies.

These desktop ActiveX apps typically have a GUI with a VB form in which the
desktop
user inputs some values and gets back some computed value(s).

Details of the interface and documentation as well as special ActiveX DLL's
(with the GUI part
removed) are provided to me by said companies. All works well.

But...

One of our competitors, apparently using .NET has set up a website which
seems to be interfacing to these same desktop Active-X apps
(apparently set up on the website server)
from several of these companies - WITHOUT any documentation, interface
documentation
or specially built DLL's.

Forgetting about C++ for the moment, how is this done?

Are there tools in .NET which can deduce the interface (functions, pass
parameters etc.) of an Active X DLL app,
and then build an interface in which the .NET app can interact with the
ActiveX app just as though the data were
being input through the VB form fields rather than from the .NET app?

Or have they somehow reverse engineered the ActiveX apps?

Thanks
Jim

Nov 17 '05 #1
1 1184
Thanks for links and info.

Time to start studying !

Jim

"Aaron Hare" <ah***@online.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
Hi James.

Yes, there are some good tools for importing COM/ActiveX type libraries into managed assemblies. The first thing you'll probably want to look at is
the tlbimp tool
(http://msdn.microsoft.com/library/en...elibraryimport
ertlbimpexe.asp). Tlbimp lets you create a managed wrapper (sometimes
called an "interop assembly" or "runtime callable wrapper") around a COM
object that you can reference from managed code.
Also, if the ActiveX components you are using are publicly available, you might want to find out if the vendor has a PIA (Primary Interop Assembly)
available for them. Using the PIA instead of using tlbimp has numerous
advantages, as discussed at
http://msdn.microsoft.com/library/en...priinterop.asp.
Finally, if you're planning to do a lot of managed/unmanaged interop, you might want to check out ".NET and COM the Complete Interoperability Guide"
by Adam Nathan. The book covers almost every aspect of interop in depth.
- Aaron Hare <ah***@online.microsoft.com>
Please post questions to the newsgroup - everyone benefits.
This post is provided "AS IS" with no warranties, and confers no rights
Sample code subject to http://www.microsoft.com/info/cpyright.htm

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I...
1
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
6
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
5
by: sandman | last post by:
I've been testing my web app on another workstation to simulate using the server time. The test pc's time is an hour behind the server time and when the user processes a request, the server time...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
23
by: Galen Somerville | last post by:
A VB6 ActiveX.exe raises an event which is seen by the VB6 App. Same setup in VB2005. The event to be raised is in form frmSweep. As in VB6, frmSweep is hidden when the events take place. I...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.