cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
c_hemant14
Level 2

Junk character are seen on displaying the RTFfile in install shield 2013

Hi All,

We have mimic the code for SdLicense2Rtf to display the custom rtf file but in the display window we see ?????? instead of the content in rtf file content.
This is working properly in the earlier install shield 2010.

Is there something we need to modify so that we display the content properly.

Look like below code is having some problem
list = ListCreate(STRINGLIST);
if (ListReadFromFile(list, szFinalFile) == 0)
then
nLines = ListCount(list);
i = 1;
nResult = ListGetFirstString(list, szAddThis);
while (END_OF_LIST != nResult)
if (i != nLines) then
szNewString = szNewString + szAddThis + "\r\n";
else
szNewString = szNewString + szAddThis;
endif;
i = i + 1;
nResult = ListGetNextString(list, szAddThis);
endwhile;
//MessageBox(szNewString, WARNING); // message i think szNewString doesn't have junk character but there is some problem in send message
nResult = SendMessage(hRichEditCtrl, WM_SETTEXT, 0, &szNewString);
endif;

Thanks in Advance.....
Labels (1)
0 Kudos
(1) Reply
GrantK
Level 7

It is unclear as to why you are recieving this error.
Have you tried recreating your RTF file to see if this helps to resolve the issue?

Additionally, try creating a test project and adding your rft file into the support files to have an isolated case.
0 Kudos