If you try the example and get error while debugging or building in line
MessageBox(NULL, "Hello World ", "Test from my DLL" ,NULL);
This error message means that you are trying to pass a multi-byte string (const char [12]) to a function which expects other type.
//Resolution
//You will have to do one of two things:
1.Change your project configuration to use multibyte strings. Press ALT+F7 to open the properties, and navigate to Configuration Properties > General. Look for "Character Set" and Switch to "Use Multi-Byte Character Set".
or
2.Indicate that the string literal, in this case "Hello world!" is of a specific encoding. This can be done through either prefixing it with L, such as L"Hello world!", or surrounding it with the generic _T("Hello world!") macro.
:) In this example, I prefer the first option.
It changes nothing in the code.
Close settings in our program to those in the program-example.(ie MegaBite's program)
You can see the whole explanation here:
[Only registered and activated users can see links. Click Here To Register...]