Home > Back-end >  Old demon in?
Old demon in?

Time:10-20

WideString wstrOutput, wstrWord wstrPinYin;
WstrOutput=WideString (pmorrslt - & gt; PwchOutput);
WstrOutput=wstrOutput. SubString (1, pmorrslt - & gt; CchOutput);

//dividing sentences into words and separate with pinyin
For (int I=0; i{
//read every word or word
WstrWord=wstrInput. SubString (
Pmorrslt - & gt; PWDD [I] wReadPos + 1,
Pmorrslt - & gt; PWDD [I] cchRead);
//read each paragraph pinyin
WstrPinYin=wstrOutput. SubString (
Pmorrslt - & gt; PWDD [I] wDispPos + 1,
Pmorrslt - & gt; PWDD [I] cchDisp);
//
If (wstrPinYin. Length () & gt; 0)
WstrPinYin wstrWord=wstrWord + "(" + +") ";
//output
Memo1 - & gt; Lines - & gt; Add (wstrWord);
}
Online to see some people say that this is your change, but I use test pmorrslt - time & gt; CWDD is empty, no value, then the following for loop won't execute it, and I separate test pmorrslt - & gt; PWDD [I] wReadPos equivalence, prompt error accessing memory, how be to return a responsibility?

CodePudding user response:

No one know?

CodePudding user response:

Pmorrslt is a pinyin class,
To help the top, and other old demon

CodePudding user response:

This is old demon's source code, I guess he may not be tested at the time, I use them, we have a problem, is to help him test, ha ha, later I put a for loop statement annotations, all with their own statements, and Memo1 - & gt; Lines - & gt; Add (wstrOutput); But in this case, the result is all Chinese characters pinyin together, not good-looking, preferably by space separated, I know the old demon for loop function is separated, but haven't been able to execute, because pmorrslt - & gt; CWDD=0

CodePudding user response:

Pmorrslt is what east east, are you sure you didn't create is an object!
Don't question the code of demon elder brother, carefully check their own,

CodePudding user response:

This front has been defined, I have a complete source of old demon, the above is part of the, I have been telling, old demon know, in front of the variable is defined, it did not show, but you misunderstood, not the code I wrote, just for loop doesn't perform all the old demon, so I just ask, I said just now, in my own statement that already can display the results, just don't separate, together, the old demon for loop is to separate, but can't perform, bad.

CodePudding user response:

See, not solve,

CodePudding user response:

Oh, that? Even you couldn't solve it, that trouble, I thought it was your code, you should be able to easily solve the, ah, that can only be together as a close for a while, actually cannot be separated,

CodePudding user response:

Pass by, help under the roof,
Can try catch under control ()?

CodePudding user response:

Thank you for your attention, not catching problem now, I'm debugging, but can't figure out, how pmorrslt - & gt; CWDD=0

CodePudding user response:

Use friso points word, coupled with the can play the role of participle plus sound,

CodePudding user response:

Send me a copy of the demon elder brother of the code, I help you see! [email protected].
  • Related