Hi everyone out there :) I have a problem (in the VERY beginning state) of writing a VB.NET DLL that will be used as a plugin for a C++ Program. I try to outline what the goal is... There is a videochat program called CamFrog. For this a Bot (for managing the chatroom) is available that uses plugins. The Bot comes with a C++ sample for a simple plugin. What i want to do is to "translate" that into a VB.NET Version (because C++ is really not my thing... i hardly figured out how the sample might work). Now... I know that a .NET DLL is not the same as the C++ DLLs that are used by the bot but i guess it should be possible to achieve the same with COM Interop... I hope I'm right. Now I looked on the sample plugin with dependency walker and it exports a few functions that will be called by the bot-program. My first step now is to try to build a dll in VB.NET (2010 express) that ecports one simple function... i just want to see the function in dependency walker for now. What i did so far: I followed the guide from MS (Walkthrough: Creating COM Objects with Visual Basic[^]) using the part "Creating COM Objects without the COM Class Template " (and some other hints from different pages i found). All settings are ok as far as i can see and my "code" is as follows:
Imports System.Runtime.InteropServices
_
Public Class ComClass1
Public Const ClassId As String = "C4889882-ECC6-4BBE-9B65-A9DCC30B90F8"
Public Const InterfaceId As String = "6420CC9C-2B69-4DFD-A149-C694895D80BD"
Public Const EventsId As String = "0A0ACD71-7651-4BE5-9128-FE8AECCAE623"
Public Sub New()
MyBase.New()
End Sub
\_
Public Function testfunction() As Boolean
Return True
End Function
End Class
As far as I understood "testfunction" should now be visible as an exported function of the DLL in dependency walker... But... it doesn't appear (list of exported functions is empty). The whole thing with COM-Interop and that stuff is completely new for me and I barely understood all the things I read during the last 5 or 6 hours googling... so I'm sure that I miss something on it. I hope someone can kick me in the right direction. Thanks in advance -obi-