Declare Function ShowTrueDic Lib "TRCLIENT.DLL" (ByVal lpCmd As String, ByVal ilpCmd As Any, ByVal iBook As Integer, ByVal iReser As Integer) As Integer
Dim lpCmdLine As String * 30
Sub ComDeuEng_Click ()
' ShowTrueDic(lpCmdLine, i3D, iBook, iNone)
' lpCmdLine = Headword
' i3D = 3D if True, False if not
' iBook BOOK_ENGLISH = 1, BOOK_GERMAN = 2
' iNone = for future things
Dim lpCmdLine As String * 40
i3D% = True
iBook% = 2
iNone% = 0
lpCmdLine = Trim(Stichwort.Text)
ret = ShowTrueDic(lpCmdLine, i3D%, iBook%, iNone%)
If ret = 1017 Then ' ERSETZEN text is on the clipboard
MsgBox "Ersetzen was pressed"
Text1.Text = Clipboard.GetText(CF_TEXT)
End If
If ret = 2 Then ' IDCANCEL
MsgBox "Cancel was pressed"
End If
End Sub
Sub ComEngDeu_Click ()
' ShowTrueDic(lpCmdLine, i3D, iBook, iNone)
' lpCmdLine = Headword
' i3D = 3D if True, False if not
' iBook BOOK_ENGLISH = 1, BOOK_GERMAN = 2
' iNone = for future things
Dim lpCmdLine As String * 40
i3D% = True
iBook% = 1
iNone% = 0
lpCmdLine = Trim(Stichwort.Text)
ret = ShowTrueDic(lpCmdLine, i3D%, iBook%, iNone%)
If ret = 1017 Then ' ERSETZEN text is on the clipboard