Click here to Skip to main content
15,891,930 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog box open issue. Please HELP! Pin
Gary R. Wheeler18-Jun-05 4:27
Gary R. Wheeler18-Jun-05 4:27 
GeneralRe: Dialog box open issue. Please HELP! Pin
volovik18-Jun-05 6:07
volovik18-Jun-05 6:07 
GeneralRe: Dialog box open issue. Please HELP! Pin
Gary R. Wheeler18-Jun-05 8:08
Gary R. Wheeler18-Jun-05 8:08 
Generalwant menu window without the border Pin
LiYS18-Jun-05 2:22
LiYS18-Jun-05 2:22 
GeneralWLAN Card RSSI Pin
Member 204556018-Jun-05 1:37
Member 204556018-Jun-05 1:37 
QuestionHow set message handling right? Pin
ryuki18-Jun-05 1:17
ryuki18-Jun-05 1:17 
GeneralDeque problem with shared_ptr Pin
Luke Murray18-Jun-05 1:03
Luke Murray18-Jun-05 1:03 
GeneralRe: Deque problem with shared_ptr Pin
Jack Puppy18-Jun-05 3:25
Jack Puppy18-Jun-05 3:25 
You'd have to post your code, I can't tell much from what you've posted, other than it's a bad pointer exception.

I just whipped this and it worked fine.

// testsharedptr.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <boost/shared_ptr.hpp>
#include <deque>
#include <crtdbg.h>

class Menu
{
    int m_x;
    int m_y;
    
public:
    Menu(int x, int y) : m_x(x), m_y(y)
        {}
    Menu(const Menu& menu)
        {*this = menu;}
    virtual ~Menu()
        {}
    Menu& operator=(const Menu& menu)
    {
        if (this != &menu)
        {
            m_x = menu.m_x;
        }
        return (*this);
    }
};

typedef boost::shared_ptr<Menu> MenuPtr;

int _tmain(int argc, _TCHAR* argv[])
{
    _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); 
    
    Menu* one = new Menu(1,2);
    Menu* two = new Menu(3,4);
    
    std::deque<MenuPtr > myDeque;
    myDeque.push_front(MenuPtr(one));
    myDeque.push_back(MenuPtr(two));

	return 0;
}




Suspicious | :suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
GeneralRe: Deque problem with shared_ptr Pin
Luke Murray18-Jun-05 17:14
Luke Murray18-Jun-05 17:14 
GeneralRe: Deque problem with shared_ptr Pin
M.Mehrdad.M18-Jun-05 3:25
M.Mehrdad.M18-Jun-05 3:25 
GeneralRe: Deque problem with shared_ptr Pin
Luke Murray18-Jun-05 23:51
Luke Murray18-Jun-05 23:51 
Questionhow to disable maximize Box Dynamically Pin
topagarwal17-Jun-05 23:23
topagarwal17-Jun-05 23:23 
AnswerRe: how to disable maximize Box Dynamically Pin
khan++18-Jun-05 1:20
khan++18-Jun-05 1:20 
Generalmsdn sample Pin
cell5117-Jun-05 20:03
cell5117-Jun-05 20:03 
GeneralRe: msdn sample Pin
Christian Graus17-Jun-05 21:21
protectorChristian Graus17-Jun-05 21:21 
GeneralPress &quot;Enter&quot; on combo box caused my application to exit. Pin
Member 166300817-Jun-05 20:00
Member 166300817-Jun-05 20:00 
GeneralRe: Press &quot;Enter&quot; on combo box caused my application to exit. Pin
Christian Graus17-Jun-05 21:24
protectorChristian Graus17-Jun-05 21:24 
GeneralRe: Press &quot;Enter&quot; on combo box caused my application to exit. Pin
Jack Puppy17-Jun-05 21:27
Jack Puppy17-Jun-05 21:27 
GeneralRe: Press &quot;Enter&quot; on combo box caused my application to exit. Pin
Anonymous17-Jun-05 21:38
Anonymous17-Jun-05 21:38 
GeneralRe: Press &quot;Enter&quot; on combo box caused my application to exit. Pin
David Crow18-Jun-05 3:38
David Crow18-Jun-05 3:38 
GeneralInvisible Dialog Pin
ajmalsiddiqi17-Jun-05 19:44
ajmalsiddiqi17-Jun-05 19:44 
GeneralRe: Invisible Dialog Pin
Christian Graus17-Jun-05 21:25
protectorChristian Graus17-Jun-05 21:25 
GeneralRe: Invisible Dialog Pin
ajmalsiddiqi18-Jun-05 2:03
ajmalsiddiqi18-Jun-05 2:03 
GeneralRe: Invisible Dialog Pin
David Crow18-Jun-05 3:41
David Crow18-Jun-05 3:41 
GeneralRe: Invisible Dialog Pin
Bob Stanneveld18-Jun-05 5:12
Bob Stanneveld18-Jun-05 5:12 

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.