Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I got the compiler error “User-defined type not defined” when I compiled the converted northwind.vproj. How can fix it?

0
Posted

I got the compiler error “User-defined type not defined” when I compiled the converted northwind.vproj. How can fix it?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123