Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Show message the first time my app is started after windows has rebooted Pin
Iain Clarke, Warrior Programmer27-May-10 9:17
Iain Clarke, Warrior Programmer27-May-10 9:17 
GeneralRe: Show message the first time my app is started after windows has rebooted Pin
manchukuo27-May-10 9:20
manchukuo27-May-10 9:20 
AnswerRe: Show message the first time my app is started after windows has rebooted Pin
krmed27-May-10 8:59
krmed27-May-10 8:59 
AnswerRe: Show message the first time my app is started after windows has rebooted Pin
Bhaskar Sandbhor31-May-10 0:34
Bhaskar Sandbhor31-May-10 0:34 
QuestionHTTPS Pin
Fareed Rizkalla27-May-10 6:30
Fareed Rizkalla27-May-10 6:30 
AnswerRe: HTTPS PinPopular
Moak27-May-10 7:52
Moak27-May-10 7:52 
GeneralRe: HTTPS Pin
Stephen Hewitt27-May-10 19:42
Stephen Hewitt27-May-10 19:42 
QuestionProblem loading dll compiled in VS2005 on exe VS06 Pin
PrafullaShirke2727-May-10 6:01
professionalPrafullaShirke2727-May-10 6:01 
AnswerRe: Problem loading dll compiled in VS2005 on exe VS06 Pin
Chris Losinger27-May-10 6:17
professionalChris Losinger27-May-10 6:17 
QuestionRe: Problem loading dll compiled in VS2005 on exe VS06 Pin
David Crow27-May-10 6:27
David Crow27-May-10 6:27 
AnswerRe: Problem loading dll compiled in VS2005 on exe VS06 Pin
PrafullaShirke2727-May-10 21:41
professionalPrafullaShirke2727-May-10 21:41 
Questionchanging images at runtime without using gdiplus library Pin
learningvisualc27-May-10 2:34
learningvisualc27-May-10 2:34 
AnswerRe: changing images at runtime without using gdiplus library Pin
Nuri Ismail27-May-10 2:54
Nuri Ismail27-May-10 2:54 
AnswerRe: changing images at runtime without using gdiplus library Pin
Chris Losinger27-May-10 2:55
professionalChris Losinger27-May-10 2:55 
QuestionRe: changing images at runtime without using gdiplus library Pin
CPallini27-May-10 3:00
mveCPallini27-May-10 3:00 
AnswerRe: changing images at runtime without using gdiplus library Pin
Maximilien27-May-10 3:02
Maximilien27-May-10 3:02 
QuestionHow to use at for STL list Pin
VC_RYK27-May-10 0:43
VC_RYK27-May-10 0:43 
AnswerRe: How to use at for STL list Pin
Richard MacCutchan27-May-10 0:54
mveRichard MacCutchan27-May-10 0:54 
AnswerRe: How to use at for STL list Pin
Cedric Moonen27-May-10 0:57
Cedric Moonen27-May-10 0:57 
AnswerRe: How to use at for STL list Pin
Maximilien27-May-10 1:00
Maximilien27-May-10 1:00 
AnswerRe: How to use at for STL list Pin
Aescleal27-May-10 1:06
Aescleal27-May-10 1:06 
GeneralRe: How to use at for STL list Pin
VC_RYK27-May-10 1:38
VC_RYK27-May-10 1:38 
AnswerRe: How to use at for STL list Pin
CPallini27-May-10 1:53
mveCPallini27-May-10 1:53 
What about:
C++
template <typename T> class mylist: public list<T>
{
public:
  T & at(int n)
  {
    int i;
    list::iterator it= this->begin();
    i = 0;
    while (it != this->end())
    {
      if ( i==n ) return *it;
      i++; it++;
    }
    throw( out_of_range("out of mylist range"));
  }
};

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: How to use at for STL list Pin
VC_RYK27-May-10 2:07
VC_RYK27-May-10 2:07 
GeneralRe: How to use at for STL list Pin
El Corazon27-May-10 6:48
El Corazon27-May-10 6:48 

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.