PC Review


Reply
Thread Tools Rate Thread

Activex application

 
 
=?Utf-8?B?dGVjaG5ldHJpeA==?=
Guest
Posts: n/a
 
      21st Aug 2005
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.
 
Reply With Quote
 
 
 
 
Phil G.
Guest
Posts: n/a
 
      21st Aug 2005
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" <(E-Mail Removed).> wrote in message
news:876A00A2-F345-43EE-B2CF-(E-Mail Removed)...
>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.



 
Reply With Quote
 
m.posseth
Guest
Posts: n/a
 
      21st Aug 2005

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." <(E-Mail Removed)> wrote in message
news:de9mui$pgb$(E-Mail Removed)...
> 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" <(E-Mail Removed).> wrote in message
> news:876A00A2-F345-43EE-B2CF-(E-Mail Removed)...
>>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.

>
>



 
Reply With Quote
 
Dragon
Guest
Posts: n/a
 
      21st Aug 2005
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


 
Reply With Quote
 
Phil G.
Guest
Posts: n/a
 
      21st Aug 2005
Can you explain why then, when you select browse, the file extensions shown
are *.dll *.tlb *.ocx *.olb and *.exe ?

Cheers, Phil


"Dragon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>
>



 
Reply With Quote
 
m.posseth
Guest
Posts: n/a
 
      21st Aug 2005
> 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." <(E-Mail Removed)> wrote in message
news:deacfk$h57$(E-Mail Removed)...
> Can you explain why then, when you select browse, the file extensions
> shown are *.dll *.tlb *.ocx *.olb and *.exe ?
>
> Cheers, Phil
>
>
> "Dragon" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>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
>>
>>

>
>



 
Reply With Quote
 
Phil G.
Guest
Posts: n/a
 
      21st Aug 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> 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." <(E-Mail Removed)> wrote in message
> news:deacfk$h57$(E-Mail Removed)...
>> Can you explain why then, when you select browse, the file extensions
>> shown are *.dll *.tlb *.ocx *.olb and *.exe ?
>>
>> Cheers, Phil
>>
>>
>> "Dragon" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>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
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
=?Utf-8?B?dGVjaG5ldHJpeA==?=
Guest
Posts: n/a
 
      22nd Aug 2005
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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >> 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." <(E-Mail Removed)> wrote in message
> > news:deacfk$h57$(E-Mail Removed)...
> >> Can you explain why then, when you select browse, the file extensions
> >> shown are *.dll *.tlb *.ocx *.olb and *.exe ?
> >>
> >> Cheers, Phil
> >>
> >>
> >> "Dragon" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >>>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
> >>>
> >>>
> >>
> >>

> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Activex application SM Microsoft VC .NET 1 31st Mar 2010 04:33 PM
Converting Activex application SM Microsoft ASP .NET 1 28th Mar 2010 10:57 AM
D&D onto ActiveX Control in a VB.NET Windows Application andrea Microsoft Dot NET Framework 0 14th Mar 2005 09:11 AM
TS ActiveX Web- Specify application or Environment =?Utf-8?B?a2VuUw==?= Microsoft Windows 2000 Terminal Server Clients 1 27th Jan 2004 07:34 PM
RE: USING ACTIVEX EXCEL.APPLICATION Achint Srivastava [MS] Microsoft Excel Programming 0 5th Aug 2003 02:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:08 PM.