// for C#
[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);
' for VB
Declare Auto Function MBox Lib "user32.dll" Alias "MessageBox" ( _
ByVal hWnd As Integer, _
ByVal txt As String, _
ByVal caption As String, _
ByVal Typ As Integer) _
As Integer
' also for VB
<DllImport("User32.dll")>
Public Shared Function MBox Lib "user32.dll" Alias "MessageBox" ( _
ByVal hWnd As Integer, _
ByVal txt As String, _
ByVal caption As String, _
ByVal Typ As Integer) _
As Integer
the scrool bar uses known namespaces and therefore are (now) straight foward to implement..
I just can figure out how to "call" an outside dll and "refer" to it to build a wrapper...
It is more accurately to say that Basic4ppc doesn't support custom data types. It does support all primitive data types (including Object data type).2. Access to .NET DLLs theoritically could be done trough B4PPC directly (without a wrapper) if B4PPC could have support for every data type supported by C#.NET. For now B4PPC have serious limitations on this.
Not strictly true. You can use an unmanaged DLL to help out!The reason is that there is no way to do that trough C# (The .NET language behind B4PPC) at runtime.
Not strictly true. You can use an unmanaged DLL to help out!
http://www.codeproject.com/csharp/dyninvok.asp
http://www.developerfusion.co.uk/show/4451/2/
It is more accurately to say that Basic4ppc doesn't support custom data types. It does support all primitive data types (including Object data type).
The GemBox component is a .Net component.
You should try adding the dll to Basic4ppc directly.
If the dll includes methods not supported by Basic4ppc you should create a .Net project, add a reference to this dll and create the required methods and properties.
It will only work on the desktop as this is not a .Net CF dll.