Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ in Visual Studio.NET Pin
Cedric Moonen6-Sep-05 3:02
Cedric Moonen6-Sep-05 3:02 
GeneralRe: C++ in Visual Studio.NET Pin
J Liang6-Sep-05 3:24
J Liang6-Sep-05 3:24 
GeneralRe: C++ in Visual Studio.NET Pin
_rubinho_6-Sep-05 4:18
_rubinho_6-Sep-05 4:18 
AnswerRe: C++ in Visual Studio.NET Pin
Neagoe Gabriel6-Sep-05 3:03
Neagoe Gabriel6-Sep-05 3:03 
GeneralRe: C++ in Visual Studio.NET Pin
J Liang6-Sep-05 3:31
J Liang6-Sep-05 3:31 
Questioncl.exe using hyperthreading? Pin
Maarten Kools6-Sep-05 2:38
professionalMaarten Kools6-Sep-05 2:38 
AnswerRe: cl.exe using hyperthreading? Pin
Saurabh.Garg6-Sep-05 3:18
Saurabh.Garg6-Sep-05 3:18 
QuestionInserting string in an html file using vc++/mfc... help. Pin
babyspidy6-Sep-05 2:22
babyspidy6-Sep-05 2:22 
Ok guys. still can't find solutions with this, I already try the solutions that lhayes00 posted but still can't get me to the right path.

For the specific example, here's I wanted to do with a given html code:

HTM CODE: (This is only an example)
-------------------------
<code>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<title>&#35069;&#21697;&#24773;&#22577;&#65374;&#65313;&#65296;&#65297;&#65374;</title>
</head>
<body>
<a name="top" id="top"></a>
<h1>&#65313;&#65296;&#65297;&#35069;&#21697;</h1>

<ul>
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428; TEST ONLY
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428; TEST ONLY
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428;
<li> &#12354;&#12428;&#12371;&#12428; TEST ONLY
<li> &#12354;&#12428;&#12371;&#12428;
</ul>

<br>
<div align="right">
<a href="#top">&#8593;&#12506;&#12540;&#12472;&#12398;&#20808;&#38957;&#12408;&#25147;&#12427;</a><br>
</div>
</body>
</html></code>
---------------------------

*With the given data array that I parsed:
CUIntArray xRow = { 13, 15, 17, 19, 21, 23, 16, 20, 23 }; // refer to the line numbers of html code.

CUIntArray yCol = { 7, 7, 7, 7, 7, 7, 15, 24, 16 }; // refer to the column numbers of html code.

CUIntArray nStrLen = { 4, 4, 4, 4, 4, 4, 9, 9, 9 }; // refer to the length of the word/string to be processed.

From that data input, the edited html should look like this.

