I created a C# component dll and generated typelib. From VB client I am able to access the methods of the C# component.
If i tried with VC++ client I am getting error message"Members not found". In VC++ When I called the method which takes no parameters and no void return type then it is working fine without any problem. Could u tell me where was the actual problem.
In VS.NET for the class library project i can add a class or a component class which inherits from the System.Component.ComponentModel then what is the difference between the normal class inherits from system.object and this? What is the advantage i can get if i inherit from System.Component.ComponentModel
This example is increadibly misleading...
Posted by DelboyDee
on 11/03/2004 11:19am
This example is increadibly misleading, it is NOT a component it mearly describes how to create a class dynamic link library.
A proper component derives from System.ComponentModel.Component or System.ComponentModel.IComponent which allows you to add the component to a windows form like the Timer or SqlDataAdapter. These components can also be called normally like classes but there is some extra stuff that goes on if you are using it at design time.
The only advantage that I know of is that you can set the properties up at design time so it means the IDE auto generates the code for you that sets the properties to the values that you have specified.
To develop this in .NET IDE, create a class library project called CompCS. Add a class called csAddComp1.cs and cut and paste the component code. Build solution.
- Then create a new windows application project and in the main function cut and paste the main class code of the second part. Add a reference to the CompCS.dll from this project. Add using CompCS in the beginning and build solution, execute to see the messages in the console.
You have used command line tools to build a dll. How we can make a COM component dll using Visual Studio .NET IDE, just like we make an ATL component using Visual Studio 6.
Would you please specify? it will help the programmers who hardly like to work at console.
Can you tell me, how can I create COM object in C#, which can be used from VC++ 6.0. The connection in VC++ 6.0 is still sending this error number "REGDB_E_CLASSNOTREG ($80040154)",which is consequence of COM registration with regasm.exe. Does the COM registration of COM object created in C# dependent on the OS?