Home > Back-end >  A few characters in the code, please help me to look at how to convert a string into pansichar, and
A few characters in the code, please help me to look at how to convert a string into pansichar, and

Time:09-19

.
Solved, someone leave a message and stickers to,,,
And some special characters, in excess of the GBk pansichar after treated with c + + Dll function returns, the Delphi tracker is shown as a garbled, track each byte found in fact not, conversion switch, also found utf8string and ansistring assignment compiler does not automatically convert? Need forced conversion, utf8string assignment between the string and the compiler will automatically convert, previously encountered similar problems, too, are so!!!!!
several times is always stuck in sick man, small problems with the indians' , now when debugging use there also crashed, couldn't find a sure why, in many ways,
And track the Delphi system source code, add a breakpoint, stopped moving the mouse to variables, want to have a look at the debug hint, the results immediately crash, thought it was a coincidence, repeated countless times, as long as add breakpoints, the mouse on a move to the variable freezes, tried , but remember which system unit file, I'm sure xe debugger must be a big problem!
And once found the program to run up a cause, exit directly, sometimes line sometimes not, thought it was their own problems, finally ruled out bit by bit, finally found unexpectedly is 32 bit environment of Chinese path should have bugs!!!!! it s also out of this problem,,,,
And time that the manufacturer of the , simple SQL statements insert data lost characters! , wrote a lot of public function of the FDA, the result all invalid, foreigners don't know if there is a place called China? ,
Recently want to try to use the webservice, don't know how about the performance, now think or not to gamble,,,,
There are CTRL + F design now harder to use , when they can't find the pop-up prompts, determine the closed focus directly into the editing environment, always in accordance with the customs of d5, enter directly to knock, the code line breaks, delphi5 with very conveniently, search interface together, to find all the files or the current TAB shortcut keys to switch back and forth, the current page can not find a direct to find all the files, the design is CTRL + shift + F, good difficult,,
you spit slot, is to help to help, this I'm going crazy, this what talent!!
Help out after the mouse to select text, CTRL + c to copy code Alt + TAB to switch back to Delphi, CTRL + v to paste, whichcan, found not kao! The contents of the clipboard old directly to paste in the code, they only have to use the right mouse button to copy, now have obsessive-compulsive disorder, according to a few times more mouse is at ease, just worry about the copy,
There are 64 opendialog under open how so slow, 32-bit how no problem?
much good tools, let they doing to the toys,
Walk see BBS common several large, what all understand what all solve bad, answer questions will evade, see the message more upside down, is some not commonly seen in the large and medium size without saying people will solve the problem directly, this section in a question is not as good as direct monopoly, with Delphi off the monopoly can not work,

CodePudding user response:

Don't have to Chinese general program directory, the code read failure easily,

CodePudding user response:

So much... Kind of...

CodePudding user response:

Feel awful, D7 is better

CodePudding user response:

reference juno_393 reply: 3/f
feel awful, or D7 good


He is D5 with comfortable...

CodePudding user response:

D7 is essence, XE is shining,

CodePudding user response:

The DelphiGuy, try bug again, your mouth should be slower than brain step

CodePudding user response:

refer to 6th floor lantianbaiyuan1 response:
the DelphiGuy, try the bug again, your mouth should be slower than brain step


Your mouth all ran to the zentraedi, brain also stay in monotremes, I wonder you so-called BUGs occur in another universe, still exists in your imagination, caused by your mental BUGs?
To test your so-called first BUG:
also found utf8string and ansistring assignment compiler does not automatically convert? Need forced conversion, utf8string assignment between the string and the compiler will automatically convert, previously encountered similar problems, too, are so!!!!!
"It is better to direct monopoly"? It is better to keep your eyes and see how UTF8String statement: UTF8String=type AnsiString (65001);//system. Pas
Obviously UTF8String codepage is designated as 65001 AnsiString (utf-8), how can " assign utf8string and ansistring compiler does not automatically translate? Need coercing "? It specifies the codepage is not white?
A casual test:
 
Var
S1: utf8string;
S2: ansistring.
S: a string;
The begin
S1:='ABC this is a test xyz';
Writeln (s1, '- & gt; Length=', length (s1));
S2:=s1;
Writeln (s2, '- & gt; Length=', length (s2));
S:=s2;
Writeln (s, '- & gt; Length='length (s));
end;

Since D2009 is:
ABC this is a test xyz - & gt; Length=26
ABC this is a test xyz - & gt; Length=20
ABC this is a test xyz - & gt; Length=14

CodePudding user response:

This even if you test? so next life also can not find the problem,,
I mentioned the other problems? Chinese path and the FDA 32-bit environment, did you test?
Such a high number, solving, see you how much skill

CodePudding user response:

By several xe debugger problem, if you have encountered debugging crash or breakpoint not try the following methods:
1, do not press F8 when the mouse didn't in the IDE, program and direct IDE when switching back and forth easily press F8, very easy, a
2, use the one that circulated online piracy? The two exe from win10 own firewall, try to get rid of! Experience more than a year before and after the problem, to now also not very clear what is the main reason to cause, is now a win10 genuine and comodo firewall, now rarely crashed,
3, when debugging the program well but breakpoint sudden failure? Don't worry, normal running F9 CTRL + F2 debugging is not end, breakpoint failure when press the red reset button once, back to step back, if the program did not exit and green button and a red button will display the breakpoint can be validated, if not reset again back to step back,
4, back and forth several times over a breakpoint cannot be added again? The above method doesn't work, save the environment, shut down and restart xe, breakpoint can add again, a lot of trouble,,,,,,,
The following two is not a problem the debugger, is the problem that the designer:
5, have met didn't do anything when writing code, suddenly jumped out of an error box, prompt similar memory error, immediately after pop up a screen seems to have to right-click menu like flowers?? Don't worry about it, determine the closure can run normally, next time again I cut a figure,
6, is there any use flowpanel gridpanel relativepanel several new control? You opened another validation procedures, and gradually design all kinds of layout, lines, the relative position,,,, and so on after satisfied, then the interface and paste your results to the project form, wait for you will be shut out of memory error box endlessly to jump,,,, tips let you send the error information to the factory, only the background forced end, open the project still go wrong again, found that the unit files directly on the paste is broken,,,,?? Design good interface cannot be used directly and returning the form file that has been damaged,,, you could submit the VSS,,, manual reset DFM file, complex, can you finally to do form, awkwardly, and hate??????? This design,,,,


CodePudding user response:

CodePudding user response:

refer to the eighth floor lantianbaiyuan1 response:
you that even if the test? nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related