I got the compiler error “User-defined type not defined” when I compiled the converted northwind.vproj. How can fix it?
You can open the converted VB6 project and check the ActivateX Data library references that you have. Microsoft ActiveX Data Objects Library 2.0 uses “ADODB.Recordset”. Microsoft ActiveX Data Objects Library 2.1 or later use “ADODB.Recordset20”. You can just use the VB6 replace command to change all the “pRecordset As ADODB.Recordset20” to “pRecordset As ADODB.Recordset”. You can also download and install the latest ADO from Microsoft web site and add the correct ADO reference if you don’t have any ADO Library 2.1 or later on your computer. You can also try the solutions suggested by the article at http://support.microsoft.com/kb/193326.
Related Questions
- I tried to recompile my old TP sources with the FrameworkPascal compiler, but got a couple of error messages. Is something wrong there?
- I got the compiler error "User-defined type not defined" when I compiled the converted northwind.vproj. How can fix it?
- I got the compiler error in Windows MFC application, how to resolve it?