Click here to Skip to main content
15,896,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
When creating a dialog you have the option of two constructors

CDialog( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );

CDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL );

All the examples I have ever seen use the latter (UINT nIDTemplate). Just for my own edification
could someone tell me how to use the first constructor. I've never seen an example of this. Where do you find the TemplateName? These must be templates created in your code?

The first constructor parameter LPCTSTR lpszTemplateName appears in quite a few constructors, for example:


CFormView( LPCTSTR lpszTemplateName );

CDialogBar::Create
BOOL Create( CWnd* pParentWnd, LPCTSTR lpszTemplateName, UINT nStyle, UINT nID );


CDialog::Create
BOOL Create( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );

CPropertyPage( LPCTSTR lpszTemplateName, UINT nIDCaption = 0 );
COleDBRecordView( LPCTSTR lpszTemplateName );
CRecordView( LPCSTR lpszTemplateName );
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 
GeneralRe: general mfc question: lpszTemplateName Pin
David Crow27-Jul-05 6:09
David Crow27-Jul-05 6:09 
GeneralRe: general mfc question: lpszTemplateName Pin
23_44427-Jul-05 6:30
23_44427-Jul-05 6:30 
GeneralRe: general mfc question: lpszTemplateName Pin
David Crow27-Jul-05 7:03
David Crow27-Jul-05 7:03 
GeneralRe: general mfc question: lpszTemplateName Pin
23_44427-Jul-05 7:32
23_44427-Jul-05 7:32 
GeneralRe: general mfc question: lpszTemplateName Pin
Gary R. Wheeler27-Jul-05 12:48
Gary R. Wheeler27-Jul-05 12:48 
GeneralRe: general mfc question: lpszTemplateName Pin
23_44428-Jul-05 2:46
23_44428-Jul-05 2:46 
GeneralSerial Comms with 9-bit data Pin
button_basher27-Jul-05 4:01
button_basher27-Jul-05 4:01 
GeneralRe: Serial Comms with 9-bit data Pin
JWood27-Jul-05 9:30
JWood27-Jul-05 9:30 
GeneralRe: Serial Comms with 9-bit data Pin
button_basher28-Jul-05 2:16
button_basher28-Jul-05 2:16 
GeneralThe message when the dialog is covered Pin
jerome_data27-Jul-05 3:40
jerome_data27-Jul-05 3:40 
GeneralRe: The message when the dialog is covered Pin
David Crow27-Jul-05 4:03
David Crow27-Jul-05 4:03 
GeneralRe: The message when the dialog is covered Pin
jerome_data27-Jul-05 4:47
jerome_data27-Jul-05 4:47 
Questionhow to monitor the printer? Pin
szcococut27-Jul-05 3:11
szcococut27-Jul-05 3:11 

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.