Visual Basic plug-ins

mike

Member³
Has anyone used VB to create a plug-in DLL for plsql developer? I've monkeyed with C++ and got something to work, but I know VB a lot better and thought it would be easier for me. Maybe it isn't possible? Anyway, I've tried this code as a small test and I would think it would put an entry in the configure plug-ins even though it doesn't do anything. It doesn't work though.

Public PlugInID As Integer
Public Desc As String
Public Function IdentifyPlugIn(intPID As Integer) As String
Desc = "testing"
PlugInID = intPID
IdentifyPlugIn = Desc
End Function

Any ideas or a small example would be great fun.

Thanks,

Mike
 
You first have to hook into a dll that has all the functions that PlSql_functions.cpp provides. Than you have to declare your vb code to use this dll like this
Private Declare Function SYS_Version Lib "c:\test.dll" () As Integer
Than you are suppose to be able to call that function from the dll. Like this Call SYS_Version. However when I hit Call SYS_Version i get a can't find dll entry point error message. I think the c++ code has to declare functions as exports or something for them to be used in VB. Can anyone help us out on this? Anyone know how or willing to do this?
 
Back
Top