Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCString to Unsigned short and unsigned short to CString in vc++ Pin
Member 365375123-Apr-10 21:20
Member 365375123-Apr-10 21:20 
AnswerRe: CString to Unsigned short and unsigned short to CString in vc++ Pin
Richard MacCutchan23-Apr-10 21:39
mveRichard MacCutchan23-Apr-10 21:39 
GeneralRe: CString to Unsigned short and unsigned short to CString in vc++ Pin
Rajesh R Subramanian24-Apr-10 6:15
professionalRajesh R Subramanian24-Apr-10 6:15 
GeneralRe: CString to Unsigned short and unsigned short to CString in vc++ Pin
Richard MacCutchan24-Apr-10 6:39
mveRichard MacCutchan24-Apr-10 6:39 
QuestionC++ DLL compiled under VS 2005 does not work for program compiled under VS 2010 Pin
Vilasrk123-Apr-10 11:42
Vilasrk123-Apr-10 11:42 
AnswerRe: C++ DLL compiled under VS 2005 does not work for program compiled under VS 2010 Pin
Chris Losinger23-Apr-10 12:37
professionalChris Losinger23-Apr-10 12:37 
GeneralRe: C++ DLL compiled under VS 2005 does not work for program compiled under VS 2010 Pin
Vilasrk126-Apr-10 4:02
Vilasrk126-Apr-10 4:02 
Questionvector<>.front docs Confusion Pin
Peter Camilleri23-Apr-10 9:18
Peter Camilleri23-Apr-10 9:18 
Confused | :confused: The Visual Studio help has the following snippet under vector<>.front:

// vector_front.cpp<br />
// compile with: /EHsc<br />
#include <vector><br />
#include <iostream><br />
<br />
int main( )<br />
{<br />
   using namespace std;   <br />
   vector <int> v1;<br />
   <br />
   v1.push_back( 10 );<br />
   v1.push_back( 11 );<br />
<br />
   int& i = v1.front( );<br />
   const int& ii = v1.front( );<br />
<br />
   cout << "The first integer of v1 is "<< i << endl;<br />
   i++;<br />
   cout << "The second integer of v1 is "<< ii << endl;<br />
}


It is said to produce:

The first integer of v1 is 10
The second integer of v1 is 11

I'm confused. Just how is this the second integer of v1. Seems to me that the first integer of v1 was simply incremented and happens to have the same value as the second integer. If so, the author of this page should be sacked for writing a deliberately confusing entry. Mad | :mad:
AnswerRe: vector.front docs Confusion (edited) Pin
Maximilien23-Apr-10 9:34
Maximilien23-Apr-10 9:34 
GeneralRe: vector.front docs Confusion (edited) Pin
Maximilien23-Apr-10 9:37
Maximilien23-Apr-10 9:37 
GeneralRe: vector.front docs Confusion (edited) Pin
Peter Camilleri23-Apr-10 9:39
Peter Camilleri23-Apr-10 9:39 
GeneralRe: vector.front docs Confusion (edited) Pin
Peter Camilleri23-Apr-10 9:48
Peter Camilleri23-Apr-10 9:48 
AnswerRe: vector.front docs Confusion Pin
CPallini23-Apr-10 9:47
mveCPallini23-Apr-10 9:47 
QuestionHTTP1.1 / HTTP1.0 WinSock2 Pin
Fareed Rizkalla23-Apr-10 8:45
Fareed Rizkalla23-Apr-10 8:45 
AnswerRe: HTTP1.1 / HTTP1.0 WinSock2 Pin
Moak23-Apr-10 10:01
Moak23-Apr-10 10:01 
GeneralRe: HTTP1.1 / HTTP1.0 WinSock2 Pin
Fareed Rizkalla23-Apr-10 10:50
Fareed Rizkalla23-Apr-10 10:50 
GeneralRe: HTTP1.1 / HTTP1.0 WinSock2 Pin
Moak23-Apr-10 21:53
Moak23-Apr-10 21:53 
GeneralRe: HTTP1.1 / HTTP1.0 WinSock2 Pin
Fareed Rizkalla24-Apr-10 8:12
Fareed Rizkalla24-Apr-10 8:12 
GeneralRe: HTTP1.1 / HTTP1.0 WinSock2 Pin
Moak24-Apr-10 8:36
Moak24-Apr-10 8:36 
Questionchange the checked state of CMFCRibbonCheckBox object Pin
m_code23-Apr-10 8:25
m_code23-Apr-10 8:25 
QuestionHow to get an Application Instance Number? Pin
Software200723-Apr-10 8:12
Software200723-Apr-10 8:12 
AnswerRe: How to get an Application Instance Number? Pin
«_Superman_»23-Apr-10 8:37
professional«_Superman_»23-Apr-10 8:37 
GeneralRe: How to get an Application Instance Number? Pin
Software200723-Apr-10 8:43
Software200723-Apr-10 8:43 
AnswerRe: How to get an Application Instance Number? Pin
mesajflaviu23-Apr-10 8:45
mesajflaviu23-Apr-10 8:45 
QuestionRe: How to get an Application Instance Number? Pin
Maximilien23-Apr-10 9:07
Maximilien23-Apr-10 9:07 

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.