简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM