battouchi
06-09-2003, 10:20 PM
Dear all,
I have written a DLL (ActiveX) to hidden the process from the main program. And I already created a new instance
Dim NTA as new NTA_Lib
However, when I click the button in the form, error happened: "Bad filename or number". Please help. Thanks all.
Codes as below:
<in Main program>
Public Sub BT1_click()
DIM FH1 as integer
FH1 = 1
Open txtInputPath For Input As #FH1
NTA.HProcess(FH1)
End Sub
<in DLL>
Public Sub HProcess(IHandler as Integer)
Do Until (EOF(IHandler))
' code here
Loop
End Sub
I have written a DLL (ActiveX) to hidden the process from the main program. And I already created a new instance
Dim NTA as new NTA_Lib
However, when I click the button in the form, error happened: "Bad filename or number". Please help. Thanks all.
Codes as below:
<in Main program>
Public Sub BT1_click()
DIM FH1 as integer
FH1 = 1
Open txtInputPath For Input As #FH1
NTA.HProcess(FH1)
End Sub
<in DLL>
Public Sub HProcess(IHandler as Integer)
Do Until (EOF(IHandler))
' code here
Loop
End Sub