No, it is not registered. And, I have no idea how to do that. Perhaps someone can point me at some instructions…
Also, my continued research has resulted in some progress, and now a somewhat different problem.
Let me explain:
The overall environment is this: the .dll is written in VB (VS2008 express) and is a simple stack manager (push and pop), intended to move data between two programs simultaneously and in real-time. The “pusher” side is a C# (.net) program, and the “popper” side is a VB (same VS) forms program.
Since my original post I have continued looking for a solution and trying different things… the .dll code now looks like this:
Option Explicit On
Option Compare Text
Public Class AlertsGlobals
Public Shared stack() As String, pntr As Integer = -1
Public Shared Function AlertsGlobalPushLine(ByVal inString As String) As Boolean
.
.
.
End Function
Public Shared Function AlertsGlobalPopLine(ByRef outString) As Boolean
.
.
.
End Function
End Class
The “popper” side adds the .dll to its reference list. It compliles, loads, and appears to successfully call the entry point (AlertsGlobalPopLine) which returns “false” because there is nothing to return.
The problem now is on the C# side. I have added the .dll to its reference list. It compiles correctly. However, when it is loaded it issues the error:
… Could not load file or assembly ‘AlertsGlobalsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
I am assuming, because the file is truly there, it is one of the dependancies… Yes? No? or is it because it doeas not have a PublicKey Token?
From an analysis tool, its dependancies appear to be:
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
and each of these have dependancies, and so on for a couple more levels…
And, I do not know how to specify any of these to the C# side.
Also, because the problem now may be with C# code, is this the wrong venue to discuss… just tell me where it belongs and I will move it.
Again, thanks in advance for any help,
Gordo