Click here to Skip to main content
15,922,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: re: interface of TSP using GA Pin
Blake Miller29-Jul-05 4:10
Blake Miller29-Jul-05 4:10 
Generallaunch an html file Pin
Halawlaws27-Jul-05 4:49
Halawlaws27-Jul-05 4:49 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 4:51
David Crow27-Jul-05 4:51 
GeneralRe: launch an html file Pin
Halawlaws27-Jul-05 4:53
Halawlaws27-Jul-05 4:53 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 5:00
David Crow27-Jul-05 5:00 
GeneralRe: launch an html file Pin
Halawlaws27-Jul-05 5:02
Halawlaws27-Jul-05 5:02 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 5:07
David Crow27-Jul-05 5:07 
GeneralRe: launch an html file Pin
Halawlaws27-Jul-05 5:08
Halawlaws27-Jul-05 5:08 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 5:13
David Crow27-Jul-05 5:13 
GeneralRe: launch an html file Pin
Halawlaws27-Jul-05 5:17
Halawlaws27-Jul-05 5:17 
GeneralRe: launch an html file Pin
Ravi Bhavnani27-Jul-05 5:22
professionalRavi Bhavnani27-Jul-05 5:22 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 5:23
David Crow27-Jul-05 5:23 
GeneralRe: launch an html file Pin
Halawlaws27-Jul-05 5:25
Halawlaws27-Jul-05 5:25 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 5:27
David Crow27-Jul-05 5:27 
GeneralRe: launch an html file Pin
Halawlaws27-Jul-05 5:30
Halawlaws27-Jul-05 5:30 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 5:36
David Crow27-Jul-05 5:36 
GeneralRe: launch an html file Pin
Halawlaws27-Jul-05 5:39
Halawlaws27-Jul-05 5:39 
GeneralRe: launch an html file Pin
David Crow27-Jul-05 5:44
David Crow27-Jul-05 5:44 
GeneralCOM PORT Does NOT receives all Data! Pin
tomek1827-Jul-05 4:21
tomek1827-Jul-05 4:21 
GeneralRe: COM PORT Does NOT receives all Data! Pin
Marc Soleda27-Jul-05 5:27
Marc Soleda27-Jul-05 5:27 
Generalgeneral mfc question: lpszTemplateName Pin
23_44427-Jul-05 4:17
23_44427-Jul-05 4:17 
GeneralRe: general mfc question: lpszTemplateName Pin
David Crow27-Jul-05 5:05
David Crow27-Jul-05 5:05 
GeneralRe: general mfc question: lpszTemplateName Pin
23_44427-Jul-05 5:17
23_44427-Jul-05 5:17 
GeneralRe: general mfc question: lpszTemplateName Pin
David Crow27-Jul-05 5:31
David Crow27-Jul-05 5:31 
GeneralRe: general mfc question: lpszTemplateName Pin
23_44427-Jul-05 6:00
23_44427-Jul-05 6:00 
Thanks David,

Be patient, this is coming to me.

I did mispeak on MAKEINTRESOURCE macro. It does indeed return a string.

Here is my call as it was
pDlg->Create(IDD_DIALOG1, this);

Here was my constructor
CDialogView::CDialogView(CWnd* pParent /*=NULL*/)
: CDialog(CDialogView::IDD, pParent)
{
//{{AFX_DATA_INIT(CDialogView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}

From CFileDialog.h file
// Dialog Data
//{{AFX_DATA(CDialogView)
enum { IDD = IDD_DIALOG1 };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA

Are you saying I need to modify the constructor of my dialog?

Here is what I did for the new constructor

CDialogView::CDialogView(CWnd* pParent /*=NULL*/)
: CDialog(MAKEINTRESOURCE(CDialogView::IDD), pParent)
{
//{{AFX_DATA_INIT(CDialogView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}}


Now for the call
pDlg->Create("IDD_DIALOG1", this);

I still get an assert. I'm not sure if this is what you meant.

Thanks, Jay

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.