Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Introducing mouse delay (local machine) [modified] Pin
Code-o-mat9-Jun-09 0:10
Code-o-mat9-Jun-09 0:10 
QuestionThe LCN of a particular volume (say G: drive) will start with 0x00...? Pin
krish_kumar8-Jun-09 20:49
krish_kumar8-Jun-09 20:49 
QuestionFinding a substring from a large string Pin
V K 28-Jun-09 20:49
V K 28-Jun-09 20:49 
AnswerRe: Finding a substring from a large string Pin
Cedric Moonen8-Jun-09 21:08
Cedric Moonen8-Jun-09 21:08 
GeneralRe: Finding a substring from a large string Pin
V K 28-Jun-09 21:11
V K 28-Jun-09 21:11 
GeneralRe: Finding a substring from a large string Pin
KarstenK8-Jun-09 21:21
mveKarstenK8-Jun-09 21:21 
AnswerRe: Finding a substring from a large string Pin
Stuart Dootson8-Jun-09 22:11
professionalStuart Dootson8-Jun-09 22:11 
AnswerRe: Finding a substring from a large string Pin
Pops80028-Jun-09 23:04
Pops80028-Jun-09 23:04 
first given string input string(C:\programfiles\Test\Drv\wince4.0\armv4) and string to be identified (Drv) convert to either upper case and lower case letters. Then use string find operation to Smile | :) identify sting.

here is some sample
#include<cctype>;
#include<algorithm>;
#include<string>;
#include<iostream>
using namespace std;

int string_to_upper(int ch)
{
return toupper(ch);
}

int main()
{
string s = "C:\\programfiles\\Test\\Drv\\wince4.0\\armv4";
string s1 ="\\Drv";
transform(s.begin(), s.end(), s.begin(), string_to_upper);
transform(s1.begin(),s1.end(),s1.begin(),string_to_upper);
if(s.find(s1)!=string::npos)
cout<<"string found"<
QuestionMultiple selection in list control Pin
hemlat8-Jun-09 20:44
hemlat8-Jun-09 20:44 
AnswerRe: Multiple selection in list control Pin
Stuart Dootson8-Jun-09 22:22
professionalStuart Dootson8-Jun-09 22:22 
GeneralRe: Multiple selection in list control Pin
hemlat9-Jun-09 0:15
hemlat9-Jun-09 0:15 
GeneralRe: Multiple selection in list control Pin
Stuart Dootson9-Jun-09 1:11
professionalStuart Dootson9-Jun-09 1:11 
GeneralRe: Multiple selection in list control Pin
David Crow9-Jun-09 3:14
David Crow9-Jun-09 3:14 
QuestionHow to load multiple images Pin
shyampasari8-Jun-09 20:38
shyampasari8-Jun-09 20:38 
AnswerRe: How to load multiple images Pin
Cedric Moonen8-Jun-09 20:54
Cedric Moonen8-Jun-09 20:54 
QuestionRe: How to load multiple images Pin
shyampasari8-Jun-09 21:15
shyampasari8-Jun-09 21:15 
AnswerRe: How to load multiple images Pin
Cedric Moonen8-Jun-09 21:42
Cedric Moonen8-Jun-09 21:42 
QuestionHow to set the checkbox in CListView to be disable for user to change Pin
akira328-Jun-09 20:21
akira328-Jun-09 20:21 
AnswerRe: How to set the checkbox in CListView to be disable for user to change Pin
Code-o-mat8-Jun-09 22:23
Code-o-mat8-Jun-09 22:23 
Questionwindows directory search Pin
Subrat Patnaik8-Jun-09 20:05
Subrat Patnaik8-Jun-09 20:05 
AnswerRe: windows directory search Pin
chirag_chauhan8-Jun-09 23:18
chirag_chauhan8-Jun-09 23:18 
AnswerRe: windows directory search Pin
David Crow9-Jun-09 3:18
David Crow9-Jun-09 3:18 
GeneralUsed cluster number of a hard disk partition come continuously...Is it correct..? [modified] Pin
krish_kumar8-Jun-09 19:43
krish_kumar8-Jun-09 19:43 
Questionhow to realize scrolling text? Pin
xinyue5438-Jun-09 19:39
xinyue5438-Jun-09 19:39 
AnswerRe: how to realize scrolling text? Pin
Chandrasekharan P8-Jun-09 19:51
Chandrasekharan P8-Jun-09 19:51 

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.