473,659 Members | 2,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exposing .net component events in VB6

I have created a component in C# and have registered the component for use
in com. I have put the following attributes on the component class :
[Guid("C5F73FEF-A412-4b20-9A2E-05544D4CA7C5")]

[ClassInterface( ClassInterfaceT ype.AutoDual)]

[DefaultEvent("S ynonymSelected" )]

public class Thesaurus:Compo nent

{

etc............ ...............

}

The component is registered and appears in the VB6 IDE toolbox but when I
select it I get the following message when I am placing it on the form:

"No such interface supported". When I remove it from the toolbox and add it
a reference it works fine but no events are available even when I use the
VB6 comman "WithEvents " , I get an error message saying theat "events are
not supported" . Any ideas would be appreciated.
Nov 13 '05 #1
0 2306

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

Similar topics

0
940
by: MeMyselfNDotnet | last post by:
Hi All, Im facing a problem with the COM+ component, will appreciate if u can provide any kind of guidance. My COM+, references a class, lets call it class A. It uses the properties of Class A, and has methods to return / insert / update / delete etc. I have an Admin module(another dotnet solution), which accesses the COM+ component (via referencing the dll). And uses the methods which are in the COM+.
0
858
by: Craig | last post by:
Hi I have a .Net component which exposes a number of events and properties. One of the properties is a read-only Status property, this property is updated by the component during a component method call, an event is fired to indicate the property has changed. I can make a call via xmlHttp an ashx or an aspx which is turn invokes my component. What I want to be able to do is through the xmlHttp.responseXml or xmlHttp.responseText send...
5
6531
by: Lance | last post by:
I want to expose properties of a class to a user via a PropertyGrid class. Some of the properties are of type System.IO.FileInfo. Ideally, an OpenFileDialog window would appear when the user attempted to edit the value of the System.IO.FileInfo properties. Is there an existing UITypeEditor that will do this type of thing, or will I need to create my own Thanks Lance
3
4088
by: SenthilVel | last post by:
Hi I want to list the available "Component Services " (COM+) in a machine . i am trying to get the list of Componenet services in a machine using windows forms in dotnet , how can i retrive the list of componenet services, i know we can get the list of windows services, but i dont know how to get the list of Component services ?
1
1570
by: Adam Clauss | last post by:
First, I have ComVisible set to true for the entire assembly. I have (abstract) base class A. There are interfaces IA and IAEvents for accessing properties of this object and exposing events. [ClassInterface(ClassInterfaceType.None), ComSourceInterfaces(typeof(IAEvents)) public abstract class A : IA {
122
7335
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection outside of that class. This structured way allows visual tools to host components, and allows programmers to build applications and libraries visually in a RAD environment. The Java language has JavaBeans as its component model which allows Java...
1
1328
by: Mike | last post by:
Hi, I have a component that resides on the server side (distributed). This component will trigger some events that I need to catch in an ASP.NET form.
0
2888
by: alexshally | last post by:
Hello All, I have god some problem in exposing .NET component to com. The component written in C# and used in C++ 6.0. The .NET component was build in VS2003 and works perfect. After it we upgrade the project to VS2005. The problems start when we add new functions to C# code. The C++ application is able to see the new functions and make successful calls but after it the exception is thrown and only catch(...) can get it. The call to old...
4
2502
by: =?Utf-8?B?Y2hyaXNjYXA=?= | last post by:
I tried searching the forums for this already and didn't find anything. I want to expose functionality from a vb6 COM component via a WCF service. I am trying to evaluate if exposing this webservice and using a COM component is scalable. I have heard there are problems with this revolving around the apartment threading models. I know COM dll's are STA and a WCF service is MTA. Since there is no way to force a WCF service to be STA, I...
0
8427
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
8332
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
8851
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
7356
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...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
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...
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.