[Xkeymacs-dev-en] problem building xkeymacs (GetString() is nota member of CString)

Back to archive index

Harold Bamford (bamforh) bamfo****@cisco*****
Tue Sep 13 23:49:36 JST 2011


So, in Utils.cpp you have changed this:

	memcpy(pMem, text.GetString(), nLength);

to this:

	memcpy(pMem, (LPCTSTR)text, nLength);

Correct? Or did you change afx.h?

-- Harold Bamford

-----Original Message-----
From: xkeym****@lists*****
[mailto:xkeym****@lists*****] On Behalf Of
Kazuhiro Fujieda
Sent: Tuesday, September 13, 2011 12:11 AM
To: xkeym****@lists*****
Subject: Re: [Xkeymacs-dev-en] problem building xkeymacs (GetString() is
nota member of CString)

>>> On Mon, 12 Sep 2011 18:54:42 -0500
>>> "Harold Bamford (bamforh)" <bamfo****@cisco*****> said:

> I downloaded and installed the 2010 Express. I then downloaded
> and installed the SDK 7.1 and the DDK 7.1. Finally, I compiled
> the solution and got this error:
> 
> 1>Utils.cpp(461): error C2039: 'GetString' : is not a member of
'CString'
> C:\WinDDK\7600.16385.1\inc\mfc42\afx.h(385) : see declaration of
'CString'

My mistake causes this error. I missed the MBCS version of
CString in old MFC doesn't support GetString. I replaced it with
the typecasting to LPCTSTR to solve this error.

Regards,
-- 
Kazuhiro Fujieda
fujie****@users*****

_______________________________________________
Xkeymacs-dev-en mailing list
Xkeym****@lists*****
http://lists.sourceforge.jp/mailman/listinfo/xkeymacs-dev-en




More information about the Xkeymacs-dev-en mailing list
Back to archive index