Reputation: 1144
I cannot link the CreateILockBytesOnHGlobal() method in my Visual Studio project. I get an unresolved token error while linking. My project is a plain Windows Forms Project. Any ideas how to fix that?
Upvotes: 1
Views: 578
Reputation: 72469
As it is said in the table at the bottom of the page, you should link with the Ole32.lib
library. Add it to Linker + Input + Additional Dependencies setting.
Upvotes: 2