Questions tagged [delphi-2007]

Delphi 2007 is a specific version of Delphi. Delphi 2007 was released in March 2007, and was available as a standalone product or as part of RAD Studio 2007.

Delphi 2007 is a specific version of Delphi.

Delphi 2007 codename is Spacely.

Delphi 2007 was released in March 2007, and was available as a standalone product or as part of RAD Studio 2007.

Delphi 2007 was the last version that used the 8-bit AnsiString as the default string type.
Many components that do not support Unicode will work unchanged on Delphi 2007.

Delphi 2007 was preceded by Delphi 2006 and succeeded by Delphi 2009.

839 questions
19
votes
3 answers

Increasing testability, when coding with Bold for Delphi framework

Background I work in a team of 7 developers and 2 testers that work on a logistics system. We use Delphi 2007 and modeldriven development with Bold for Delphi as framework. The system has been in production about 7 years now and has about 1,7…
Roland Bengtsson
  • 5,058
  • 9
  • 58
  • 99
19
votes
9 answers

What is the best way to make a Delphi Application completely full screen?

What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ? I am looking for something similar to what IE does when you hit F11. I wish…
SamH
  • 1,238
  • 3
  • 17
  • 26
17
votes
1 answer

How do I get TAnimate's Common AVIs to work on Vista and Win7?

I have a Delphi 2007 application that has a TAnimate control with a FindFile Common AVI. It works perfectly when the application is run on Windows XP, but nothing ever appears on Windows 7. I've heard it now requires its own thread, but I am not…
Mick
  • 13,248
  • 9
  • 69
  • 119
17
votes
5 answers

Clear a TList or a TObjectList

I'm a bit puzzled of what to use for storing objects in a list. Until now I have used TList and freed each item in a loop. Then I discovered TObjectList that do this automatically from Free. Then I saw this from the doc of TList.Clear: Call Clear…
Roland Bengtsson
  • 5,058
  • 9
  • 58
  • 99
16
votes
1 answer

Why does this string have a reference count of 4? (Delphi 2007)

This is a very Delphi specific question (maybe even Delphi 2007 specific). I am currently writing a simple StringPool class for interning strings. As a good little coder I also added unit tests and found something that baffled me. This is the code…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
16
votes
1 answer

Patching instance class requires base class to be in the same unit?

I am using following function to patch an instance class of an existing object. The reason is that I need to patch a protected function of a third party class. procedure PatchInstanceClass(Instance: TObject; NewClass: TClass); type PClass =…
Daniel Marschall
  • 3,739
  • 2
  • 28
  • 67
16
votes
3 answers

How to hide an application from taskbar in Windows 7?

I would like to hide an application from the Windows 7 taskbar. I want to make something like a toolbar on the edge of the screen which does certain things when the user clicks on it, but I don't want it to show in the taskbar, since its a thing…
Marks
  • 3,613
  • 5
  • 31
  • 46
16
votes
2 answers

Writing a string to a TFileStream in Delphi 2010

I have Delphi 2007 code that looks like this: procedure WriteString(Stream: TFileStream; var SourceBuffer: PChar; s: string); begin StrPCopy(SourceBuffer,s); Stream.Write(SourceBuffer[0], StrLen(SourceBuffer)); end; I call it like this: var …
JosephStyons
  • 57,317
  • 63
  • 160
  • 234
15
votes
4 answers

Can I Use a .NET DLL in "Delphi 2007 for Win32"?

Is it possible to use a .NET DLL in Delphi 2007 for Win32? I've tried to import the DLL in the same way I've done for an ActiveX component, but it doesn't appear to work (Component Menu -> Import Component -> Import .NET Assembly. Is it possible…
Dave
  • 5,436
  • 11
  • 48
  • 74
15
votes
1 answer

Delphi interface implements

I would expect that the reference counting should work on the outer aggregating object in an interface implementation. If I can refer to another example: Clarity in classes implementing multiple interfaces (alternative to delegation): Here is a…
Gryffe
  • 413
  • 1
  • 3
  • 9
15
votes
2 answers

How do I determine if a unit has been compiled into a Delphi program?

I want to be able to determine if a particular unit has been compiled into a Delphi program, e.g. the unit SomeUnitName is part of some of my programs but not of others. I would like to have a function function IsSomeUnitNameInProgram:…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
14
votes
2 answers

Delphi 2007 and XE2: Using NativeInt

Since Delphi XE2, NativeInt has new meaning. At 32 bits runtime, NativeInt is 32 bits integer. At 64 bits runtime, NativeInt is 64 bits integer. I have some source files that use third party DLL (both 32 and 64 bits). These DLL use 32 and 64 bits…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
14
votes
9 answers

Inter-process communication

I have two applications: X and Y. X is the main application and it handles a lot of XML files. It has a history of more than 10 years and half a dozen techniques have been used to store, process and handle these XML files.Y is a debugging tool that…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
14
votes
3 answers

What is the best way to autostart an action after OnShow event?

I have a small application that most of the time have an action behind a Start-button that should be triggered from the commandline parameter /AUTORUN. If that parameter is missing the user could also press it manually. My question is where should I…
Roland Bengtsson
  • 5,058
  • 9
  • 58
  • 99
13
votes
4 answers

How read the content of file to a string in delphi XE

I'm migrating my application from delphi 2007 to delphi xe, but i having problems with a procedure which read a file (ascii) and store the content in a string this is the code which work ok in delphi 2007 function LoadFileToStr(const FileName:…
DelphiNewbie
  • 769
  • 3
  • 9
  • 14
1
2
3
55 56