2021 SDK upgrade question - error code 126

Currently when we are loading 2 Sketchup dds ( SketchUpAPI.dll && SketchUpCommonPreferences.dll ).

We are updating to Sketchup 2021 and we are replacing the above 2 dlls with the 2021 version.
On delay loading the SketchUPAPI.dll we are getting error code 126 (The specified module could not be found ) when calling LoadLibraryW.

Do you know what we need to do to resolve this error?
Thanks,
Vanessa

What bitness is your application ? (The API DLLs are now only 64bit.)

What is the current directory when you try to load the DLLs and are you using full absolute paths ?
What kind of path strings are you using ?

Hello,

it turns out that the reason Iā€™m getting error 126 is dued to missing vcruntime140_1.dll ( in 2021 but not in 2020 version of the sketchup ).
Anyhow i installed visual studio 2015-2019 redistributable ( which suppose to have the .dll ) and that appears to fix it.

Thanks,
Vanessa

1 Like