-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: lokanath
Message 1 in Discussion
Hi Friends, I am trying to create a VB.Net DLL which can be called in COM. I am not
able to get it right. If any body has any steps to do it or any source code please
forward it to me. The problem i am getting is 1>IClassFactory::CreateInstance failed.
2>The steps to make it com callable i am following steps provided by micrsoft site but
no where i am finding the real i will paste the code here: please tell me where i am
doing wrong
Imports System
Imports Microsoft.VisualBasic
Imports System.Runtime.InteropServices
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)> _
Public Interface INetDriver
Function Startup(ByRef lVersion As Long, ByRef lAttributes As Long) As Long
End Interface
<ComSourceInterfacesAttribute("INetDriver")> _
Public Class NetDriver
Public Function Startup(ByRef lVersion As Long, ByRef lAttributes As Long) As Long
MsgBox("i am here")
Startup = XDBE_SUCCESS
Try
' set the version and attributes
lVersion = 1
lAttributes = XDBA_SERVER_SIDE Or XDBA_SQL Or XDBA_CHANGES_ONLY_BY_TIME
Print("Dot Net driver Startup")
Catch ex As Exception
MsgBox(ex.Source)
End Try
End Function
end class
Please help..............
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]