Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hide Window before it's creation Pin
Neo Andreson4-Nov-07 15:43
Neo Andreson4-Nov-07 15:43 
Questioncalling .net dll from vs6 c++ Pin
BoscoBill4-Nov-07 6:28
BoscoBill4-Nov-07 6:28 
AnswerRe: calling .net dll from vs6 c++ Pin
Peter Weyzen4-Nov-07 7:12
Peter Weyzen4-Nov-07 7:12 
GeneralRe: calling .net dll from vs6 c++ Pin
BoscoBill4-Nov-07 7:34
BoscoBill4-Nov-07 7:34 
GeneralRe: calling .net dll from vs6 c++ Pin
Mark Salsbery5-Nov-07 5:48
Mark Salsbery5-Nov-07 5:48 
GeneralRe: calling .net dll from vs6 c++ Pin
BoscoBill5-Nov-07 6:37
BoscoBill5-Nov-07 6:37 
GeneralRe: calling .net dll from vs6 c++ Pin
Mark Salsbery5-Nov-07 7:02
Mark Salsbery5-Nov-07 7:02 
QuestionQuery regarding MFC application Pin
Chirag_kalra4-Nov-07 5:36
Chirag_kalra4-Nov-07 5:36 
Hi
I'm facing some problem in standard MFC application. In my application, I'm able to run only 3 insatnces of my application simultaneously.That is, i'm able to open only three login screens at the same time, but I dont want this limitaton. I'm currently working in Windows XP. However, when I ran my application in Windows NT, only 4 instances can ber run at a time. When I tried to open it fourth time in Windows XP, it gets crashed at the following line of code.

//winfrm.cpp

BOOL CFrameWnd::Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName,
DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd,
LPCTSTR lpszMenuName,
DWORD dwExStyle,
CCreateContext* pContext)
{
HMENU hMenu = NULL;
if (lpszMenuName != NULL)
{
// load in a menu that will get destroyed when window gets destroyed
HINSTANCE hInst = AfxFindResourceHandle(lpszMenuName, RT_MENU);
if ((hMenu = ::LoadMenu(hInst, lpszMenuName)) == NULL)
{
TRACE(traceAppMsg, 0, "Warning: failed to load menu for CFrameWnd.\n");
PostNcDestroy(); // perhaps delete the C++ object
return FALSE;
}
}
m_strTitle = lpszWindowName; // save title for later

if (!CreateEx(dwExStyle, lpszClassName, lpszWindowName, dwStyle,
rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top,
pParentWnd->GetSafeHwnd(), hMenu, (LPVOID)pContext))
{
TRACE(traceAppMsg, 0, "Warning: failed to create CFrameWnd.\n");
if (hMenu != NULL)
DestroyMenu(hMenu);
return FALSE;
}

return TRUE;
}

Can anybody please advise on this?





Chirag Kalra


Chirag Kalra

QuestionMoveFileEx fails Pin
Royce Fickling4-Nov-07 5:34
Royce Fickling4-Nov-07 5:34 
AnswerRe: MoveFileEx fails Pin
Nelek4-Nov-07 21:59
protectorNelek4-Nov-07 21:59 
Questionplzzz Hellppp meeeee exercise for tomorroww Pin
eerrikkaa4-Nov-07 2:46
eerrikkaa4-Nov-07 2:46 
AnswerRe: plzzz Hellppp meeeee exercise for tomorroww Pin
David Crow4-Nov-07 2:48
David Crow4-Nov-07 2:48 
AnswerRe: plzzz Hellppp meeeee exercise for tomorroww Pin
Hamid_RT4-Nov-07 3:07
Hamid_RT4-Nov-07 3:07 
AnswerRe: plzzz Hellppp meeeee exercise for tomorroww Pin
Stephen Hewitt4-Nov-07 3:19
Stephen Hewitt4-Nov-07 3:19 
AnswerRe: plzzz Hellppp meeeee exercise for tomorroww Pin
ThatsAlok4-Nov-07 18:54
ThatsAlok4-Nov-07 18:54 
QuestionSMTP mail server Pin
bigdenny2004-Nov-07 1:04
bigdenny2004-Nov-07 1:04 
Questionwhich way is more efficient to check bit value Pin
George_George4-Nov-07 1:02
George_George4-Nov-07 1:02 
AnswerRe: which way is more efficient to check bit value Pin
David Crow4-Nov-07 2:48
David Crow4-Nov-07 2:48 
GeneralRe: which way is more efficient to check bit value Pin
George_George4-Nov-07 18:15
George_George4-Nov-07 18:15 
AnswerRe: which way is more efficient to check bit value Pin
Chris Losinger4-Nov-07 5:47
professionalChris Losinger4-Nov-07 5:47 
GeneralRe: which way is more efficient to check bit value Pin
George_George4-Nov-07 18:26
George_George4-Nov-07 18:26 
GeneralRe: which way is more efficient to check bit value Pin
Chris Losinger5-Nov-07 0:58
professionalChris Losinger5-Nov-07 0:58 
GeneralRe: which way is more efficient to check bit value Pin
George_George5-Nov-07 1:13
George_George5-Nov-07 1:13 
GeneralRe: which way is more efficient to check bit value Pin
David Crow5-Nov-07 3:43
David Crow5-Nov-07 3:43 
GeneralRe: which way is more efficient to check bit value Pin
George_George5-Nov-07 18:41
George_George5-Nov-07 18:41 

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.