Click here to Skip to main content
15,918,049 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp:How to change the images in the CTreeCtrl dynamicly? Pin
bruspark22-Apr-06 22:47
bruspark22-Apr-06 22:47 
AnswerRe: Help:How to change the images in the CTreeCtrl dynamicly? Pin
includeh1023-Apr-06 2:53
includeh1023-Apr-06 2:53 
QuestionProperty Sheet and Property Pages Pin
Imtiaz Murtaza22-Apr-06 22:06
Imtiaz Murtaza22-Apr-06 22:06 
AnswerRe: Property Sheet and Property Pages Pin
Michael Dunn22-Apr-06 22:58
sitebuilderMichael Dunn22-Apr-06 22:58 
Questionremoving a substring from a std::string Pin
rahultaing22-Apr-06 19:57
rahultaing22-Apr-06 19:57 
AnswerRe: removing a substring from a std::string Pin
Stephen Hewitt22-Apr-06 20:27
Stephen Hewitt22-Apr-06 20:27 
Questionsubstring in a std::string Pin
rahultaing22-Apr-06 19:21
rahultaing22-Apr-06 19:21 
AnswerRe: substring in a std::string Pin
Stephen Hewitt22-Apr-06 19:45
Stephen Hewitt22-Apr-06 19:45 
Try something like this. NOTE: I haven't tested this so your mileage may vary:
----------------
string::size_type LastDotPos = YourString.find_last_of('.');
if ( LastDotPos != -1 )
{
string Extension = YourString.substr(LastDotPos);
transform(Extension.begin(), Extension.end(), Extension.begin(), ::tolower);
if ( Extension == ".xml" )
{
// Ends in ".xml".
}
}


Steve
QuestionWait for Thread Pin
RedDragon2k22-Apr-06 16:35
RedDragon2k22-Apr-06 16:35 
AnswerRe: Wait for Thread Pin
Stephen Hewitt22-Apr-06 17:36
Stephen Hewitt22-Apr-06 17:36 
GeneralRe: Wait for Thread Pin
RedDragon2k23-Apr-06 16:11
RedDragon2k23-Apr-06 16:11 
AnswerRe: Wait for Thread Pin
Nick_Kisialiou22-Apr-06 21:59
Nick_Kisialiou22-Apr-06 21:59 
GeneralRe: Wait for Thread Pin
Stephen Hewitt22-Apr-06 22:21
Stephen Hewitt22-Apr-06 22:21 
AnswerRe: Wait for Thread Pin
John R. Shaw22-Apr-06 22:24
John R. Shaw22-Apr-06 22:24 
QuestionForwarding Functions between DLL's Pin
Bram van Kampen22-Apr-06 14:37
Bram van Kampen22-Apr-06 14:37 
AnswerRe: Forwarding Functions between DLL's Pin
cmk22-Apr-06 14:57
cmk22-Apr-06 14:57 
GeneralRe: Forwarding Functions between DLL's Pin
Bram van Kampen22-Apr-06 15:08
Bram van Kampen22-Apr-06 15:08 
GeneralRe: Forwarding Functions between DLL's Pin
cmk22-Apr-06 17:16
cmk22-Apr-06 17:16 
GeneralRe: Forwarding Functions between DLL's Pin
Bram van Kampen23-Apr-06 15:11
Bram van Kampen23-Apr-06 15:11 
AnswerRe: Forwarding Functions between DLL's Pin
Bram van Kampen22-Apr-06 16:34
Bram van Kampen22-Apr-06 16:34 
Question[Message Deleted] Pin
chasetoys22-Apr-06 9:39
chasetoys22-Apr-06 9:39 
AnswerRe: MFC or No MFC? (No .NET) Pin
Michael Dunn22-Apr-06 9:51
sitebuilderMichael Dunn22-Apr-06 9:51 
GeneralRe: MFC or No MFC? (No .NET) Pin
chasetoys22-Apr-06 10:18
chasetoys22-Apr-06 10:18 
GeneralRe: MFC or No MFC? (No .NET) Pin
Kevin McFarlane22-Apr-06 12:42
Kevin McFarlane22-Apr-06 12:42 
GeneralRe: MFC or No MFC? (No .NET) Pin
Bram van Kampen22-Apr-06 14:57
Bram van Kampen22-Apr-06 14:57 

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.