Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ Professional Publications? Pin
Christian Graus4-Oct-02 11:27
protectorChristian Graus4-Oct-02 11:27 
GeneralGeneral error: Unable to read from file buffer occurred. Native Error Msg is: State:S1000,Native:0,Origin:[Microsoft][ODBC Cursor Library] Pin
achandra0073-Oct-02 18:44
achandra0073-Oct-02 18:44 
GeneralDetect System Inactivity Pin
Paul M Watt3-Oct-02 17:03
mentorPaul M Watt3-Oct-02 17:03 
GeneralRe: Detect System Inactivity Pin
Shog93-Oct-02 18:22
sitebuilderShog93-Oct-02 18:22 
GeneralRe: Detect System Inactivity Pin
Paul M Watt3-Oct-02 19:40
mentorPaul M Watt3-Oct-02 19:40 
GeneralWorking with C++ and C together Pin
Soepa3-Oct-02 16:06
Soepa3-Oct-02 16:06 
GeneralRe: Working with C++ and C together Pin
Rick York3-Oct-02 16:30
mveRick York3-Oct-02 16:30 
GeneralCMap template error Pin
IGx893-Oct-02 15:56
IGx893-Oct-02 15:56 
I'm trying to make a map like this:

CMap<cstring,cstring&,buddyinfo,buddyinfo&> *BuddyList;

with BuddyInfo being a struct. But, I get this error when I try compiling:

error C2440: 'type cast' : cannot convert from 'CString' to 'DWORD_PTR'

The error is in the second-to-last line in the following code from afxtempl.h:
template<class arg_key="">
AFX_INLINE UINT AFXAPI HashKey(ARG_KEY key)
{
// default identity hash - works for most primitive values
return (DWORD)(((DWORD_PTR)key)>>4);
}

What am I doing wrong? Thanks!
GeneralRe: CMap template error Pin
Christian Graus3-Oct-02 17:44
protectorChristian Graus3-Oct-02 17:44 
GeneralRe: CMap template error Pin
Chris Losinger3-Oct-02 17:59
professionalChris Losinger3-Oct-02 17:59 
GeneralRe: CMap template error Pin
Martin Marvinski3-Oct-02 18:16
Martin Marvinski3-Oct-02 18:16 
GeneralRe: CMap template error Pin
Christian Graus4-Oct-02 11:23
protectorChristian Graus4-Oct-02 11:23 
GeneralRe: CMap template error Pin
Martin Marvinski5-Oct-02 20:42
Martin Marvinski5-Oct-02 20:42 
GeneralRe: CMap template error Pin
Atlantys4-Oct-02 7:16
Atlantys4-Oct-02 7:16 
GeneralRe: CMap template error Pin
Christian Graus4-Oct-02 11:06
protectorChristian Graus4-Oct-02 11:06 
GeneralRe: CMap template error Pin
Atlantys4-Oct-02 12:14
Atlantys4-Oct-02 12:14 
GeneralRe: CMap template error Pin
Christian Graus4-Oct-02 12:20
protectorChristian Graus4-Oct-02 12:20 
GeneralRe: CMap template error Pin
IGx894-Oct-02 7:54
IGx894-Oct-02 7:54 
GeneralRe: CMap template error Pin
Christian Graus4-Oct-02 11:09
protectorChristian Graus4-Oct-02 11:09 
GeneralRe: CMap template error Pin
Chris Losinger3-Oct-02 17:58
professionalChris Losinger3-Oct-02 17:58 
GeneralRe: CMap template error Pin
IGx894-Oct-02 7:52
IGx894-Oct-02 7:52 
GeneralRe: CMap template error Pin
Tomasz Sowinski4-Oct-02 0:11
Tomasz Sowinski4-Oct-02 0:11 
Questionapi available for this purpose? Pin
imran_rafique3-Oct-02 15:36
imran_rafique3-Oct-02 15:36 
Generalregular expression problems Pin
Roman Nurik3-Oct-02 13:33
Roman Nurik3-Oct-02 13:33 
GeneralRe: regular expression problems Pin
Jörgen Sigvardsson3-Oct-02 14:17
Jörgen Sigvardsson3-Oct-02 14:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.