Sto importando un progetto fatto con vb 6 in vb 2005 solo che come è ovvio, ci sono dei problemi. Quello che proprio non riesco a capire è in questo pezzo di codice:

codice:
GetWindowThreadProcessId(mhwndVB, mlngProcessID)
	' The process ID makes the hidden window caption unique.
		If 0 = FindWindow(vbNullString, PROC_CAPTION & CStr(mlngProcessID)) Then
		' The window wasn't found, so this is the first thread.
                If App.StartMode = vbSModeStandalone Then
                    ' Create hidden form with unique caption.
                    mfrmProcess.Text = PROC_CAPTION & CStr(mlngProcessID)
                    ' The Initialize event of MainApp (Instancing =
                    '   PublicNotCreatable) shows the main user interface.
                    ma = New MainApp
                    ' (Application shutdown is simpler if there is no
                    '   global reference to MainApp; instead, MainApp
                    '   should pass Me to the main user form, so that
                    '   the form keeps MainApp from terminating.)
                Else
                    Err.Raise(ERR_NoAutomation + vbObjectError, , "Application can't be started with Automation")
                End If
			End If
l'errore è in grassetto con il messaggio:

vbSModeStandalone non dichiarato. Sapete dirmi come sistemarlo? grazie mille