I tried copying the code from MSDN: Obtaining a Private Display Device Context, but the compiler throws some errors like:
a value of type "const char *" cannot be assigned to an entity of type "LPCWSTR"
which I have no clue how to fix, as
Can anyone help me with 1 or 2?
The error is saying that you are trying to assign a const char*
to a LPCWSTR
which are two different data types. Due to your lack of code we cannot directly help you.
However, please do look at something like the following answer for reference on this type of issue; cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}'