VB6 to VB.NET Need version info
Posted on 2007-04-10
Converting from VB6 to VB.NET and new at it so any help would be great. I have posted the code below from the .NET and the two errors. I am trying to get the Name, copy and version info but not much luck. Please Help.
Public Sub TRACE(ByVal pstrLogData As String)
Dim strAppVer, strLogData1 As String
Dim App As New ApplicationId
Const LOGLOC = "\Program Files\Rite Aid\Vru\Logs\HolidayHours.Log"
strAppVer = App.Name & "." & App.Copy & App.Version
'Add the string to the list with the time.
strLogData1 = "-" & pstrLogData
usrctlLogger.LogToFile(LOGLOC, strAppVer, strLogData1)
Catch ex As Exception
Error Mssg 1
Argument not specified for parameter 'version' of 'Public Sub New(publicKeyToken() As Byte, name As String, version As System.Version, processorArchitecture As String, culture As String)'.
Error Mssg 2
Operator '&' is not defined for types 'String' and 'System.ApplicationId'.