Delphi

Delphi 7 - Save to a Specific .INI Files Name

若如初见. 提交于 2019-12-31 07:52:29
问题 I modified the MasterMan82's TIniFile code to read and write multi values from & to TEdit/TComboBox and TMemo. Forgive my vague questions, my english is not good. So, what I mean is: I have a couple of .INI files, A.ini, B.ini, C.ini ....and so on. I just store A.ini as a variable in the code. It is not possible to put all the file names in the code. When I opened A.ini, make some changes, click SAVE to save any changes made, and success!. Of course, because A.ini has been defined in the code

Delphi 7 - Save to a Specific .INI Files Name

▼魔方 西西 提交于 2019-12-31 07:52:04
问题 I modified the MasterMan82's TIniFile code to read and write multi values from & to TEdit/TComboBox and TMemo. Forgive my vague questions, my english is not good. So, what I mean is: I have a couple of .INI files, A.ini, B.ini, C.ini ....and so on. I just store A.ini as a variable in the code. It is not possible to put all the file names in the code. When I opened A.ini, make some changes, click SAVE to save any changes made, and success!. Of course, because A.ini has been defined in the code

Delphi: function to convert a string in a url-ready one [duplicate]

耗尽温柔 提交于 2019-12-31 07:31:25
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Standard URL encode function? I need to transofrm a Delphi string (like TEdit.Caption ) in a "url capable" string. I need this because I will open google maps programmatically like in TEdit I write "High Street, Sydney" and then i would like to open the browser at maps.google.com/maps?q=High+Street+Sidney Is there a ready function to do this, also to parse accents? 回答1: You can add IdURI unit from Indy to your

Delphi AES library (Rijndael) tested with KAT Vectors

ぐ巨炮叔叔 提交于 2019-12-31 07:16:08
问题 for these 2 libraries, Delphi Encryption Compendium v 5.2 TurboPower Lockbox v 2.07 I tested their Rijndael DCB/CBC algorithm with "AES Known Answer Test (KAT) Vectors" obtained at NIST website (http://csrc.nist.gov/groups/STM/cavp/index.html) But, both of these libraries failed the tests. Not sure if it was my testing that has error, has anyone tested them before as well? I am looking for a Delphi Rijndael library that is able to pass the KAT Vectors test. Does anyone know of any such

Install font in firemonkey

老子叫甜甜 提交于 2019-12-31 07:04:45
问题 How Can I use embedded font or install new fonts in my firemonkey application? I tried this solution but WM_FONTCHANGE is not defined in FMX! I want to use custom font in my application, how I can do this? 回答1: I followed the instructions here, and they were of some help. I have a few extra hints that may help, The two inclusions that you will need to make this work is WinAPI.Windows and WinAPI.Messages. If you put these inclusions at the start of your "uses" clause, you're unlikely to have

Install font in firemonkey

青春壹個敷衍的年華 提交于 2019-12-31 07:04:10
问题 How Can I use embedded font or install new fonts in my firemonkey application? I tried this solution but WM_FONTCHANGE is not defined in FMX! I want to use custom font in my application, how I can do this? 回答1: I followed the instructions here, and they were of some help. I have a few extra hints that may help, The two inclusions that you will need to make this work is WinAPI.Windows and WinAPI.Messages. If you put these inclusions at the start of your "uses" clause, you're unlikely to have

Install font in firemonkey

一曲冷凌霜 提交于 2019-12-31 07:04:06
问题 How Can I use embedded font or install new fonts in my firemonkey application? I tried this solution but WM_FONTCHANGE is not defined in FMX! I want to use custom font in my application, how I can do this? 回答1: I followed the instructions here, and they were of some help. I have a few extra hints that may help, The two inclusions that you will need to make this work is WinAPI.Windows and WinAPI.Messages. If you put these inclusions at the start of your "uses" clause, you're unlikely to have

Background Worker Delphi

为君一笑 提交于 2019-12-31 06:59:27
问题 I would like to prepare asynchronous process for procedure in Delphi Borland 2006 do you know how? application.ProcessMessages; dm001.Proc.Close; dm001.Proc.Parameters.Clear; dm001.Proc.ProcedureName:='[dbo].[EXAMPLE]'; dm001.Proc.Parameters.AddParameter.Name:='@idEXAMPLE'; dm001.Proc.Parameters.ParamByName('@id').DataType:="example"; dm001.Proc.Parameters.ParamByName('@id').Value:="example"; dm001.Proc.Open; Example in C# private void bw_DoWork(object sender, DoWorkEventArgs e) {

Delphi 7, TFileStream cant open files with special characters

最后都变了- 提交于 2019-12-31 06:28:20
问题 This line: TFileStream.Create(fileName, fmOpenRead or fmShareDenyNone); drops an exception if the filename contain something like ñ 回答1: You are, ultimately calling CreateFileA , the ANSI API, and the characters you use have no ANSI encoding. The only way to get beyond this is to open the file with CreateFileW , the Unicode API. You might not realise that you call CreateFileA , but that's how the Delphi 7 file stream is implemented. One easy way to solve your problems is to upgrade to the

Delphi 7, TFileStream cant open files with special characters

早过忘川 提交于 2019-12-31 06:28:06
问题 This line: TFileStream.Create(fileName, fmOpenRead or fmShareDenyNone); drops an exception if the filename contain something like ñ 回答1: You are, ultimately calling CreateFileA , the ANSI API, and the characters you use have no ANSI encoding. The only way to get beyond this is to open the file with CreateFileW , the Unicode API. You might not realise that you call CreateFileA , but that's how the Delphi 7 file stream is implemented. One easy way to solve your problems is to upgrade to the