• Advertisement
  • entries
  • comments
  • views

Some people...

Sign in to follow this  


...were complaining that my sample code didn't work on VS2005 *Saruman*. They were complaining about some conversion errors that kept coming up when calling LoadLibrary. So, here's a solution or two.

Solution 1: Change some settings.
Visual Studio 2005 defaults to having unicode ON. Not such a bad thing really, but sometimes it makes people...choke. Here's how you turn it off for a project:

Solution 2: Change some code.
You can replace the std::string with std::wstring, and don't forget to adjust the string literals to match as well (_T macro comes in handy here.)
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement