|
snoop82 wrote: How to create several files of integers to be used to test sorting.several sizes, for example, size 20, 200, and 2000. Make files that are in order, in reverse order...
Do you have access to Excel?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Well if you have a pseudo random generator and it's always initialized with the same seed than you will always generate the same sequence of numbers!!!
Thus it's possible to do the performance comparison test you are taking about.
---
Yours Truly, The One and Only!
devmentor.org
Design, Code, Test, Debug
|
|
|
|
|
Hi i am working on a dialog box in a MFC application in VC 6.0 I want to use a simple button on which there is no text written instead a bmp image is drawn. what i actually need is that the image of button will change on mouse over,mouse down,mouseup etc. I need help of you people to solve this problem.
Thanks
|
|
|
|
|
You must draw the different images yourself in the OnPaint() function and check your conditions. Search for ownerdrwan buttons (XPButton)
This is the way not the solution...
Greetings from Germany
|
|
|
|
|
Try to find 'BtnST' class on this site. All you have to do is place a button on dialog, delete all text and in your .h file(wich you added to yours project) declare them as 'CButtonST' (a.g. CButtonST m_btnMY). It take this much code in yours cpp:
m_btnMY.SetIcon(IDI_ICON10);
m_btnMY.SetFlat(TRUE);
m_btnMY.SetTooltipText(_T("some text"));
and that is it!!!
You could do a whole lot more... just reed the article and take at look at sample!
|
|
|
|
|
Fine idea, but I was not the asker.
Greetings from Germany
|
|
|
|
|
I'm sorry, I didn't mean to send this to you. When I clicked replay I meant generally to original post. Once again sorry!
|
|
|
|
|
Thaks a lot dear fellow
your suggestion really helped me a lot.
looking forward for further collaboration.
Regards
|
|
|
|
|
Happy I could help!
Be aware of an a little bug I discovered, tooltips working fine before you press the button, but after that (when whatever code you run under the button press ends) tooltips do not appear any more so you have to put them back:
void CMyDlg::OnBtnMY() <br />
{<br />
m_btnMY.SetTooltipText(_T("some text"));<br />
}<br />
|
|
|
|
|
|
can you please tell me which visual studio you are working in ?
Also check the font of your editor, may be it got changed.
Do a test -
Copy some text from vc editor which contains " and ?.
Paste it in notepad. Now check if notepad shows the original characters.
Also do the reverse of it, Copy text from notepad and paste in vc editor.
Are the characters got changed now also ?
|
|
|
|
|
|
Good to hear that 
|
|
|
|
|
|
hey !
this is a forum, not a chat.
you don't have to repost the same question[^] again. just wait !
delete this and wait until someone knows your answer.
and don't forget GOOGLE and MSDN are your friends
|
|
|
|
|
You were faster :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Nelek wrote: You were faster
that'w what makes me a CodeProject Fixture
|
|
|
|
|
I heared that google is a friend but does MSDN new friend?;P
|
|
|
|
|
You already have a message below with the same question. If you have answered which format are you using, you don't have to ask againg including the format. Just wait for an answer in your first message.
Read the good answer of toxcct or mine to the message of snoop82
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
1) you spam the boards, so, this question have been marqued as SPAM.
2) you abuse the forum, so, your first question have been marqued so too.
3) use a correct english. people here are not all native english and it's already dificult enough to express themselves in a language that's not their mother tongue, so don't force them to guess which words you're typing.
4) no one here answer for money. we all belong to this forum for the pleasure, so we're not obliged to answer.
5) ask a specific question. don't expect us to do your homework.
6) use the html tags provided to format the messages correctly. a code sample should be placed in <pre></pre> blocks. use <code></code> to highlight som words if you like.
7) don't post a huge piece of code like you did. no one will read it, and worst, you give us a bad side of yours.
8) when you have an error, provide the relevant error message.
9) and never forget to tell what you already tried to go around the problem you got...
SO, please, delete these 2 questions immediately, and re ask like you would expect someone to ask a question if you had to answer it
-- modified at 5:44 Thursday 20th September, 2007
>>Thank you.
|
|
|
|
|
|
Programm3r wrote: 10) And never forget to thank the person you helped you
seems like he did[^]...
|
|
|
|
|
Yes... but... without reading all[^] :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
|
Hi.
I set my dialog color to black with GetStockObject( BLACK_BRUSH ); , then I put edit control with different 'BkColor'
CDC *pEditDC=m_edtInfo.GetDC();<br />
pEditDC->SetBkColor(RGB(230,251,251));<br />
pEditDC->SetTextColor(RGB(255,255,255));<br />
ReleaseDC(pEditDC);
When my dialog shows at first (before my edit control has no input string) I don't even see it (all dialog is black)! When I populate edit control m_edtInfo.SetWindowText('some text') text is displayed and edit ctrl's BkColor is shown but only behind the text not on all edit ctrl rectangle.why?
How to get all edit ctrl's region being filled with BkColour, even at first?
Thanks!
P.S.
My apology for my language.
|
|
|
|