Hi all,
If I open an asp page and am using a vb6 dll, I get intellisense when I
use the Server.CreateObject syntax. When I create a dll using vb.net,
the methods and functions work, but I get no intellisense. Any ideas?
Here is some code I am testing with:
ASP Page
<%@ Language=VBScript %>
<%
Response.Buffer = True
Set objTest = Server.CreateObject("miBenefits_1_1.ComClsNhsenc")
response.Write(objTest.strTestIt("test"))
set objTest = nothing
%>
<html>
<body>
</body>
</html>
VB.NET
<ComClass(ComClsNhsenc.ClassId, ComClsNhsenc.InterfaceId,
ComClsNhsenc.EventsId)> _
Public Class ComClsNhsenc
Public Function strTestIt(ByVal strToEncrypt As String) As String
Return strToEncrypt + " <-- here"
End Function
#Region "COM GUIDs"
' These GUIDs provide the COM identity for this class
' and its COM interfaces. If you change them, existing
' clients will no longer be able to access the class.
'Public Shared ClassId As String =
"{59B430BF-4033-4f6b-A78A-5991E8D0C4A2}"
'Public Shared InterfaceId As String =
"{11F54F59-A30E-4147-BFF4-133B007B4823}"
'Public Shared EventsId As String =
"{F1687BA1-4189-416f-B4A5-9DBD1FDCF8B9}"
Public Const ClassId As String =
"59B430BF-4033-4f6b-A78A-5991E8D0C4A2"
Public Const InterfaceId As String =
"11F54F59-A30E-4147-BFF4-133B007B4823"
Public Const EventsId As String =
"F1687BA1-4189-416f-B4A5-9DBD1FDCF8B9"
#End Region
' A creatable COM class must have a Public Sub New()
' with no parameters, otherwise, the class will not be
' registered in the COM registry and cannot be created
' via CreateObject.
Public Sub New()
MyBase.New()
End Sub
End Class
Thank you for any assistance and have a great day,
Ryan