vb.net Code Functionality in C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ccodebase
    New Member
    • Feb 2020
    • 2

    vb.net Code Functionality in C++

    i have the Following vb.net 2008 Code i am needing the same functionality in c++ any help would be appreciated.

    Public Sub New()
    Try
    If ORIHoles Is Nothing Then
    ReDim ORIHoles(49)
    Dim ff As Integer = FreeFile()
    Dim tempstr As String
    Dim atempstr() As String
    FileOpen(ff, "postable.c sv", OpenMode.Input, OpenAccess.Read , OpenShare.Share d)
    Do While Not EOF(ff)
    tempstr = LineInput(ff)
    atempstr = tempstr.Split(" ,")
    If atempstr.GetUpp erBound(0) = 2 Then
    ORIHoles(CInt(a tempstr(0))).An gle = CDbl(atempstr(1 ))
    ORIHoles(CInt(a tempstr(0))).Hy pot = CDbl(atempstr(2 ))
    End If
    Loop
    FileClose(ff)
    End If
    Catch ex As Exception
    GeneralErrorHan dler(ex.ToStrin g)
    End Try
    End Sub
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    Can definitely help to write in C++ if the approach, logic or purpose of the code is shared by the OP.

    Comment

    • ccodebase
      New Member
      • Feb 2020
      • 2

      #3
      i can review in more detail if needed :)

      Comment

      • dev7060
        Recognized Expert Contributor
        • Mar 2017
        • 656

        #4
        Do not DM anything. The open discussion may benefit others as well.

        Comment

        Working...