Click here to Skip to main content
16,010,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Nish Nishant12-Mar-02 0:54
sitebuilderNish Nishant12-Mar-02 0:54 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Tomasz Sowinski12-Mar-02 0:51
Tomasz Sowinski12-Mar-02 0:51 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Nish Nishant12-Mar-02 0:56
sitebuilderNish Nishant12-Mar-02 0:56 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Christian Graus12-Mar-02 0:58
protectorChristian Graus12-Mar-02 0:58 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Nish Nishant12-Mar-02 1:06
sitebuilderNish Nishant12-Mar-02 1:06 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Christian Graus12-Mar-02 0:51
protectorChristian Graus12-Mar-02 0:51 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Nish Nishant12-Mar-02 1:01
sitebuilderNish Nishant12-Mar-02 1:01 
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Joaquín M López Muñoz12-Mar-02 0:35
Joaquín M López Muñoz12-Mar-02 0:35 
Hi Nish! Taking bout code bloat, take for instance the following sample code:
#ifdef USE_VECTOR
#include <vector>
#endif
 
int main(void)
{
#ifdef USE_VECTOR
  std::vector<int> v;
#else
  int * v=new int[1000];
#endif
 
  for(int i=0;i<1000;++i){
#ifdef USE_VECTOR
      v.push_back(i);
#else
      v[i]=i;
#endif
  }
 
#ifdef USE_VECTOR
  //
#else
  delete [] v;
#endif
 
  return 0;
}
Using std::vector instead of built-in arrays causes the release executable to grow from 20 to 26K. I find this acceptable (you might not).
What really introduces a huge amount of fat into the executables is the iostream library. But this is not part of STL.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Que:- ATL equivalent for the MFC CArray class Pin
Nish Nishant12-Mar-02 0:43
sitebuilderNish Nishant12-Mar-02 0:43 
GeneralCustomize window title bar!!! Pin
Don Miguel11-Mar-02 23:35
Don Miguel11-Mar-02 23:35 
GeneralRe: Customize window title bar!!! Pin
Tomasz Sowinski11-Mar-02 23:59
Tomasz Sowinski11-Mar-02 23:59 
QuestionHow to bypass the proxy server? Pin
CPPFreak11-Mar-02 23:10
CPPFreak11-Mar-02 23:10 
AnswerRe: How to bypass the proxy server? Pin
Joaquín M López Muñoz11-Mar-02 23:36
Joaquín M López Muñoz11-Mar-02 23:36 
GeneralRe: How to bypass the proxy server? Pin
12-Mar-02 2:51
suss12-Mar-02 2:51 
GeneralRe: How to bypass the proxy server? Pin
bryce13-Mar-02 18:43
bryce13-Mar-02 18:43 
Questioncode needed? Pin
11-Mar-02 23:08
suss11-Mar-02 23:08 
AnswerRe: code needed? Pin
Joaquín M López Muñoz11-Mar-02 23:24
Joaquín M López Muñoz11-Mar-02 23:24 
GeneralRe: code needed? Pin
11-Mar-02 23:50
suss11-Mar-02 23:50 
GeneralEdit Text in ListCtrl Pin
11-Mar-02 22:46
suss11-Mar-02 22:46 
GeneralRe: Edit Text in ListCtrl Pin
Joaquín M López Muñoz11-Mar-02 23:17
Joaquín M López Muñoz11-Mar-02 23:17 
GeneralForum Moderator needed for JySE.com Pin
11-Mar-02 22:30
suss11-Mar-02 22:30 
GeneralRe: Forum Moderator needed for JySE.com Pin
Nish Nishant11-Mar-02 22:39
sitebuilderNish Nishant11-Mar-02 22:39 
GeneralRe: Forum Moderator needed for JySE.com Pin
11-Mar-02 22:56
suss11-Mar-02 22:56 
Generalwaveaudio Pin
Halid Niyaz11-Mar-02 21:46
Halid Niyaz11-Mar-02 21:46 
General3 questions for programmer community Pin
alex.barylski11-Mar-02 21:31
alex.barylski11-Mar-02 21:31 

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.