COM Component...
-
I have a fundamental component.. Suppose if I developed a ATL componet(DLL)and If I want to release to the client what should be given to the client how the client know the CLSID and IID of this component. If I am not wrong I should deliver to the client DLL, TLB. could anybody clarify me this thanks Siva
-
I have a fundamental component.. Suppose if I developed a ATL componet(DLL)and If I want to release to the client what should be given to the client how the client know the CLSID and IID of this component. If I am not wrong I should deliver to the client DLL, TLB. could anybody clarify me this thanks Siva
Hello Siva, At minimum, deliver the DLL itself plus other dependent DLLs. These must be registered successfully in the client's OS. Thereafter, if the client uses VC++, the user will need to #import the DLL, e.g. : #import "MyComponentDLL.dll" A set of Type Library Header files will be generated by the VC++ compiler. If the client uses VB, the user will have to reference your DLL. .NET dev environments (e.g. C#, VB.NET) will also need to reference the DLL. For other development environments, check out the documentation. Best Regards, Bio.
-
Hello Siva, At minimum, deliver the DLL itself plus other dependent DLLs. These must be registered successfully in the client's OS. Thereafter, if the client uses VC++, the user will need to #import the DLL, e.g. : #import "MyComponentDLL.dll" A set of Type Library Header files will be generated by the VC++ compiler. If the client uses VB, the user will have to reference your DLL. .NET dev environments (e.g. C#, VB.NET) will also need to reference the DLL. For other development environments, check out the documentation. Best Regards, Bio.
Hi I would add something. In my work I am using a DLL (Which has been built in C#) and I am using it in VC++ by using COM. Below is how I am doing it in my case. If client uses VC++, it has to create a Type library (TLB) file from the DLL. In microsoft visual studio (.NET) 2003 there is a tool , Regasm.Exe .. Use Regasm.exe tool to create TLB file .. Actually it registers the DLL in the system registry as well as creates a TLB file. Now use this TLB in #import command. #import "MyComponentDLL.tlb" A set of Type Library Header files will be generated by the VC++ compiler. Now Put the TLB file in your working folder and put the DLL in the folder where your solution EXE will be created. and Start then building the code. -- modified at 4:51 Wednesday 1st March, 2006