Problems linking in Visual Studio 2022

If I use the GLFW library glfw3.dll either in glfw 3.3.8, 3.3.7 etc. I get error message

Severity Code Description Project File Line Suppression State
Error LNK1107 invalid or corrupt file: cannot read at 0x2F8 glfw_test D:\Code\glfw-3.3.8\lib-vc2022\glfw3.dll 1
file is listed as 212kb in size.
used all version of vc2019, vc20… etc.
either 64 bit or 32 bit

When you’re linking with Visual Studio you need to pass .lib file to linker, not the .dll file. Use glfw3.lib or glfw3_mt.lib to link statically, or glfw3dll.lib to link to glfw3.dll file dynamically.

Thanx. You are right.
I got it working using glfw3dll.lib plus the windows opengl libraries
opengl32.lib; glu32.lib; odbc32.lib; odbccp32.lib