Jump to content
  • Advertisement
  • entries
    146
  • comments
    436
  • views
    198529

Some people...

Sign in to follow this  
Washu

131 views

...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  


0 Comments


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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!