I have decompiled an old Visual Basic 6 project and opened it using Visual Basic 6 which is installed on a Windows XP Virtual Machine.
When I try to recompile the code I get the error "Compile error: User-defined type not defined" for this line of code -
Private Declare Function InvalidateRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT, ByVal bErase As Long) As Long
I understand that his function is part of the User32 Windows Library.
I have tried to add user32.dll as a component/reference, with no luck.