Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot load the "comctl32.dll" DLL into memory whilst impersonating

I am trying to impersonate (whilst using COM) to access an external system, and I've had the error thrown.

Never seen anything like it before, and nothing on Google for it.

Could it be a trust issue? This code works fine when using a unit test to run the chechk the code works

like image 602
Stuart.Sklinar Avatar asked Oct 30 '25 01:10

Stuart.Sklinar


1 Answers

I was loading an old VS2013 project in VS2017 and kept getting this error.

It appears when upgraded the solution platform was set to "Any CPU" and was therefore trying to compile/run in x64 mode (on my 64bit machine). Putting the solution platform back on x86 caused it to execute as expected.

like image 55
Tribmos Avatar answered Nov 01 '25 14:11

Tribmos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!