By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,110 Members | 990 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,110 IT Pros & Developers. It's quick & easy.

vb.net Code Functionality in C++

P: 2
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.csv", OpenMode.Input, OpenAccess.Read, OpenShare.Shared)
Do While Not EOF(ff)
tempstr = LineInput(ff)
atempstr = tempstr.Split(",")
If atempstr.GetUpperBound(0) = 2 Then
ORIHoles(CInt(atempstr(0))).Angle = CDbl(atempstr(1))
ORIHoles(CInt(atempstr(0))).Hypot = CDbl(atempstr(2))
End If
Loop
FileClose(ff)
End If
Catch ex As Exception
GeneralErrorHandler(ex.ToString)
End Try
End Sub
Feb 19 '20 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 203
Can definitely help to write in C++ if the approach, logic or purpose of the code is shared by the OP.
Feb 19 '20 #2

P: 2
i can review in more detail if needed :)
Feb 19 '20 #3

Expert 100+
P: 203
Do not DM anything. The open discussion may benefit others as well.

https://bytes.com/faq.php?faq=postin...#faq_do_not_pm
Feb 26 '20 #4

Post your reply

Sign in to post your reply or Sign up for a free account.