Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionImage size and location change at time of printing Pin
Le@rner1-Mar-16 1:12
Le@rner1-Mar-16 1:12 
AnswerRe: Image size and location change at time of printing Pin
Richard MacCutchan1-Mar-16 1:49
mveRichard MacCutchan1-Mar-16 1:49 
GeneralRe: Image size and location change at time of printing Pin
Le@rner1-Mar-16 17:32
Le@rner1-Mar-16 17:32 
GeneralRe: Image size and location change at time of printing Pin
Le@rner22-Mar-16 19:09
Le@rner22-Mar-16 19:09 
GeneralRe: Image size and location change at time of printing Pin
Richard MacCutchan22-Mar-16 23:01
mveRichard MacCutchan22-Mar-16 23:01 
QuestionAssert failure when I comment SetRegistryKey(_T("Local AppWizard-Generated Applications")) Pin
shanmugarajaa27-Feb-16 6:23
shanmugarajaa27-Feb-16 6:23 
AnswerRe: Assert failure when I comment SetRegistryKey(_T("Local AppWizard-Generated Applications")) Pin
Richard MacCutchan27-Feb-16 21:08
mveRichard MacCutchan27-Feb-16 21:08 
JokeRe: Assert failure when I comment SetRegistryKey(_T("Local AppWizard-Generated Applications")) Pin
David Crow28-Feb-16 16:19
David Crow28-Feb-16 16:19 
GeneralRe: Assert failure when I comment SetRegistryKey(_T("Local AppWizard-Generated Applications")) Pin
Richard MacCutchan28-Feb-16 21:25
mveRichard MacCutchan28-Feb-16 21:25 
QuestionRe: Assert failure when I comment SetRegistryKey(_T("Local AppWizard-Generated Applications")) Pin
David Crow28-Feb-16 16:20
David Crow28-Feb-16 16:20 
Questionwhere "FindFirstFile" fetch drive information ? Pin
shanmugarajaa26-Feb-16 18:44
shanmugarajaa26-Feb-16 18:44 
AnswerRe: where "FindFirstFile" fetch drive information ? Pin
Richard MacCutchan26-Feb-16 21:53
mveRichard MacCutchan26-Feb-16 21:53 
AnswerRe: where "FindFirstFile" fetch drive information ? Pin
David Crow28-Feb-16 16:22
David Crow28-Feb-16 16:22 
QuestionHow to dynamically update gdiplus bitmap object in MFC? Pin
Kiran Satish26-Feb-16 7:45
Kiran Satish26-Feb-16 7:45 
AnswerRe: How to dynamically update gdiplus bitmap object in MFC? Pin
Chris Losinger26-Feb-16 8:44
professionalChris Losinger26-Feb-16 8:44 
GeneralRe: How to dynamically update gdiplus bitmap object in MFC? Pin
Kiran Satish26-Feb-16 9:55
Kiran Satish26-Feb-16 9:55 
Newserror:Segmentation fault (core dumped) Pin
Van Nguyen26-Feb-16 2:47
Van Nguyen26-Feb-16 2:47 
GeneralRe: error:Segmentation fault (core dumped) Pin
Jochen Arndt26-Feb-16 3:04
professionalJochen Arndt26-Feb-16 3:04 
QuestionDifficulty in getting iterator upon using find algorithm of STL Pin
Member 1235353126-Feb-16 0:50
Member 1235353126-Feb-16 0:50 
AnswerRe: Difficulty in getting iterator upon using find algorithm of STL Pin
Jochen Arndt26-Feb-16 0:59
professionalJochen Arndt26-Feb-16 0:59 
AnswerRe: Difficulty in getting iterator upon using find algorithm of STL Pin
Jochen Arndt26-Feb-16 1:55
professionalJochen Arndt26-Feb-16 1:55 
GeneralRe: Difficulty in getting iterator upon using find algorithm of STL Pin
Member 1235353126-Feb-16 2:30
Member 1235353126-Feb-16 2:30 
GeneralRe: Difficulty in getting iterator upon using find algorithm of STL Pin
Jochen Arndt26-Feb-16 2:43
professionalJochen Arndt26-Feb-16 2:43 
GeneralRe: Difficulty in getting iterator upon using find algorithm of STL Pin
Member 123535317-Mar-16 19:23
Member 123535317-Mar-16 19:23 
GeneralRe: Difficulty in getting iterator upon using find algorithm of STL Pin
Jochen Arndt7-Mar-16 21:41
professionalJochen Arndt7-Mar-16 21:41 
std::find is a function to search for an identical value of a specific type. If you have different types it won't work. This includes arrays of same type but different length.

What you are probably looking for is some kind of 'contains' (like strstr) or 'begins with' (like memcmp and strncmp with length of searching value) function which you have to implement yourself.

Example:
C++
for (int i = 0; i < m_vec.size(); i++)
{
    if (MySearch(m_vec.at(i), searchValue))
    {
        // found
        break;
    }
}

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.