delphi-6

Delphi 6 IDE and apps working on windows 7 64 bit?

為{幸葍}努か 提交于 2019-12-05 23:12:06
I have a commercial app that is developed with Delphi 6. Ive been developing under windows xp 32 bit, but am about to get a new development machine with Windows 7 64 bit. Will Delphi 6 install and work in the new environment ? The developed app also uses the BDE, on vista I couldnt get it to work at all, which meant my customers had to remain on windows xp. I dont want this to be the case for windows 7. Does the BDE have any problems working with windows 7 ? (or is it best to use virtualisation ) My development machine has been running Windows 7 64-bit for almost a year now, with UAC enabled.

What's the difference between public and published class members in Delphi?

浪子不回头ぞ 提交于 2019-12-05 08:40:28
问题 Please could someone explain me what's the difference between public and published class members in Delphi? I tried to look at Delphi help and I understand that these members have the same visibility, but I don't understand very well how they differ and when should I use published members instead of public ones. Thanks a lot. 回答1: Public properties and published properties have the same visibility, as you already stated. Published properties are included in RTTI, public properties aren't. 回答2

How do I compile my Delphi project on the command line?

青春壹個敷衍的年華 提交于 2019-12-04 09:23:11
问题 Has anyone ever managed to compile their Delphi 6 & 7 (NOT any Delphi > 7 ) projects using the command line? All the instructions I see are not very clear on what exactly needs to go where! Am looking for step-by-step kind of instructions. Answers should be limited to Delphi 6 & 7: I understand Delphi 2006 and > uses MSBuild which is far much easier. Links are also high appreciated. Gath 回答1: This is not difficult to do. I have a standard Delphi 5 install on my machine here, and when I open a

How to exclude DBGrid.Column.FieldName in .pot file

蹲街弑〆低调 提交于 2019-12-04 06:46:55
I made an application with Delphi 6. After that I extracted a .pot file with all the strings to translate. The problem is that there are strings that don't have to be tranlated, and if translated will generate problems. Une of this is TDBGrid.Columns[x].FiedlName I tryed to put this lines into the ggexclude.cfg file, but they doesn't work. # exclude all occurences of the specified class # and property in all DFM files in or below the # path where "ggexclude.cfg" is in [exclude-form-class-property] TDBGrid......FieldName TDBGrid.....FieldName TDBGrid....FieldName TDBGrid...FieldName TDBGrid.

Aquire Singleton class Instance Multithread

戏子无情 提交于 2019-12-04 04:55:16
问题 To get the instance of the class with Singleton pattern, I want use the following function: This is a sketch interface uses SyncObjs; type TMCriticalSection = class(TCriticalSection) private Dummy : array [0..95] of Byte; end; var InstanceNumber : Integer; AObject: TObject; CriticalSection: TMCriticalSection; function getInstance: TObject; implementation uses Windows; function getInstance: TObject; begin //I Want somehow use InterlockedCompareExchange instead of CriticalSession, for example

Indy 10 - IdSMTP.Connect raising “Could not load SSL library.”

拈花ヽ惹草 提交于 2019-12-03 10:48:40
Here is my configuration: IdSMTP1.Host := 'smtp.gmail.com'; IdSMTP1.Port := 587; IdSMTP1.UseTLS := utUseExplicitTLS; IdSMTP1.IOHandler := IdSSLIOHandlerSocketOpenSSL1; IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvTLSv1; I've downloaded the OpenSSL from here , both libeay32.dll and ssleay32.dll are in the same folder of my application. The Indy version is: 10.0.52 The following command is working on my machine: telnet smtp.gmail.com 587 How to properly connect in a TLS enable SMTP server, in my case Gmail, using Indy? It seems like IdSSLOpenSSLHeaders.Load could not find the address to

How do I compile my Delphi project on the command line?

孤者浪人 提交于 2019-12-03 02:00:24
Has anyone ever managed to compile their Delphi 6 & 7 (NOT any Delphi > 7 ) projects using the command line? All the instructions I see are not very clear on what exactly needs to go where! Am looking for step-by-step kind of instructions. Answers should be limited to Delphi 6 & 7: I understand Delphi 2006 and > uses MSBuild which is far much easier. Links are also high appreciated. Gath This is not difficult to do. I have a standard Delphi 5 install on my machine here, and when I open a command prompt, navigate to the $(DELPHI)\Demos\Threads directory and enter dcc32.exe thrddemo.dpr the

Passing nil as a parameter in place of a TComponent

*爱你&永不变心* 提交于 2019-12-02 07:39:26
I've come across some code that's throwing an exception (EIntfCasterror Cast not supported) when it passes nil to a constructor expecting a TComponent, like so: obj := SomeClass.Create(nil); The unit this is in does not contain a form and even TForm requires a TComponent be passed to it when you call its constructor. What should I pass in place of nil if anything exists or is there a way to get it to accept nil. Thank you. Also, I don't have the source code which calls the method this is in, or I would just have it pass the form it has access to. EDIT: Fixed the code example. EDIT2: Fixed the

Aquire Singleton class Instance Multithread

。_饼干妹妹 提交于 2019-12-02 02:16:11
To get the instance of the class with Singleton pattern, I want use the following function: This is a sketch interface uses SyncObjs; type TMCriticalSection = class(TCriticalSection) private Dummy : array [0..95] of Byte; end; var InstanceNumber : Integer; AObject: TObject; CriticalSection: TMCriticalSection; function getInstance: TObject; implementation uses Windows; function getInstance: TObject; begin //I Want somehow use InterlockedCompareExchange instead of CriticalSession, for example if InterlockedCompareExchange(InstanceNumber, 1, 0) > 0 then begin Result := AObject; end else begin

Convert hex str to decimal value in delphi

丶灬走出姿态 提交于 2019-12-01 17:13:30
I've got a problem to convert a string representation of an hex value in integer value with Delphi. for example: $FC75B6A9D025CB16 give me 802829546 when i use the function: Abs(StrToInt64('$FC75B6A9D025CB16')) but if i use the calc program from Windows, the result is: 18191647110290852630 So my question is: who's right? me, or the calc? Does anybody already have this kind of problem? whosrdaddy In fact 802829546 is clearly wrong here. Calc returns a 64bit unsigned value ( 18191647110290852630d ). Delphi Int64 type uses highest bit as sign: Int := StrToInt64('$FC75B6A9D025CB16'); Showmessage