Greetings,

would you please so kind and translate this piece of VB code to a VCPP version.

Many thanks in advance.

Public Sub gAddProgress()

Static stintCounter As Integer
Static stblnFlag As Boolean

If stblnFlag = False Then
stintCounter = 1
stblnFlag = True
Else
Call AddOne(stintCounter)
End If

End Sub