Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCObject (CView - CDoument) callbacks Pin
Tony Teveris7-Dec-07 4:48
Tony Teveris7-Dec-07 4:48 
GeneralRe: CObject (CView - CDoument) callbacks Pin
led mike7-Dec-07 6:04
led mike7-Dec-07 6:04 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Mark Salsbery7-Dec-07 6:24
Mark Salsbery7-Dec-07 6:24 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Tony Teveris7-Dec-07 6:51
Tony Teveris7-Dec-07 6:51 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Mark Salsbery7-Dec-07 7:11
Mark Salsbery7-Dec-07 7:11 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Tony Teveris7-Dec-07 7:18
Tony Teveris7-Dec-07 7:18 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Mark Salsbery7-Dec-07 7:34
Mark Salsbery7-Dec-07 7:34 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Tony Teveris7-Dec-07 8:03
Tony Teveris7-Dec-07 8:03 
Sorry about that

DLGPROC pfn;

pfn = (DLGPROC) MakeProcInstance((FARPROC) pfnDialog, AfxGetApp()->m_hInstance);
nRet = (L_INT) DialogBoxParam(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(nDialog), hWnd, pfn, lParam);
FreeProcInstance((FARPROC) pfn);

Regular DLL using / linked with MFC (NOT static, same as main app)

within wincore.cpp here is where it fails

// should be a normal window
ASSERT(::IsWindow(m_hWnd));

// should also be in the permanent or temporary handle map
CHandleMap* pMap = afxMapHWND();
ASSERT(pMap != NULL);

I have to ask the programmer of the main app some questions. I agree with you so far so I think there has to be something in our code messing something up.

Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074

GeneralRe: CObject (CView - CDoument) callbacks Pin
Mark Salsbery7-Dec-07 8:18
Mark Salsbery7-Dec-07 8:18 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Tony Teveris7-Dec-07 8:23
Tony Teveris7-Dec-07 8:23 
GeneralRe: CObject (CView - CDoument) callbacks Pin
Mark Salsbery7-Dec-07 8:29
Mark Salsbery7-Dec-07 8:29 
GeneralExecutable application Pin
llp00na7-Dec-07 4:28
llp00na7-Dec-07 4:28 
GeneralRe: Executable application Pin
led mike7-Dec-07 4:59
led mike7-Dec-07 4:59 
GeneralRe: Executable application Pin
llp00na7-Dec-07 5:09
llp00na7-Dec-07 5:09 
GeneralRe: Executable application Pin
led mike7-Dec-07 5:31
led mike7-Dec-07 5:31 
GeneralRe: Executable application Pin
Eytukan7-Dec-07 5:20
Eytukan7-Dec-07 5:20 
GeneralRe: Executable application Pin
llp00na7-Dec-07 5:28
llp00na7-Dec-07 5:28 
GeneralRe: Executable application Pin
Eytukan7-Dec-07 5:35
Eytukan7-Dec-07 5:35 
GeneralRe: Executable application Pin
llp00na7-Dec-07 6:04
llp00na7-Dec-07 6:04 
GeneralRe: Executable application Pin
Eytukan7-Dec-07 6:14
Eytukan7-Dec-07 6:14 
QuestionRe: Executable application Pin
Maximilien7-Dec-07 5:26
Maximilien7-Dec-07 5:26 
GeneralRe: Executable application Pin
llp00na7-Dec-07 5:29
llp00na7-Dec-07 5:29 
GeneralRe: Executable application Pin
Eytukan7-Dec-07 5:30
Eytukan7-Dec-07 5:30 
GeneralRe: Executable application Pin
llp00na7-Dec-07 6:01
llp00na7-Dec-07 6:01 
QuestionCode structure Pin
chanduabcchandu7-Dec-07 0:48
chanduabcchandu7-Dec-07 0:48 

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.