Click here to Skip to main content
15,903,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fastest way to do unix2dos Pin
Chintoo72313-Nov-05 6:26
Chintoo72313-Nov-05 6:26 
GeneralRe: fastest way to do unix2dos Pin
grigsoft13-Nov-05 10:02
grigsoft13-Nov-05 10:02 
AnswerRe: fastest way to do unix2dos Pin
normanS13-Nov-05 19:02
normanS13-Nov-05 19:02 
QuestionHow to get a dynamic created control's dc Pin
paraGOD13-Nov-05 3:55
paraGOD13-Nov-05 3:55 
AnswerRe: How to get a dynamic created control's dc Pin
douglasjordan13-Nov-05 11:46
douglasjordan13-Nov-05 11:46 
GeneralRe: How to get a dynamic created control's dc Pin
paraGOD13-Nov-05 16:25
paraGOD13-Nov-05 16:25 
GeneralRe: How to get a dynamic created control's dc Pin
jhwurmbach13-Nov-05 21:58
jhwurmbach13-Nov-05 21:58 
QuestionBad Loop help please Pin
B.F.13-Nov-05 1:51
B.F.13-Nov-05 1:51 
Hi, I was trying to make a dice app in VC++ 98 for me and my friends to play DnD.
I want the ability to throw the same dice multiple times on a push of the button.
This is what I have come up with:
<br />
void CZmurfDICEDlg::OnD20() <br />
{<br />
 int ret;<br />
 for(int k=0; k < m_E20; k++) //edit box, integer, where I want to set the # of throws<br />
  {<br />
	UpdateData(TRUE);<br />
	m_strET=""; //edit box that get each value at a turn (visible-false)<br />
	srand((unsigned)clock());<br />
	ret=rand()%20+1;<br />
	m_strET.Format("%d  ",ret);<br />
	m_strMessage=m_strMessage+m_strET; //edit box ,the dice throw result can be seen<br />
  }<br />
 UpdateData(FALSE);<br />
}<br />

If I set 20 into m_E20 and push the button for D20, I only get one result, not 20 as I want to.
Any help is more that welcomed
Thanks, Bogdan
AnswerRe: Bad Loop help please Pin
Gary R. Wheeler13-Nov-05 1:55
Gary R. Wheeler13-Nov-05 1:55 
GeneralRe: Bad Loop help please Pin
B.F.13-Nov-05 2:17
B.F.13-Nov-05 2:17 
GeneralRe: Bad Loop help please Pin
Gary R. Wheeler13-Nov-05 2:44
Gary R. Wheeler13-Nov-05 2:44 
GeneralRe: Bad Loop help please (side note) Pin
Gary R. Wheeler13-Nov-05 2:47
Gary R. Wheeler13-Nov-05 2:47 
GeneralRe: Bad Loop help please (side note) Pin
B.F.13-Nov-05 4:37
B.F.13-Nov-05 4:37 
GeneralRe: Bad Loop help please Pin
lklf13-Nov-05 16:51
lklf13-Nov-05 16:51 
AnswerRe: Bad Loop help please Pin
chamilkab13-Nov-05 18:00
chamilkab13-Nov-05 18:00 
Questionproblems with ST_SplitterWnd and CFrameWnd Pin
#937013-Nov-05 1:34
#937013-Nov-05 1:34 
AnswerRe: problems with ST_SplitterWnd and CFrameWnd Pin
Gary R. Wheeler13-Nov-05 2:01
Gary R. Wheeler13-Nov-05 2:01 
GeneralRe: problems with ST_SplitterWnd and CFrameWnd Pin
#937013-Nov-05 4:18
#937013-Nov-05 4:18 
QuestionOPC XML DA Client - Managed C++ Implementation Pin
exetera13-Nov-05 0:38
exetera13-Nov-05 0:38 
QuestionDouble Buffering Pin
Akilez12-Nov-05 22:17
Akilez12-Nov-05 22:17 
AnswerRe: Double Buffering Pin
Jack Puppy13-Nov-05 1:37
Jack Puppy13-Nov-05 1:37 
AnswerRe: Double Buffering Pin
Michael Dunn13-Nov-05 12:31
sitebuilderMichael Dunn13-Nov-05 12:31 
QuestionHow to use _inp and _outp in VC++ Pin
vikas amin12-Nov-05 21:43
vikas amin12-Nov-05 21:43 
AnswerRe: How to use _inp and _outp in VC++ Pin
Gary R. Wheeler13-Nov-05 2:17
Gary R. Wheeler13-Nov-05 2:17 
AnswerRe: How to use _inp and _outp in VC++ Pin
douglasjordan13-Nov-05 15:32
douglasjordan13-Nov-05 15:32 

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.