home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Calulator Using Functions & DLL"
- ClientHeight = 4335
- ClientLeft = 1365
- ClientTop = 2400
- ClientWidth = 7890
- Height = 4740
- Left = 1305
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 4335
- ScaleWidth = 7890
- Top = 2055
- Width = 8010
- Begin CheckBox StringOption
- Caption = "String"
- Height = 615
- Left = 480
- TabIndex = 9
- Top = 3240
- Width = 1335
- End
- Begin Frame StringFrame
- Caption = "Text Received from C++ DLL"
- Height = 735
- Left = 2040
- TabIndex = 10
- Top = 3120
- Width = 2775
- Begin TextBox StringText
- BorderStyle = 0 'None
- Height = 255
- Left = 240
- TabIndex = 11
- Text = "Message 1 from Start"
- Top = 360
- Width = 2415
- End
- End
- Begin CommandButton Quit
- Caption = "Quit"
- Height = 975
- Left = 6120
- TabIndex = 6
- Top = 2880
- Width = 1095
- End
- Begin CommandButton Calculate
- Caption = "Calculate"
- Height = 855
- Left = 5400
- TabIndex = 5
- Top = 1320
- Width = 2295
- End
- Begin CheckBox AddOption
- Caption = "Add"
- Height = 615
- Left = 480
- TabIndex = 7
- Top = 1320
- Width = 1335
- End
- Begin Frame AddFrame
- Caption = "Sum from C++ DLL"
- Height = 735
- Left = 2040
- TabIndex = 4
- Top = 1200
- Width = 2415
- Begin TextBox Addtext
- BorderStyle = 0 'None
- Height = 255
- Left = 240
- TabIndex = 8
- Text = "will appear here"
- Top = 360
- Width = 1575
- End
- End
- Begin TextBox val2
- Height = 375
- Left = 5640
- TabIndex = 3
- Text = "Enter 2nd Number"
- Top = 240
- Width = 2055
- End
- Begin TextBox val1
- Height = 375
- Left = 1800
- TabIndex = 1
- Text = "Enter 1st Number"
- Top = 240
- Width = 2055
- End
- Begin Label Label4
- Caption = "2) Then Press Calculate:"
- Height = 255
- Left = 5280
- TabIndex = 13
- Top = 840
- Width = 2295
- End
- Begin Label Label3
- Caption = "1) Pick those you want:"
- Height = 255
- Left = 480
- TabIndex = 12
- Top = 840
- Width = 2055
- End
- Begin Label Label2
- Caption = "2nd Number"
- Height = 255
- Left = 4200
- TabIndex = 2
- Top = 240
- Width = 1335
- End
- Begin Label Label1
- Caption = "1st Number"
- Height = 255
- Left = 480
- TabIndex = 0
- Top = 240
- Width = 1215
- End
- Sub AddOption_Click ()
- AddOption.enabled = True
- End Sub
- Sub Calculate_Click ()
- Static x1 As Integer
- Static y1 As Integer
- Static r As Integer
- Static x2 As Single
- Static y2 As Single
- Static z As String
- x1 = Val(val1.text)
- y1 = Val(val2.text)
- x2 = Val(val1.text)
- y2 = Val(val2.text)
- z = "Message 1 from Main"
- 'get info
- If (AddOption.value = 1) Then
- addtext.text = Str$(add1(x1, y1))
- Else
- addtext.text = ""
- End If
- If (StringOption.value = 1) Then
- r = strcpy1(z)
- StringText.text = z
- Else
- StringText.text = ""
- End If
- End Sub
- Sub Quit_Click ()
- End
- End Sub
-