EXPECTED OUTPUT HTML CODE:
----------------------------
<code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<LINK href="./include/image.css" type=text/css rel=stylesheet>
<title>&#35069;&#21697;&#24773;&#22577;&#65374;&#65313;&#65296;&#65297;&#65374;</title>
</head>
<body>
<DIV class=menubar>&#12452;&#12513;&#12540;&#12472;&#34920;&#31034;&nbsp;&nbsp;&nbsp;&nbsp; <A accessKey=C href="javascript:window.close()">
[&nbsp;&#38281;&#12376;&#12427;&nbsp;(C)&nbsp;]</A> </DIV>
<a name="top" id="top"></a>
<h1>&#65313;&#65296;&#65297;&#35069;&#21697;</h1>

<ul>
<li> <SPAN class=source-mark>&#12354;&#12428;&#12371;&#12428;</SPAN>
<li> &#12354;&#12428;&#12371;&#12428;
<li> <SPAN class=source-mark>&#12354;&#12428;&#12371;&#12428;</SPAN>
<li> &#12354;&#12428;&#12371;&#12428; <SPAN class=source-mark>TEST ONLY</SPAN>
<li> <SPAN class=source-mark>&#12354;&#12428;&#12371;&#12428;</SPAN>
<li> &#12354;&#12428;&#12371;&#12428;
<li> <SPAN class=source-mark>&#12354;&#12428;&#12371;&#12428;</SPAN>
<li> &#12354;&#12428;&#12371;&#12428; <SPAN class=source-mark>TEST ONLY</SPAN>
<li> <SPAN class=source-mark>&#12354;&#12428;&#12371;&#12428;</SPAN>
<li> &#12354;&#12428;&#12371;&#12428;
<li> <SPAN class=source-mark>&#12354;&#12428;&#12371;&#12428;</SPAN> <SPAN class=source-mark>TEST ONLY</SPAN>
<li> &#12354;&#12428;&#12371;&#12428;
</ul>

<br>
<div align="right">
<a href="#top">&#8593;&#12506;&#12540;&#12472;&#12398;&#20808;&#38957;&#12408;&#25147;&#12427;</a><br>
</div>
<DIV class=menubar>&#12452;&#12513;&#12540;&#12472;&#34920;&#31034;&nbsp;&nbsp;&nbsp;&nbsp; <A accessKey=C href="javascript:window.close()">
[&nbsp;&#38281;&#12376;&#12427;&nbsp;(C)&nbsp;]</A> </DIV></body>
</html></code>
----------------------------------

Considering that the xRow array varies, it's not incremental.
I tried the solutions above but still I'm stuck on this.

Any help is much appreciated.

Thanks a lot...

With great power comes a great responsibility.
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
Jörgen Sigvardsson6-Sep-05 11:54
Jörgen Sigvardsson6-Sep-05 11:54 
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
babyspidy6-Sep-05 14:40
babyspidy6-Sep-05 14:40 
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
Jörgen Sigvardsson7-Sep-05 9:57
Jörgen Sigvardsson7-Sep-05 9:57 
GeneralRe: Inserting string in an html file using vc++/mfc... help. Pin
babyspidy7-Sep-05 20:53
babyspidy7-Sep-05 20:53 
QuestionVectors :( Pin
Eytukan6-Sep-05 2:05
Eytukan6-Sep-05 2:05 
AnswerRe: Vectors Pin
toxcct6-Sep-05 2:22
toxcct6-Sep-05 2:22 
GeneralRe: Vectors Pin
Eytukan6-Sep-05 4:02
Eytukan6-Sep-05 4:02 
GeneralRe: Vectors Pin
Eytukan6-Sep-05 4:05
Eytukan6-Sep-05 4:05 
AnswerRe: Vectors :( Pin
Roland Pibinger6-Sep-05 8:03
Roland Pibinger6-Sep-05 8:03 
GeneralRe: Vectors :( Pin
Bob Stanneveld6-Sep-05 8:40
Bob Stanneveld6-Sep-05 8:40 
GeneralRe: Vectors :( Pin
markkuk6-Sep-05 12:14
markkuk6-Sep-05 12:14 
QuestionMFC Menu checked on Doc/View app? Pin
lordgreg6-Sep-05 0:58
lordgreg6-Sep-05 0:58 
AnswerRe: MFC Menu checked on Doc/View app? Pin
Bob Ciora6-Sep-05 7:51
Bob Ciora6-Sep-05 7:51 
GeneralRe: MFC Menu checked on Doc/View app? Pin
lordgreg6-Sep-05 21:47
lordgreg6-Sep-05 21:47 
QuestionRe: MFC Menu checked on Doc/View app? Pin
David Crow6-Jan-11 6:41
David Crow6-Jan-11 6:41 
QuestionMultiple selections in CTreeCtrl Pin
uma_kanth_k6-Sep-05 0:24
uma_kanth_k6-Sep-05 0:24 
GeneralRe: Multiple selections in CTreeCtrl Pin
prasad_som6-Sep-05 0:55
prasad_som6-Sep-05 0:55 

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.