473,388 Members | 1,355 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,388 software developers and data experts.

.NET and ActiveX

I'm just starting a C++ application which will send data to someone
else's program (written as a VB ActiveX COM app)
and receive some data back from it.

I have the Visual Studio .NET 2003 develoopment environment
and I decided to use C++.

Just as #import once built the interface for me in the Visual Studio 6.0
compiler,
what .NET framework tools might I use to build the interface to the other
app?

The C++ app will be on a web server.

Thanks for any suggestions, this is my first .NET app.

Jim

Nov 17 '05 #1
1 1853
"Aaron Hare" <ah***@online.microsoft.com> wrote in message
news:9F**********************************@microsof t.com...
I'm not sure I understand your question. Specifically, I'm not clear on why you'd need to use something other than >#import unless you are writing a
managed app in a lanaguage other than in C++. So, I'll try to answer by
assuming that >your situation is that you want to write a managed app that
interacts with an ActiveX app

in respose to a previous posting from James Pannozzi that read:
I'm just starting a C++ application which will send data to someone
else's program (written as a VB ActiveX COM app)
and receive some data back from it. I have the Visual Studio .NET 2003 develoopment environment
and I decided to use C++. Just as #import once built the interface for me in the Visual Studio 6.0
compiler,
what .NET framework tools might I use to build the interface to the other
app?

Thanks, your assumption was right on, I should have specified that I was
considering a managed app.
I want to end up with an app that has a Datagrid control in an ASP .NET
page
and data from the grid flows to and from the external ActiveX app.

Your answer seems exactly what I was looking for.

I suspect that doing it as a managed app may actually end up being less work
that then #import way though I will of course proceed somewhat more slowly
with the plethora of new tools and concepts available.
Thanks Again
Jim


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

I'm not sure I understand your question. Specifically, I'm not clear on why you'd need to use something other than #import unless you are writing a
managed app in a lanaguage other than in C++. So, I'll try to answer by
assuming that your situation is that you want to write a managed app that
interacts with an ActiveX app.
In that case, you'll probably want to use tlbimp, which creates managed assemblies that can communicate with the activex control (aka "Interop
Assemblies" or "Runitme Callable Wrappers"). You can then add a reference
to the interop assembly to your managed project to access the unmanaged
object model. (see
http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfTypeLibraryImporterTlbimpexe.asp for a description.)
Also, if the unamanged application is publicly available, you might want to find out if the vendor has a Primary Interop Assembly ("PIA") available
instead of using tlbimp. MS Office apps, for example, ship PIAs for
developers to use in exactly this situation. Using a PIA that was created
by the vendor has numerous benefits over using tlbimp yourself, as discussed
at
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/whypriinterop.asp.
Hope that helps get you started.

-Aaron
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...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
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...
4
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.