Click here to Skip to main content
15,888,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to compile a Visual Studio 2003 with vs 2008 Pin
limitless13-Mar-08 7:08
limitless13-Mar-08 7:08 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
Matthew Faithfull13-Mar-08 7:14
Matthew Faithfull13-Mar-08 7:14 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
Maximilien13-Mar-08 7:36
Maximilien13-Mar-08 7:36 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
CPallini13-Mar-08 10:22
mveCPallini13-Mar-08 10:22 
GeneralRe: How to compile a Visual Studio 2003 with vs 2008 Pin
Hamid_RT23-Mar-08 1:03
Hamid_RT23-Mar-08 1:03 
QuestionI need help on writing a function I already wrote but need to alter or convert to something else? Pin
Larry Park13-Mar-08 6:03
Larry Park13-Mar-08 6:03 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
led mike13-Mar-08 6:11
led mike13-Mar-08 6:11 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
Eytukan13-Mar-08 7:28
Eytukan13-Mar-08 7:28 
Rewrite it by yourself.

Follow these:
use vector instead of array.
<br />
void Check(vector<string> g, int& i,string key)<br />
{<br />
}<br />

btw, I dont understand a point here. If you already know the index, And if you are not making use of it like an offset, like i+n,i+n*2 and simply using [i], why do you send both index and the array to a separate function?

eg:

int nCheckItem = 3;
std::vector<std::string> vec_stCol;
//Assume you have 5 elements inside vec_stCol. You can make the checking function like :
<br />
    if(check(vec_stCol[i],"mykey"))<br />
  {<br />
  . <br />
  .<br />
  }<br />
<br />
   bool check(const string& stToBeCompared,const string& stCompareKey);<br />
<br />

use stToBecompared.Find() to check if the stToBeCompared string contains stComparekey in it.

Rest of the part, it's same, make use of find() algo.





OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus


Best wishes to Rexx[^]

modified on Thursday, March 13, 2008 1:45 PM

GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
David Crow13-Mar-08 7:53
David Crow13-Mar-08 7:53 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
led mike13-Mar-08 7:59
led mike13-Mar-08 7:59 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
Mark Salsbery13-Mar-08 8:15
Mark Salsbery13-Mar-08 8:15 
GeneralRe: I need help on writing a function I already wrote but need to alter or convert to something else? Pin
led mike13-Mar-08 8:18
led mike13-Mar-08 8:18 
General[GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
followait13-Mar-08 4:51
followait13-Mar-08 4:51 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
bob1697213-Mar-08 4:58
bob1697213-Mar-08 4:58 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
Rajkumar R13-Mar-08 6:08
Rajkumar R13-Mar-08 6:08 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
Mark Salsbery13-Mar-08 6:52
Mark Salsbery13-Mar-08 6:52 
GeneralRe: [GDI+] Any way to change the Image/Bitmap size dynamically? (without constructing a new one) Pin
Californian213-Mar-08 7:36
Californian213-Mar-08 7:36 
GeneralCustom HTTP headers in IWebBrowser2 Pin
berserker_r13-Mar-08 4:50
berserker_r13-Mar-08 4:50 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
Rajkumar R13-Mar-08 5:17
Rajkumar R13-Mar-08 5:17 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
berserker_r13-Mar-08 22:05
berserker_r13-Mar-08 22:05 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
Rajkumar R14-Mar-08 4:03
Rajkumar R14-Mar-08 4:03 
GeneralRe: Custom HTTP headers in IWebBrowser2 Pin
berserker_r17-Mar-08 0:08
berserker_r17-Mar-08 0:08 
GeneralCIPAddressCtrl doesn't show Tooltips! Pin
Vikas K.13-Mar-08 4:43
Vikas K.13-Mar-08 4:43 
GeneralRe: CIPAddressCtrl doesn't show Tooltips! Pin
David Crow13-Mar-08 6:13
David Crow13-Mar-08 6:13 
GeneralRe: CIPAddressCtrl doesn't show Tooltips! Pin
Vikas K.13-Mar-08 19:28
Vikas K.13-Mar-08 19:28 

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.