4

I have a project that compiles in VS 2019.

In Visual Studio 2022 I am getting the error:

C1083: Cannot open type library file: 'msscript.ocx': No such file or directory

Changing the import to:

#import <C:\Windows\SysWOW64\msscript.ocx>

instead of

#import <msscript.ocx>

seems to make things "work".

I wonder if it is related to the fact the visual studio 2022 is 64 bit now and there is some weirdness around SysWOW64.

Derek
  • 7,615
  • 5
  • 33
  • 58

0 Answers0