About stdole library not added to migrated project
The following is an example VB .NET error:
- Error 58 Type 'stdole.IUnknown' is not defined.
The following is the cause of the VB .NET error:
- The VB6 to VB .NET Upgrade Wizard does not correctly detect and add the necessary stdole assembly. To correct this error, add the stdole assembly to your Visual Studio project. See the following screen shot:
The following is the original VB6 code example:
Dim pUnKnown As IUnknown
The following is the auto-translated code to VB .NET:
[VB.NET]
'The initial auto-translated VB .NET conversion is correct. The project needs a reference
'added for stdole.
Dim pUnKnown As stdole.IUnknown
See Also:
Migrating from VB6 to VB.NETGeneral steps for migrating from VB6 to VB.NET
Development licensing | Deployment licensing |
---|---|
ArcGIS for Desktop Basic | ArcGIS for Desktop Basic |
ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |
Engine Developer Kit | Engine |