Delphi

Including Delphi Type Libraries in repository (SVN)?

左心房为你撑大大i 提交于 2020-01-05 03:28:23
问题 What is the best way to save a Delphi Type Library in SVN. The file changes every time you compile the Application The file is not saved in a readable form of AscII It is very difficult to work out what changes have been made from one version to the next This is a major problem when more than one person is changing the file QUESTIONS: 1) Should one save an exported ‘IDL’ file in the version control ? 2) Can one covert an ‘IDL ’ into a Delphi type library If so how ? 3) What are the best

Including Delphi Type Libraries in repository (SVN)?

霸气de小男生 提交于 2020-01-05 03:26:11
问题 What is the best way to save a Delphi Type Library in SVN. The file changes every time you compile the Application The file is not saved in a readable form of AscII It is very difficult to work out what changes have been made from one version to the next This is a major problem when more than one person is changing the file QUESTIONS: 1) Should one save an exported ‘IDL’ file in the version control ? 2) Can one covert an ‘IDL ’ into a Delphi type library If so how ? 3) What are the best

Empty string in Delphi / Windows combo box causes access exception

自闭症网瘾萝莉.ら 提交于 2020-01-05 03:23:09
问题 I've got a Delphi 7.0 application that throws a memory access exception / message box every time it writeln's an empty string from the string list associated with a combo box: csvstrlst := combobox1.Items; csvstrlst.clear; csvstrlst.add(''); //problem csvstrlst.add('a'); //no problem csvstrlst.add(''); //problem csvstrlst.add('b'); //no problem //throws memory access messages (I think the writeln writes a line though) for n := 1 to csvstrlst.Count do begin writeln(out_file,csvstrlst.strings[n

Is there a way to do normal logging with EureakLog?

删除回忆录丶 提交于 2020-01-04 14:37:27
问题 I am using (and old version of) EurekaLog. It is great for logging exceptions, but is there a way to make it just log things normally? Or is it just not meant for that? 回答1: Chris already mentioned our logging tool SmartInspect (thanks!), I just wanted to add that we also partnered with the EurekaLog guys to provide a direct integration with EurekaLog via a special memory log protocol: Integrating SmartInspect and EurekaLog The memory protocol allows you to write your log messages to memory

Delphi function generic

烈酒焚心 提交于 2020-01-04 14:15:07
问题 I would like to create a generic function. I'm novice in generic. I've 3 private lists of different type. I want a public generic method for return 1 item of the list. I've the code below. (I have it simplifie) TFilter = class private FListFilter : TObjectList<TFilterEntity>; FListFilterDate : TObjectList<TFilterDate>; FListFilterRensParam : TObjectList<TFilterRensParam>; public function yGetFilter<T>(iIndice : integer) : T; .... function TFilter .yGetFilter<T>(iIndice : integer) : T; begin

Set method of TPicture property doesn't get called when the form is created

我的未来我决定 提交于 2020-01-04 14:13:01
问题 Here's my component overall structure: My Component property Categories: TCollection (of TCategory) TCategory property Icon: TPicture read FIcon write SetIcon; property Example: Integer read FExample write SetExample; (Other category properties...) (Other properties...) In the Object Inspector of the IDE, I choose a picture and it gets serialized successfully (I checked it in form view as text). I set a breakpoint on SetIcon method and when I compile and run the application, it doesn't get

Delphi Chromium Local Storage

好久不见. 提交于 2020-01-04 13:48:11
问题 I am using Delphi Chromium Embedded DCEF3. If I run my application locally I am able to store data into Local Storage and retrieve it. If I close the application and run it again, the data is gone because Delphi Chromium Embedded does not seem to retain the data between sessions. Everything works fine if I run the application in Chrome and I know that is because Delphi Chromium Embedded DCEF3 uses files to store information. Do you know how to retain local storage data between sessions? Thank

TAdoquery date format

流过昼夜 提交于 2020-01-04 12:50:14
问题 I am Java developer. I have some old program in Delphi. In old version they work with mdb . I fixed it for connection with SQL Server. All SQL queries are implemented with TAdoQuery . qryTemp.SQL.Text:='select sum(iif(ComeSumm>0,comesumm,0)),sum(iif(lostSumm>0,lostsumm,0)) from cash '+ 'where (IdCashClause is null or idcashclause<>8) '+ ' and cashNum='+IntToStr(i)+ ' and CashType=0'+ ' and format(PayDate,"dd/mm/yyyy")=format('''+DateToStr(Date)+''',"dd/mm/yyyy") '; The program throws an

How is logback's “prudent mode” implemented?

*爱你&永不变心* 提交于 2020-01-04 12:18:01
问题 The prudent mode in logback serializes IO operations between all JVMs writing to the same file, potentially running on different hosts. In other logging frameworks, logging to a central TCP (or JMS) appender seems to be the only solution if output from many loggers should go to the same file. As I am using a Delphi library which is based on log4j and also can not log to the same file from different instances of the same applications (on a terminal server), it would be interesting to know how

How is logback's “prudent mode” implemented?

泪湿孤枕 提交于 2020-01-04 12:16:54
问题 The prudent mode in logback serializes IO operations between all JVMs writing to the same file, potentially running on different hosts. In other logging frameworks, logging to a central TCP (or JMS) appender seems to be the only solution if output from many loggers should go to the same file. As I am using a Delphi library which is based on log4j and also can not log to the same file from different instances of the same applications (on a terminal server), it would be interesting to know how