CString error, 'CString': is not a member of 'ATL::CStringT<BaseType, StringTraits>'

Posted by flavour404 on Stack Overflow See other posts from Stack Overflow or by flavour404
Published on 2010-12-30T19:47:25Z Indexed on 2010/12/30 19:54 UTC
Read the original article Hit count: 259

Filed under:
|
|

Hi,

I am trying to do this:

#include <atlstr.h>

CHAR Filename; // [sp+26Ch] [bp-110h]@1
char v31; // [sp+36Ch] [bp-10h]@1
int v32; // [sp+378h] [bp-4h]@1

 GetModuleFileNameA(0, &Filename, 0x100u);
 CString::CString(&v31, &Filename);

But I am getting the compiler error C2039:'CString': is not a member of 'ATL::CStringT'

This is a non MFC based dll, but according to the docs you should be able to use CString functionality with the include #include atlstr.h how do I make it work?

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2008