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

Activex application

I have an activex application developed in VB6 as an EXE file with some user
interface and some objects I can access from other applications.
How can I do that inVB.net? Activex application doesn't exist when I try to
create a new application.
Nov 21 '05 #1
7 1321
Apologies if I am stating the obvious!!!

Have you tried adding a reference to your exe from the 'references folder'
within the properties panel....>Add Reference >Browse.

Rgds

"technetrix" <te********@discussions.microsoft.com.> wrote in message
news:87**********************************@microsof t.com...
I have an activex application developed in VB6 as an EXE file with some
user
interface and some objects I can access from other applications.
How can I do that inVB.net? Activex application doesn't exist when I try
to
create a new application.

Nov 21 '05 #2

this is not what he wants , what you are suggesting is using a VB6 activex
executable in VB.Net

what he wants is making a executable with equivalant VB6 COM \ OLE
functionality

well the answer is create your classes and methods public and they can be
accessed externally by other .Net applications ( this is possible in every
..Net application that is why it isn`t specified in the project window ,,,
this technique is even availlable in ASP.Net ,,,,,, )

If you want you program also be accessible by non .Net apps ,,, then you can
write a public class and expose it to COM ,,,
maybe this would be nice to write an article about ,,,,,, if i just could
find the time ;-)
Michel Posseth [MCP]


"Phil G." <Ph**@nospam.com> wrote in message
news:de**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
Apologies if I am stating the obvious!!!

Have you tried adding a reference to your exe from the 'references folder'
within the properties panel....>Add Reference >Browse.

Rgds

"technetrix" <te********@discussions.microsoft.com.> wrote in message
news:87**********************************@microsof t.com...
I have an activex application developed in VB6 as an EXE file with some
user
interface and some objects I can access from other applications.
How can I do that inVB.net? Activex application doesn't exist when I try
to
create a new application.


Nov 21 '05 #3
A little correction:
You can't add a reference to .exe assembly from devenv, so you have to
either rename it to .dll or compile with vbc.

Roman
Nov 21 '05 #4
Can you explain why then, when you select browse, the file extensions shown
are *.dll *.tlb *.ocx *.olb and *.exe ?

Cheers, Phil
"Dragon" <no@spam.please> wrote in message
news:uf*************@TK2MSFTNGP15.phx.gbl...
A little correction:
You can't add a reference to .exe assembly from devenv, so you have to
either rename it to .dll or compile with vbc.

Roman

Nov 21 '05 #5
> Can you explain why then, when you select browse, the file extensions
shown are *.dll *.tlb *.ocx *.olb and *.exe ?
Well Phil ,, with .Net references Dragon is right , because as soon as you
click on the executable an error is thrown that you cannot add a refernce to
a file with this extension

however if it is a COM component this error should not be raised ( it is
possible to make a .Net COM Component )
so the reasson that the extensions *.dll *.tlb *.ocx *.olb and *.exe are
shown is that the reference might be a Com capable Assembly
regards

Michel Posseth [MCP]

"Phil G." <Ph**@nospam.com> wrote in message
news:de**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com... Can you explain why then, when you select browse, the file extensions
shown are *.dll *.tlb *.ocx *.olb and *.exe ?

Cheers, Phil
"Dragon" <no@spam.please> wrote in message
news:uf*************@TK2MSFTNGP15.phx.gbl...
A little correction:
You can't add a reference to .exe assembly from devenv, so you have to
either rename it to .dll or compile with vbc.

Roman


Nov 21 '05 #6
Thanks for explaining this. I had looked through both the .net and com and
noticed, as you rightly state, that all of the .net assemblies are .dll,
whereas there are some com assemblies such as adobe distiller that are .exe.

Cheers :-)

Phil

"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:us**************@TK2MSFTNGP12.phx.gbl...
Can you explain why then, when you select browse, the file extensions
shown are *.dll *.tlb *.ocx *.olb and *.exe ?


Well Phil ,, with .Net references Dragon is right , because as soon as
you click on the executable an error is thrown that you cannot add a
refernce to a file with this extension

however if it is a COM component this error should not be raised ( it is
possible to make a .Net COM Component )
so the reasson that the extensions *.dll *.tlb *.ocx *.olb and *.exe are
shown is that the reference might be a Com capable Assembly
regards

Michel Posseth [MCP]

"Phil G." <Ph**@nospam.com> wrote in message
news:de**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Can you explain why then, when you select browse, the file extensions
shown are *.dll *.tlb *.ocx *.olb and *.exe ?

Cheers, Phil
"Dragon" <no@spam.please> wrote in message
news:uf*************@TK2MSFTNGP15.phx.gbl...
A little correction:
You can't add a reference to .exe assembly from devenv, so you have to
either rename it to .dll or compile with vbc.

Roman



Nov 21 '05 #7
The enviroment from I need to acces the object is VBA-Word, so... Can be
accessed from there an standar .net public object or I need to create a COM
application?

"Phil G." escribió:
Thanks for explaining this. I had looked through both the .net and com and
noticed, as you rightly state, that all of the .net assemblies are .dll,
whereas there are some com assemblies such as adobe distiller that are .exe.

Cheers :-)

Phil

"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:us**************@TK2MSFTNGP12.phx.gbl...
Can you explain why then, when you select browse, the file extensions
shown are *.dll *.tlb *.ocx *.olb and *.exe ?


Well Phil ,, with .Net references Dragon is right , because as soon as
you click on the executable an error is thrown that you cannot add a
refernce to a file with this extension

however if it is a COM component this error should not be raised ( it is
possible to make a .Net COM Component )
so the reasson that the extensions *.dll *.tlb *.ocx *.olb and *.exe are
shown is that the reference might be a Com capable Assembly
regards

Michel Posseth [MCP]

"Phil G." <Ph**@nospam.com> wrote in message
news:de**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Can you explain why then, when you select browse, the file extensions
shown are *.dll *.tlb *.ocx *.olb and *.exe ?

Cheers, Phil
"Dragon" <no@spam.please> wrote in message
news:uf*************@TK2MSFTNGP15.phx.gbl...
A little correction:
You can't add a reference to .exe assembly from devenv, so you have to
either rename it to .dll or compile with vbc.

Roman



Nov 21 '05 #8

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

Similar topics

4
by: Filip Wtterwulghe | last post by:
Hello, We have a number of VB6 ActiveX applicationmodule(s) that are loaded into a IE6 WebBrowserControl . This WebControl is imbededded into Application X . Now We want to send a message from...
2
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module...
4
by: blacst | last post by:
I am using Access 2002 with either Service Pack 1 or 3. (I have seen this problem on 4 different OSs (NT, XP Home, XP Pro, Winows 2000) across 8 different machines) I have an ActiveX Object...
2
by: Dean Bortell | last post by:
I am new to VS 2003 C#. I have created a simple telephony project in C# using an activex control from allem martin called aximtapi pro. www.allen-marting- inc.com. I have the retail version of...
2
by: lionel letoffet | last post by:
Hello, I wrote an ActiveX in MFC. I use it in a C# application (forms). My computer has a screen resolution of 1280x1024 with 96PPP (Important !!) I insert my activex in a form, I compile...
5
by: Sagaert Johan | last post by:
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover...
0
by: zevikw | last post by:
I am using an ActiveX control in a .NET application which I put on a form. I have another .NET control on that form that handles the Validating event. The method that handles the Validating event,...
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...
15
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of...
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...

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.