I wrote a simple wrapper in VB.NET that works for the two .NET wiki libraries that I downloaded, as well as the one I wrote. Target framework is Compact Framework 2.0 in all compiled libraries.
Code:
Imports SlashWiki.SlashWiki
Public Class dgWikiWrapper
public wiki as SlashWiki.SlashWiki
Public Sub New()
wiki = New SlashWiki.SlashWiki()
End Sub
Public Function print (s As String) As String
return (wiki.Transform(s) )
End Function
Public Function info As String
return "SlashWiki.NET"
End Function
End Class
On the desktop version of Basic4PPC I am able to add this library and create an object "wiki" for the dgWikiWrapper class. Program runs fine on the PC and compiles to both PC and PDA.
The problem I am having is that when I run the compiled program on the PDA, I get an "Error loading program. NotSupportedException" error. I noticed that in the PDA B4PPC IDE, there is not a "dgWikiWrapper" class available.
Any suggestions on what I need to look for or change to get this to work on the PDA?
Thx, Don
Edit #1
I tried creating a very simple vb.net DLL for CF 2.0 and am getting the same error message, so it seems to be either something I'm doing or my pc.
Edit #2
I recompiled the wrapper to run as an executable, and it works on the pocket pc. I must not be compiling it into a DLL in a way that B4PPC likes.