Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I must create a vector of static CEdit, I did:

std::vector<CEdit*> m_vEd;


and I have a CEdit m_edit

m_vEd.push_back(&m_edit);


but It's wrong because address of m_edit is NULL;

What I have tried:

I tried what I wrote before; so I created a vector
Posted
Comments
Richard MacCutchan 6-Jul-22 11:26am    
"because address of m_edit is NULL;"
Well, there is your problem. You need to make sure that m_edit points to an actual CEdit object.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900