Tobias Willig
Tobias Willig

Reputation: 1144

Visual Studio: Unresolved Token Error while linking CreateILockBytesOnHGlobal()

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

Answers (1)

Yakov Galka
Yakov Galka

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

Related Questions