Hi guys,
On Delphi 2009, on a new VCL project:
procedure TForm1.FormCreate(Sender: TObject);
var
Handle: THandle;
begin
Handle := loadlibrary('oci.dll');
if Handle <> 0 then
begin
try
ShowMessage('Success');
finally
FreeLibrary(Handle);
end;
end
else
ShowMess...
Hello,
Hopefully somebody will be able to help. In my Delphi 7 application small percentage of users report errors when printing and I'm trying to resolve this with last of them. I'm slightly limited when it comes to testing (as user is physically distant and we are working it out via e-mail), but I get some additional information from ...
I'm finishing an internship at a company and have just been thrown onto this project for the last month where the program is built upon an engine that they "failed" to buy the source code for. Now I've been given the task of finding out why it is failing, on only certain conditions and customer feedback hasn't been great. The main develo...
Hi are there any nice videos or other resources on how to use Interfaces in delphi?
I am after the basics and more advanced stuff.
...
Not certain if this will get much response due to the newness of Windows 7 and its beta release, but here goes...
Some caveats;
1). I have not torn into my code yet
2). The app works great in Vista and below
3). Uses MMSystem for multimedai playing of mp3 and cds.
I have an application that plays music CDs (cda) and mp3s that works ...
I am attempting to convert a Dephi 2006 project to Delphi 2009 (Delphi 2006 is on Drive C Delphi 2009 is on Drive D).
On the main form there is a DataSource1: TDataSource; and a Table1: TTable;
In OnFormShow the table filename is set to:
TableFilename := IncludeTrailingPathDelimiter( MyProfileFolder ) + 'Delphi 2009\Projects\Adirondac...
A certain form in our application displays a graphical view of a model. The user can, amongst loads of other stuff, initiate a transformation of the model that can take quite some time. This transformation sometimes proceeds without any user interaction, at other times frequent user input is necessary. While it lasts the UI should be dis...
This is kind of a follow-up question to this. When I'm debugging threads in Delphi (BDS 2006 with update 2) my IDE often hangs, e.g. when the execution runs into a breakpoint that I have set after the app started.
Do you have similar experiences? What do you do about it?
...
i want to mark a method as obsolete, but Delphi 5 doesn't have such a feature.
For the sake of an example, here is a made-up method with it's deprecated and new preferred form:
procedure TStormPeaksQuest.BlowHodirsHorn; overload; //obsolete
procedure TStormPeaksQuest.BlowHodirsHorn(UseProtection: Boolean); overload;
Note: For this hy...
I know how to get the System memory use using GlobalMemoryStatusEx, but that tells me the what the entire OS is using.
I really want my program to report how much memory it alone has allocated and is using.
Is there any way within my Delphi 2009 program to call either a Windows function or maybe some FastMM function to find out the me...
Hey,
I'm writing an app that supposed to copy a bunch of files from one place to another.
When I'm using TFileStream for the copy it is 3-4 times slower than copying the files with the OS.
I also tried to copy with a buffer, but that was too slow aswell.
I'm working under Win32, anyone got some insights on this matter?
...
I am looking for a list of all file types that can be associated to a Delphi project (all versions of Delphi), more specifically all file types that should be under source control.
This site doesn't mention Delphi 2009 so I'm not sure if there may be new file types.
Is there maybe such a list directly from Codegear?
Putting all the...
Is there any documentation on cross thread communication in Delphi? How can I send message to the thread that doesn't have a window?
...
In Delphi, is normal do this:
ob = TObject.create;
try
//code
finally
ob.free;
end;
I wonder if that is similar in Obj-c.
...
Delphi 2007/2009 odd question here:
It's possible, based on a component property defined in design-time, to include files in linking or leave them ?
Example: If I leave SomeProperty true, when compiling, the unit SomeUnit will be included into my project. Otherwise it will not be included.
My second approach to this problem is to depl...
I thought there was something in GExperts to do this, but I can't see it if there is.
I have to change the SCALED property (from the default of TRUE to FALSE) in each form in a project that contains about 100 different forms. Because the default value of SCALED is TRUE, it doesn't actually appear as a line in the .DFM file (when viewing...
Hi
I'm an ASP.NET virgin and want to try creating an ASP.Net Application using SQL Server at the back end.
I can't locate a single example application or code for doing this. Anyone have any pointers?
TIA
...
I have an Aggregate field in a client data set and I use a function to get the aggregate value, if the client data set is empty the function should return 0.
if I do this:
if MyClientDataSet.AggregateField.IsNull then
Result := 0
else
Result := MyClientDataSet.AggregateField.Value;
when the client data set is empty the else pa...
Help
I am busy making changes to a type library in a Datasnap project.
How do I copy and paste text with in the type library editor ?
P.s. I am using BDS2006
EDIT 1
Is there a way to chnage the Type Library without using the TLB Editor ?
EDIT 2
Is there any way to do a copy and paste in the 'Attributes' and 'Users' screens of type...
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
QUE...