Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAlrighty Pin
LukeyBoy1-Aug-02 12:44
LukeyBoy1-Aug-02 12:44 
GeneralEncoding Pin
Hans Ruck1-Aug-02 8:08
Hans Ruck1-Aug-02 8:08 
GeneralRe: Encoding Pin
Joaquín M López Muñoz1-Aug-02 8:27
Joaquín M López Muñoz1-Aug-02 8:27 
Generalinclusion of help Pin
SilentWarrior1-Aug-02 7:37
SilentWarrior1-Aug-02 7:37 
GeneralRe: inclusion of help Pin
Ravi Bhavnani1-Aug-02 10:01
professionalRavi Bhavnani1-Aug-02 10:01 
GeneralCreating ActiveX controls in ActiveX Property pages Pin
Zac Howland1-Aug-02 7:26
Zac Howland1-Aug-02 7:26 
GeneralRe: Creating ActiveX controls in ActiveX Property pages Pin
Ernest Laurentin1-Aug-02 11:19
Ernest Laurentin1-Aug-02 11:19 
GeneralRe: Creating ActiveX controls in ActiveX Property pages Pin
Zac Howland2-Aug-02 5:36
Zac Howland2-Aug-02 5:36 
Yes, I called that in the module's InitInstance. Here is the code that throws the assertion in the test container:

<br />
BOOL CWnd::Attach(HWND hWndNew)<br />
{<br />
    ASSERT(m_hWnd == NULL);     // only attach once, detach on destroy<br />
    ASSERT(FromHandlePermanent(hWndNew) == NULL);<br />
        // must not already be in permanent map<br />
<br />
    if (hWndNew == NULL)<br />
        return FALSE;<br />
<br />
    CHandleMap* pMap = afxMapHWND(TRUE); // create map if not exist<br />
    ASSERT(pMap != NULL);<br />
<br />
    pMap->SetPermanent(m_hWnd = hWndNew, this);<br />
<br />
#ifndef _AFX_NO_OCC_SUPPORT<br />
    AttachControlSite(pMap);<br />
#endif<br />
<br />
    return TRUE;<br />
}<br />


I am not sure how it already has a Permanent handle since I just created the object on the stack. Any thoughts?

Thanks again
Zac

"If I create everything new, why would I want to delete anything?"
GeneralParagraphs on a CView Pin
JennyP1-Aug-02 7:09
JennyP1-Aug-02 7:09 
GeneralRe: Paragraphs on a CView Pin
PJ Arends1-Aug-02 7:16
professionalPJ Arends1-Aug-02 7:16 
GeneralRe: Paragraphs on a CView Pin
JennyP1-Aug-02 7:41
JennyP1-Aug-02 7:41 
GeneralCFileDialog SaveAs Question Pin
moobob1-Aug-02 6:53
moobob1-Aug-02 6:53 
GeneralRe: CFileDialog SaveAs Question Pin
Chris Losinger1-Aug-02 6:56
professionalChris Losinger1-Aug-02 6:56 
GeneralRe: CFileDialog SaveAs Question Pin
moobob1-Aug-02 7:29
moobob1-Aug-02 7:29 
GeneralRe: CFileDialog SaveAs Question Pin
Chris Losinger1-Aug-02 7:32
professionalChris Losinger1-Aug-02 7:32 
GeneralRe: CFileDialog SaveAs Question Pin
moobob1-Aug-02 7:39
moobob1-Aug-02 7:39 
GeneralRe: CFileDialog SaveAs Question Pin
includeh101-Aug-02 8:40
includeh101-Aug-02 8:40 
GeneralRe: CFileDialog SaveAs Question Pin
Chris Losinger1-Aug-02 8:43
professionalChris Losinger1-Aug-02 8:43 
QuestionAllow UI during processing?? Pin
JennyP1-Aug-02 6:36
JennyP1-Aug-02 6:36 
AnswerRe: Allow UI during processing?? Pin
Chris Losinger1-Aug-02 6:49
professionalChris Losinger1-Aug-02 6:49 
AnswerRe: Allow UI during processing?? Pin
Ravi Bhavnani1-Aug-02 7:41
professionalRavi Bhavnani1-Aug-02 7:41 
GeneralRe: Allow UI during processing?? Pin
JennyP1-Aug-02 7:49
JennyP1-Aug-02 7:49 
GeneralRe: Allow UI during processing?? Pin
Ernest Laurentin1-Aug-02 10:32
Ernest Laurentin1-Aug-02 10:32 
GeneralRe: Allow UI during processing?? Pin
Ravi Bhavnani1-Aug-02 11:38
professionalRavi Bhavnani1-Aug-02 11:38 
GeneralRe: Allow UI during processing?? Pin
Ernest Laurentin1-Aug-02 18:42
Ernest Laurentin1-Aug-02 18:42 

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.