Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualiMalc

Posted 19 March 2013 - 02:11 AM

Were you really able to declare a wstring variable named string?

LPCWSTR is just a const wchar_t*, i.e. a pointer to the text. When you aren't providing a buffer for it to store the text in, you need to ask yourself the question of where it is going to put that text and how and when is it going to be cleaned up.

#1iMalc

Posted 19 March 2013 - 02:10 AM

Were you really able to declare a wstring variable named string?

LPCWSTR is just a const wchar_t*, i.e. a pointer to some text. When you aren't providing a buffer for it to store the text in, you need to ask yourself the question of where it is going to put that and how and when is it going to be cleaned up.

PARTNERS