Click here to Skip to main content
15,898,790 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: mysql problem wuth date Pin
Laxman Auti7-Jun-06 19:26
Laxman Auti7-Jun-06 19:26 
GeneralRe: mysql problem wuth date Pin
p_7-Jun-06 20:21
p_7-Jun-06 20:21 
QuestionTo call crystal report and display in PDF Format Pin
vinushru7-Jun-06 18:29
vinushru7-Jun-06 18:29 
AnswerRe: To call crystal report and display in PDF Format Pin
Hamid_RT7-Jun-06 19:21
Hamid_RT7-Jun-06 19:21 
GeneralRe: To call crystal report and display in PDF Format Pin
vinushru7-Jun-06 20:54
vinushru7-Jun-06 20:54 
Questionhelp with WritePrivateProfileString Pin
fury 847-Jun-06 17:44
fury 847-Jun-06 17:44 
AnswerRe: help with WritePrivateProfileString Pin
Laxman Auti7-Jun-06 18:25
Laxman Auti7-Jun-06 18:25 
Questionhow to change pixel size to centimeter size? Pin
samfromcn7-Jun-06 17:29
samfromcn7-Jun-06 17:29 
AnswerRe: how to change pixel size to centimeter size? Pin
_AnsHUMAN_ 7-Jun-06 18:07
_AnsHUMAN_ 7-Jun-06 18:07 
AnswerRe: how to change pixel size to centimeter size? Pin
Michael Dunn7-Jun-06 19:22
sitebuilderMichael Dunn7-Jun-06 19:22 
Questionproblem with setwindowtext() Pin
swatgodjr7-Jun-06 17:00
swatgodjr7-Jun-06 17:00 
AnswerRe: problem with setwindowtext() Pin
Hamid_RT7-Jun-06 19:04
Hamid_RT7-Jun-06 19:04 
GeneralRe: problem with setwindowtext() Pin
swatgodjr7-Jun-06 19:44
swatgodjr7-Jun-06 19:44 
GeneralRe: problem with setwindowtext() Pin
Steve Echols7-Jun-06 20:06
Steve Echols7-Jun-06 20:06 
GeneralRe: problem with setwindowtext() Pin
Hamid_RT7-Jun-06 20:13
Hamid_RT7-Jun-06 20:13 
GeneralRe: problem with setwindowtext() Pin
Steve Echols7-Jun-06 21:42
Steve Echols7-Jun-06 21:42 
GeneralRe: problem with setwindowtext() Pin
Hamid_RT7-Jun-06 22:02
Hamid_RT7-Jun-06 22:02 
GeneralRe: problem with setwindowtext() Pin
Hamid_RT7-Jun-06 20:09
Hamid_RT7-Jun-06 20:09 
GeneralRe: problem with setwindowtext() Pin
swatgodjr7-Jun-06 20:27
swatgodjr7-Jun-06 20:27 
QuestionSTL sort problem Pin
_anil_7-Jun-06 15:56
_anil_7-Jun-06 15:56 
Hi in my application I use the bellow statement.
<br />
std::sort(m_nOrgPtSortX.begin(), m_nOrgPtSortX.begin() + 17, SortInX);<br />


its working fine.
But when I change 17 to 18 or more than 18 the application halts there.
like the bellow statements making problem.

std::sort(m_nOrgPtSortX.begin(), m_nOrgPtSortX.begin() + 17, SortInX);<br />
std::sort(m_nOrgPtSortX.begin(), m_nOrgPtSortX.end(), SortInX);


m_nOrgPtSortX is a vector.

Please suggest any idea.

One more thing is that, when I use the vector I used push_back funtion.
So the size should increase accordingly. But the capacity() funtion shows 2048 element. and when I push more than that data it fails. I solved it by resize(5000). But couldn't find the reason for the fail.Unsure | :~

Regards
Anil
AnswerRe: STL sort problem Pin
Christian Graus7-Jun-06 16:16
protectorChristian Graus7-Jun-06 16:16 
GeneralRe: STL sort problem [modified] Pin
_anil_7-Jun-06 16:47
_anil_7-Jun-06 16:47 
GeneralRe: STL sort problem [modified] Pin
Christian Graus7-Jun-06 16:59
protectorChristian Graus7-Jun-06 16:59 
GeneralRe: STL sort problem [modified] Pin
_anil_7-Jun-06 17:06
_anil_7-Jun-06 17:06 
QuestionReturning a reference... check my work, please Pin
MALDATA7-Jun-06 15:40
MALDATA7-Jun-06 15:40 

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.