VC++ in Windows98 to WindowsNT

Hello All,
First of all I wud like to say Sorry, bcaz I m asking
just off topic question in this mailing list. Even I
have put the same question in VC++ mailing list, but
nobody get the answer. Pls consider as necessary.

I have made an MFC dialog based application in
windows98 OS, and when
I tried that one to run on windows NT, it do nothing,
even dialog window
does not open.

So i tried to debug it, it shows some following
warnings and exit.

Warning: Dialog creation failed! GetLastError returns
0x0000000D
Warning: Destroying non-NULL m_pMainWnd
The thread 0xCF has exited with code 0 (0x0).
The program ‘D:\Work\ConfTest\Server\RFTS.exe’ has
exited with code 0
(0x0).

I m not getting what the problem is???

I m adding some more details in my problem, it returns
value of hWnd = NULL.
I m pasting below the code of …\MFC\Src\DLGCORE.CPP
file where it returns the null.

hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
pParentWnd->GetSafeHwnd(), AfxDlgProc);

I m very thankfull, if anybody solve my problem.
otherwise i have to rewrite the same big application
in Windows NT.

Regards,
Nigam


Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Don’t mix MFC and API interfaces. MFC definitly describes how to make
dialogs from memory templates. MFC initializes some internal structures
before creating dialog. ::CreateDialogIndirect doesn’t. There exists tonns
of documentation. You have to read it :slight_smile:

----- Original Message -----
From: “Jacky Costen”
To: “NT Developers Interest List”
Sent: Monday, October 01, 2001 10:54
Subject: [ntdev] VC++ in Windows98 to WindowsNT

> Hello All,
> First of all I wud like to say Sorry, bcaz I m asking
> just off topic question in this mailing list. Even I
> have put the same question in VC++ mailing list, but
> nobody get the answer. Pls consider as necessary.
>
> I have made an MFC dialog based application in
> windows98 OS, and when
> I tried that one to run on windows NT, it do nothing,
> even dialog window
> does not open.
>
> So i tried to debug it, it shows some following
> warnings and exit.
> --------------------------------------------
> Warning: Dialog creation failed! GetLastError returns
> 0x0000000D
> Warning: Destroying non-NULL m_pMainWnd
> The thread 0xCF has exited with code 0 (0x0).
> The program ‘D:\Work\ConfTest\Server\RFTS.exe’ has
> exited with code 0
> (0x0).
> ---------------------------------------------
> I m not getting what the problem is???
>
> I m adding some more details in my problem, it returns
> value of hWnd = NULL.
> I m pasting below the code of …\MFC\Src\DLGCORE.CPP
> file where it returns the null.
> -----------------------------------------------
> hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
> pParentWnd->GetSafeHwnd(), AfxDlgProc);
> -----------------------------------------------
> I m very thankfull, if anybody solve my problem.
> otherwise i have to rewrite the same big application
> in Windows NT.
>
> Regards,
> Nigam
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Listen to your Yahoo! Mail messages from any phone.
> http://phone.yahoo.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@vba.com.by
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com