How to remove error of incompatible variable types in LoadLibrary() function?

I have one line in my C++ program

HINSTANCE hInstLibrary = LoadLibrary("DLL_tut.dll");

Here I’m getting error saying that error C2664: ‘LoadLibraryW’ : cannot convert parameter 1 from ‘const char [12]’ to ‘LPCWSTR’

I’m trying to implement program given in link

Tried finding some solutions and found this one closest Incompatible var types I think, but I’m not understanding that how to covert that string of file, the last answer this question is more appropriate I guess.
Can someone suggest how to remove this error ?

PS: not some homework, new to dlls and trying to understand by myself. stuck in this one last step.

Source: dll

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.