Click here to Skip to main content
15,068,678 members
Articles / Programming Languages / C++

Tagged as



Passing a const character * as a template argument

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
4 Jul 2011CPOL
Provided that the intent is to associate a string (const char *) with a particular dialog type, an implementation like this one could be used.templatestruct CVHDialogTmpl{ CVHDialogTmpl() { } INT_PTR DoModal() { return t.DoModal(ptr); } ...



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Philippe Mori
Software Developer (Senior)
Canada Canada
Programmer at Maid LABS from 2003 (

Programmer-Analyst at Viasat Geo Technoligies from 1995 to 2002 (

I have studied at École Polytechnique de Montréal in computer engineering.

Comments and Discussions