How do I write this small procedure in VC++?

Dim oPath As folder, oFso As New FileSystemObject, sImgFile As File, sTime As String


Set oPath = oFso.GetFolder("C:\someFolderPath")


For Each sImgFile In oPath.Files


If sImgFile.Type = "tif file" Then

With Me
.ImgEdit1.Image = sImgFile.Path
.ImgEdit1.Display
.ImgEdit1.RotateRight
.ImgEdit1.Save
End With

End If



Next