473,662 Members | 2,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create activeX in .net VB?

Hi all:

I am new to VB, especially to VB .NET. I need to create an ActiveX DLL
that I can then use in another application (LabView). I know in VB
6.0, creating ActiveX DLL was easy. The documentations says, 'class
library' now replaces ActiveX DLL. Also, someone told me that an
ActiveX DLL can be exported from .NET VB.

I would really appreciate some help. A simple example would be
awesome.

Thanks in advance.
Shahab
Nov 20 '05 #1
4 11525
ActiveX exposes COM which can be exported in VB.NET (still requires a
managed runtime though). You cannot build ActiveX (OCX) controls with
VB.NET, at least what I've seen, but you can expose it to the com interop.

-CJ
"S. Ahmed" <sa***********@ yahoo.com> wrote in message
news:1e******** *************** ***@posting.goo gle.com...
Hi all:

I am new to VB, especially to VB .NET. I need to create an ActiveX DLL
that I can then use in another application (LabView). I know in VB
6.0, creating ActiveX DLL was easy. The documentations says, 'class
library' now replaces ActiveX DLL. Also, someone told me that an
ActiveX DLL can be exported from .NET VB.

I would really appreciate some help. A simple example would be
awesome.

Thanks in advance.
Shahab

Nov 20 '05 #2
"S. Ahmed" <sa***********@ yahoo.com> schrieb
Hi all:

I am new to VB, especially to VB .NET. I need to create an ActiveX
DLL that I can then use in another application (LabView). I know in
VB 6.0, creating ActiveX DLL was easy. The documentations says,
'class library' now replaces ActiveX DLL. Also, someone told me that
an ActiveX DLL can be exported from .NET VB.

I would really appreciate some help. A simple example would be
awesome.


http://msdn.microsoft.com/library/en...alBasicNET.asp

http://msdn.microsoft.com/library/en...sicVisualC.asp

http://msdn.microsoft.com/library/en...nentstocom.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Check out this Code Project article by Nick Parker:

Creating a CCW for COM enabled non .NET applications
http://www.codeproject.com/dotnet/nettocom.asp

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"S. Ahmed" <sa***********@ yahoo.com> wrote in message
news:1e******** *************** ***@posting.goo gle.com...
Hi all:

I am new to VB, especially to VB .NET. I need to create an ActiveX DLL
that I can then use in another application (LabView). I know in VB
6.0, creating ActiveX DLL was easy. The documentations says, 'class
library' now replaces ActiveX DLL. Also, someone told me that an
ActiveX DLL can be exported from .NET VB.

I would really appreciate some help. A simple example would be
awesome.

Thanks in advance.
Shahab

Nov 20 '05 #4
* sa***********@y ahoo.com (S. Ahmed) scripsit:
I am new to VB, especially to VB .NET. I need to create an ActiveX DLL
that I can then use in another application (LabView). I know in VB
6.0, creating ActiveX DLL was easy. The documentations says, 'class
library' now replaces ActiveX DLL. Also, someone told me that an
ActiveX DLL can be exported from .NET VB.


You cannot create ActiveX components/controls any more. All you can do, is
marking a library for use with COM interop. The sample below shows how
to create a very simple .NET DLL and use this DLL in a VB6 project:

<URL:http://dotnet.mvps.org/dotnet/samples/codingtechnique/downloads/MyComLib.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

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

Similar topics

3
2753
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
1
7685
by: Zhou Jingxiong | last post by:
Hi I am using third party COM component which come with an installation program (.exe file included). The program will be register to registry automatically upon installation. There is no problem calling the COM component from VB.net Module from DOS Command Prompt : Imports System
2
5565
by: W. Broersen | last post by:
I want to use Outlook.Application, but I donot get further. Dim objOLApp As Outlook.Application objOLApp = CreateObject("Outlook.Application") Everytime I'll get the following error: Cannot create ActiveX component I set in the reference the COM from Outlook... Does someone know how to solve this problem????
3
22846
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how to do it, if any sample is provided will be of great help Thanks EJ
4
3240
by: Patrick | last post by:
I have a middle tier object that generates Excel spreadsheet here is the code moExcel = CreateObject("Excel.Application") moWorkBook = moExcel.Workbooks.Add moSheet = moWorkBook.Worksheets(liSheetNum) moSheet.Delete() moSheet = moWorkBook.Worksheets(liSheetNum) moSheet.Delete()
1
15568
by: Rocio | last post by:
I have a windows app. written in VB6, now we need to expose some of its classes through a web service. I am only able to expose the classes using late binding becasue that's the way the original VB6 was written. I ahve already exposed some of the original classes, and they work fine. Now, I added a new ActiveX component to the windows app (in vb6). I am able to call it by late binding from within the vb6 app. itself, and from a dummy vbs...
16
12725
by: Heinz K | last post by:
Hello all, I'm developing a vb.net 2.0 webservice which accesses a lotus notes database using lotus domino api. This works fine on my local client if I select "Use Visual Studio Development server" (on project properties). But as soon as I select "Use IIS Web Server" I always got error messages. One says: "Retrieving the COM class factory for component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following error:...
1
2266
by: JUN | last post by:
Hi all, I use c# to create ActiveX control, and works under IE browser. Now, i add a "Save" procedure for this ActiveX,but in Client calling ,it not works. the save procedure: public Boolean Save(String fileName)
0
1390
by: awu25 | last post by:
I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either. Is it not possible to create ActiveX controls with .net framework 4.0? I have also tried to create windows form control for web but again it doesn't work.
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.