Please see my comment to the question. If
myFunctions.showResult
is also in the CLI code, written in VB.NET, you don't need P/Invoke to use it. P/Invoke is only used to use unmanaged code in .NET (or other CLI) assembly. If both pieces are .NET assemblies, you simply reference one by another and use it directly:
http://en.wikipedia.org/wiki/.NET_assembly[
^],
http://msdn.microsoft.com/en-us/library/ms973231.aspx[
^].
If you use unmanaged code in a .NET assembly, you really need to use P/Invoke. One thing you should check up is using right entry point name, calling conventions (which should be the same between different versions of Basic), etc. When you have a DLL, you can see its exports using some binary dump tool like "dumpbin.exe". Please see:
http://msdn.microsoft.com/en-us/library/aa446532.aspx[
^].
If you need to learn P/Invoke, please see:
http://en.wikipedia.org/wiki/P/Invoke[
^],
http://msdn.microsoft.com/library/en-us/vcmxspec/html/vcmg_PlatformInvocationServices.asp[
^].
This CodeProject article can also be useful:
Essential P/Invoke[
^].
—SA