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 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
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
* 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/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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
|
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????
|
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
|
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()
| |
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...
|
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:...
|
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)
|
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.
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |