Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Which project Template for STL coding? Pin
Ajay Vijayvargiya16-Dec-10 22:07
Ajay Vijayvargiya16-Dec-10 22:07 
GeneralRe: Which project Template for STL coding? Pin
Nemanja Trifunovic17-Dec-10 2:58
Nemanja Trifunovic17-Dec-10 2:58 
GeneralRe: Which project Template for STL coding? Pin
Alain Rist17-Dec-10 3:46
Alain Rist17-Dec-10 3:46 
GeneralRe: Which project Template for STL coding? Pin
Ajay Vijayvargiya17-Dec-10 7:54
Ajay Vijayvargiya17-Dec-10 7:54 
AnswerRe: Which project Template for STL coding? Pin
dazfuller16-Dec-10 19:00
dazfuller16-Dec-10 19:00 
AnswerRe: Which project Template for STL coding? Pin
User 433002816-Dec-10 19:08
User 433002816-Dec-10 19:08 
GeneralRe: Which project Template for STL coding? Pin
Emilio Garavaglia16-Dec-10 20:45
Emilio Garavaglia16-Dec-10 20:45 
QuestionCMap question. Pin
BarryPearlman16-Dec-10 7:25
BarryPearlman16-Dec-10 7:25 
Visual Studio 2010, Windows 7 645 bit.

Objective: Create a CMap Object, store info and retrieve later.

We have (out of context):

typedef CMap<int, int, DWORD*, DWORD*> map_OpenObj;
........................................................................................

map_OpenObj* p_mapObj = NULL;

p_map = new p_mapObj;

........................................................................................

nIdx = some integer;
p_dwObj = (DWORD*)(pointer to some object);

m_pOpenObjMap->SetAt(nIdx, p_dwObj);
.......................................................................................

The above compiles, links and executes without incident with one exception. Later in the application I have:

int nCount = 0;
POSITION posPos = NULL;

nCount = m_pOpenObjMap->GetCount();
posPOS = m_pOpenObjMap->GetStartPosition();

I get nCount = 1, which I would have expected, however posPOS comes back = 0xffffffff, which it shouldn't. This has worked before under Visual Studio 2008. Note: In the application, m_pOpenObjMap will never see ARG or ARG_KEY contain the same values.

The question is what am I doing incorrectly? Any thoughts?
Thanks, Barry

AnswerRe: CMap question. Pin
CPallini16-Dec-10 7:51
mveCPallini16-Dec-10 7:51 
GeneralRe: CMap question. Pin
BarryPearlman17-Dec-10 5:06
BarryPearlman17-Dec-10 5:06 
QuestionProxy aware application Pin
Manmohan2916-Dec-10 4:13
Manmohan2916-Dec-10 4:13 
AnswerRe: Proxy aware application Pin
«_Superman_»16-Dec-10 6:38
professional«_Superman_»16-Dec-10 6:38 
GeneralRe: Proxy aware application Pin
Manmohan2917-Dec-10 3:31
Manmohan2917-Dec-10 3:31 
QuestionProblem in windows7 Pin
bhanu_850916-Dec-10 0:46
bhanu_850916-Dec-10 0:46 
AnswerRe: Problem in windows7 Pin
phil.o16-Dec-10 1:07
professionalphil.o16-Dec-10 1:07 
AnswerRe: Problem in windows7 Pin
krmed16-Dec-10 3:05
krmed16-Dec-10 3:05 
GeneralRe: Problem in windows7 Pin
bhanu_850916-Dec-10 3:28
bhanu_850916-Dec-10 3:28 
GeneralRe: Problem in windows7 Pin
David Crow16-Dec-10 4:16
David Crow16-Dec-10 4:16 
GeneralRe: Problem in windows7 Pin
«_Superman_»16-Dec-10 7:05
professional«_Superman_»16-Dec-10 7:05 
GeneralRe: Problem in windows7 Pin
krmed16-Dec-10 7:06
krmed16-Dec-10 7:06 
QuestionHow to pass text file data from MFC line Graph? Pin
mathivanaan16-Dec-10 0:38
mathivanaan16-Dec-10 0:38 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Rajesh R Subramanian16-Dec-10 0:42
professionalRajesh R Subramanian16-Dec-10 0:42 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Cedric Moonen16-Dec-10 1:00
Cedric Moonen16-Dec-10 1:00 
QuestionHow to save TransParent IMage after drawing on another image? Pin
002comp15-Dec-10 19:55
002comp15-Dec-10 19:55 
AnswerRe: How to save TransParent IMage after drawing on another image? Pin
Rozis16-Dec-10 11:59
Rozis16-Dec-10 11:59 

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.