Click here to Skip to main content
15,905,136 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionWhy IPersistStreamInitImpl::Load Method is not called? Pin
ajalilqarshi16-Mar-05 21:24
ajalilqarshi16-Mar-05 21:24 
GeneralMultiple instances of Active X control don't paint correctly Pin
rdeekonda14-Mar-05 1:10
rdeekonda14-Mar-05 1:10 
GeneralActiveX in Windows Service Pin
Ravi Jadhav12-Mar-05 1:06
Ravi Jadhav12-Mar-05 1:06 
GeneralRe: ActiveX in Windows Service Pin
ThatsAlok14-Mar-05 19:19
ThatsAlok14-Mar-05 19:19 
GeneralProblem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ajalilqarshi11-Mar-05 0:52
ajalilqarshi11-Mar-05 0:52 
GeneralRe: Problem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
Anonymous11-Mar-05 11:53
Anonymous11-Mar-05 11:53 
GeneralRe: Problem with VARIANT!!!!!!!!!!!!!!!!!!!!!!!! Pin
ajalilqarshi14-Mar-05 0:02
ajalilqarshi14-Mar-05 0:02 
GeneralString constanst to integer mapping Pin
ComplexLifeForm10-Mar-05 11:28
ComplexLifeForm10-Mar-05 11:28 
Hi Friends,

Though this is not exactly a ATL/WTL/STL question it is a more general C++ templates question.

My objective is that I want to get a integer value based on a string constant i.e I want to write something similar to

int val = String2Int<"str1">();
int val1 = String2Int<"str2">();

so that depending on the string value as a tempalte arguement I get different integers values.

Is it possible to write some sort of template specialization here?

I do not want to use STL map for string to integer mapping nor do I want to perform some string comparison here.

Please let me know your thoughts.

Thanks in Advance.



GeneralRe: String constanst to integer mapping Pin
Michael Dunn10-Mar-05 12:00
sitebuilderMichael Dunn10-Mar-05 12:00 
GeneralRe: String constanst to integer mapping Pin
Joaquín M López Muñoz10-Mar-05 12:14
Joaquín M López Muñoz10-Mar-05 12:14 
GeneralRe: String constanst to integer mapping Pin
Michael Dunn10-Mar-05 13:16
sitebuilderMichael Dunn10-Mar-05 13:16 
GeneralRe: String constanst to integer mapping Pin
Joaquín M López Muñoz10-Mar-05 12:06
Joaquín M López Muñoz10-Mar-05 12:06 
GeneralRe: String constanst to integer mapping Pin
Christian Graus10-Mar-05 12:12
protectorChristian Graus10-Mar-05 12:12 
GeneralRe: String constanst to integer mapping Pin
Jörgen Sigvardsson14-Mar-05 12:35
Jörgen Sigvardsson14-Mar-05 12:35 
GeneralRe: String constanst to integer mapping Pin
Christian Graus14-Mar-05 13:01
protectorChristian Graus14-Mar-05 13:01 
GeneralRe: String constanst to integer mapping Pin
Jörgen Sigvardsson14-Mar-05 21:15
Jörgen Sigvardsson14-Mar-05 21:15 
GeneralRe: String constanst to integer mapping Pin
ComplexLifeForm10-Mar-05 12:49
ComplexLifeForm10-Mar-05 12:49 
GeneralAccess Denied and ATL Server Pin
Federico Milano10-Mar-05 7:06
Federico Milano10-Mar-05 7:06 
QuestionHow to calculate watermark color? Pin
dmitrynogin10-Mar-05 4:35
dmitrynogin10-Mar-05 4:35 
QuestionHow to set minimize and maximize button for polygon window? Pin
inbakumar.G9-Mar-05 23:12
inbakumar.G9-Mar-05 23:12 
AnswerRe: How to set minimize and maximize button for polygon window? Pin
Mike Dimmick10-Mar-05 0:24
Mike Dimmick10-Mar-05 0:24 
Generalinteger to string Pin
Rajesh_K_Sharma8-Mar-05 18:48
Rajesh_K_Sharma8-Mar-05 18:48 
GeneralRe: integer to string Pin
Stuart Dootson8-Mar-05 23:25
professionalStuart Dootson8-Mar-05 23:25 
GeneralRe: integer to string Pin
Kevin McFarlane10-Mar-05 11:26
Kevin McFarlane10-Mar-05 11:26 
GeneralRe: integer to string Pin
ThatsAlok11-Mar-05 2:14
ThatsAlok11-Mar-05 2:14 

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.