Hi everyone, thank you for your supports, but I want to use C++ language to create a dll file with optional parameters and use it in VB6, e.g:
int _stdcall f(int x, int option1, int option2)
and use it in VB6:
Private Declare Function f Lib "abc.dll"(Byval x As Integer, Byval Option1 As Integer, Byval Option2 As Integer)
Private Sub Form_Load()
MsgBox f(2)
MsgBox f(2,1)
MsgBox f(2,1,3)
End Sub
Hope you help me. Thanks.