Back to Blog
Visual basic icursor interface library7/13/2023 One is very easy while the other one is a bit hard. If you do not want to use the strong name, then keep your component and the calling client in the same directory.Īs I found out, there are two ways to solve this problem. It is important to note that you can avoid strong naming your assembly. This class demo which has a property ErrorMsg and one function Concat, built as a class library project using Visual Studio.NET, has been given a Strong Name using the strong name tool sn.exe. Public Function Concat(ByVal str1 As String, ByVal str2 _ Public ReadOnly Property ErrorMsg() As String Private csError As String ‘ stores the error message If you follow this example, you can apply the same procedure for very complex classes too. ![]() Now, the requirement is that it is to be accessed from clients (VB 6, classic ASP or even ASP.NET application using Late Binding) with This class is written in VB.NET as a Class Library. Instead, I will use a very simple class for demo purposes. Obviously, I cannot present the actual class here. NET and should have some basic knowledge of COM. The only prerequisite for this article is that you should have Microsoft Visual Studio. Now, I want to to share my own experience in a somewhat easier manner (at least I believe so) to make life easier for other developers. I managed to complete my development using those articles. However, I found them somewhat difficult to follow. I did some research and found some very useful articles that dealt with the same problem. So, I was asked to build a COM interface for this class library. “CREATEOBJECT (PROG ID)”) to instantiate this component/class library. So, this scenario demanded that there should be some sort of COM interface to access that component. ![]() But, my Project Manager wanted it to be called from some old VB 6 and classical ASP applications, too. Calling this library from ASP.NET pages was working fine. It used sockets and the message format between our servers and those of Citibank was based on a variant of ISO 8583. ![]() For my last project, I developed a nice library in VB.NET for credit card processing.
0 Comments
Read More
Leave a Reply. |