Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is this function in the windows98 support? Pin
Christian Graus12-Jul-03 18:00
protectorChristian Graus12-Jul-03 18:00 
AnswerRe: Is this function in the windows98 support? Pin
Ryan Binns12-Jul-03 23:36
Ryan Binns12-Jul-03 23:36 
GeneralRe: Is this function in the windows98 support? Pin
Alice8012-Jul-03 23:51
Alice8012-Jul-03 23:51 
GeneralRe: Is this function in the windows98 support? Pin
Ryan Binns13-Jul-03 0:07
Ryan Binns13-Jul-03 0:07 
Questionhow I can insert these unicode characters rightly? Pin
Alice8012-Jul-03 16:54
Alice8012-Jul-03 16:54 
AnswerRe: how I can insert these unicode characters rightly? Pin
Anthony_Yio15-Jul-03 1:16
Anthony_Yio15-Jul-03 1:16 
GeneralRe: how I can insert these unicode characters rightly? Pin
Alice8015-Jul-03 1:37
Alice8015-Jul-03 1:37 
QuestionCan anybody say why no data gets shown? Pin
WREY12-Jul-03 14:23
WREY12-Jul-03 14:23 
Here are portions of my code. The rest of the program is working fine, but at strategic spots I'd like to see what the state of certain values are (shown together in one convenient way).

Where the structure is being initialized, data are already in the variables from which it gets initialized.

======================================

struct IData
{
	char* str;
	char* pO;
	char* pGH;
	char* pIntrm;
	int wrdlen;
	int lvlcnt;
	int ltrcnt;
} idata, *pIData;


// other program code

ostream& operator<< (ostream& outp, const IData IDat)
{
	char Bufr[40] = " ";
	char* Ptr_fmt[] = { pIData->str, pIData->pO, pIData->pGH, pIData->pIntrm };
	int i, Dec_fm[] = { pIData->wrdlen, pIData->lvlcnt, pIData->ltrcnt };

	i  = sprintf(Bufr,   "\tstr:         0x%x\n",	*Ptr_fmt);
	i += sprintf(Bufr+i, "\tOutput:      0x%x\n",	*(Ptr_fmt+1));
	i += sprintf(Bufr+i, "\tGrp Hold:    0x%x\n",	*(Ptr_fmt+2));
	i += sprintf(Bufr+i, "\tInterim:     0x%x\n",	*(Ptr_fmt+3));
	i += sprintf(Bufr+i, "\tWord len:    %d\n",   *Dec_fm);
	i += sprintf(Bufr+i, "\tLevel cnt:   %d\n",	*(Dec_fm+1));
	i += sprintf(Bufr+i, "\tLetter cnt:  %d\n",	*(Dec_fm+2));

	outp<< IDat;
	return outp;
}

// other program code

for(int lvl_cnt=0; lvl_cnt<<wordlen; ++lvl_cnt)
{
		ltr_cnt = ++lvl_cnt;	// adjusting level cnt to act as guage for ltr cnt
		
		pIData->str = str;
		pIData->pO = pOut;
		pIData->pGH = pGH;
		pIData->pIntrm = pIntrm_str;
		pIData->wrdlen = wordlen;
		pIData->lvlcnt = lvl_cnt;
		pIData->ltrcnt = ltr_cnt;
		
		cout<< "\n  ***  " << idata <<endl;

// other program code

                  lvl_cnt--;   // adjusting lvl_cnt back
}

======================================

In the "for" statement, I had to use two "<" signs, because without it the CodeProject editor would not show the rest of the statement.

After a while, things begin to get blurred. So, I thank you for whatever you may see as the reason why nothing gets shown.

Wink | ;)


William

Fortes in fide et opere!
AnswerRe: Can anybody say why no data gets shown? Pin
Michael Dunn12-Jul-03 16:24
sitebuilderMichael Dunn12-Jul-03 16:24 
GeneralRe: Can anybody say why no data gets shown? Pin
WREY12-Jul-03 17:54
WREY12-Jul-03 17:54 
GeneralRe: Can anybody say why no data gets shown? Pin
PJ Arends12-Jul-03 18:03
professionalPJ Arends12-Jul-03 18:03 
GeneralRe: Can anybody say why no data gets shown? Pin
WREY12-Jul-03 18:20
WREY12-Jul-03 18:20 
GeneralRe: Can anybody say why no data gets shown? Pin
Michael Dunn12-Jul-03 18:37
sitebuilderMichael Dunn12-Jul-03 18:37 
GeneralRe: Can anybody say why no data gets shown? Pin
Mike Dimmick13-Jul-03 1:44
Mike Dimmick13-Jul-03 1:44 
GeneralRe: Can anybody say why no data gets shown? Pin
WREY13-Jul-03 4:28
WREY13-Jul-03 4:28 
GeneralProblem by getting new object in GDI+, Help me. Pin
Behzad Ebrahimi12-Jul-03 9:08
Behzad Ebrahimi12-Jul-03 9:08 
GeneralRe: Problem by getting new object in GDI+, Help me. Pin
Neville Franks12-Jul-03 13:02
Neville Franks12-Jul-03 13:02 
GeneralRe: Problem by getting new object in GDI+, Help me. Pin
PJ Arends12-Jul-03 16:30
professionalPJ Arends12-Jul-03 16:30 
Generalpush_back, push_front Pin
DaveE9th12-Jul-03 8:00
DaveE9th12-Jul-03 8:00 
GeneralRe: push_back, push_front Pin
Mike Dimmick12-Jul-03 8:17
Mike Dimmick12-Jul-03 8:17 
GeneralRe: push_back, push_front Pin
DaveE9th12-Jul-03 8:32
DaveE9th12-Jul-03 8:32 
GeneralRe: push_back, push_front Pin
Mike Dimmick12-Jul-03 8:54
Mike Dimmick12-Jul-03 8:54 
GeneralRe: push_back, push_front Pin
DaveE9th12-Jul-03 17:40
DaveE9th12-Jul-03 17:40 
GeneralOffsets and stuff Pin
Anonymous12-Jul-03 7:48
Anonymous12-Jul-03 7:48 
GeneralRe: Offsets and stuff Pin
Mike Dimmick12-Jul-03 8:27
Mike Dimmick12-Jul-03 8:27 

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.