447 Topics

Member Avatar for
Member Avatar for Morten Brendefu

Dear knowledgeable ones. I started on a project to be able to use a smart card and a smart card reader in order to limit access to a program. I had some sample code written in Visual Basic, and wanted to translate this to Delphi instead, something I think I …

Member Avatar for pritaeas
0
815
Member Avatar for Morten Brendefu

I did an experiment regarding sorting of 256.000 random "names" using TListBox component. A friend of mine say that TListBox is faster than my code at sorting, so I wanted to test this out of curiosity. Method of testing. When I have created 256 thousand random textstrings, each 6 characters, …

Member Avatar for TrustyTony
0
2K
Member Avatar for TrustyTony

I did this code to compare to Delphi code in Delphi forum [URL="http://www.daniweb.com/software-development/pascal-and-delphi/threads/357771"]TListBox and sorting[/URL] which ran in my computer compiled in free Lazarus environment at time 7,235 s for generate and insert to listbox, 13,265 s sorting the listbox.

0
579
Member Avatar for Krefie

Hi guys/gals Ok here is my problem, when importing data from excel using ADO, delphi doesn't seem to be able to import mixed column values...e.g. the column is formatted to integer and the integer values correctly import into delphi, but the same column contains string values it imports nothing or …

Member Avatar for Wolfgan
0
161
Member Avatar for Morten Brendefu

I am designing a lot of TCheckBox at runtime, and uses mathematical formulas for placing these in columns and rows afterwards on a form. I assign an on click event that is exactly the same on all of them, and everything work, except... Color. My OnClick event is made like …

Member Avatar for Wolfgan
0
2K
Member Avatar for ReaperUser101

Hi everyone I'm trying to connect and display data in a TDBGrid (component) from an .mdf (made in sql) and connect it to a Delphi application. the .mdf is on the desktop and my databases name is Attach. If anyone has any clues or advice please let me know! Many …

Member Avatar for Wolfgan
0
132
Member Avatar for DelphiGuy

Hello guys, basically I have two Delphi applications which I want to communicate and work with each other, the only problem is I don't know how. Can anyone help me create a as simple as possible programs so that when I press a button in the first program, it would …

Member Avatar for DelphiGuy
0
1K
Member Avatar for KenAs

Any ideas on detecting the current version of the MySQL ODBC driver? Currently I am reading the registry to obtain the version: [code=delphi] Function MySQLVersion:String; Var TR : TRegistry; SL : TStringList; I : Integer; Begin Result := 'ODBC 3.51'; // Default version SL := TStringList.Create; TR := TRegistry.Create; TR.RootKey …

0
120
Member Avatar for Zumla

Hello, I am currently using Delphi Prism to try and extract file properties. Below is the code I am currently using which should work, however, the compiler generates an error: Error 1 (PE190) "DSOFile.OleDocumentProperties" is an interface and cannot be instantiated C:\Users\Zumla\Desktop\Comp4\.Net Project\Computing4\Computing4\Main.pas 114 63 Computing4 Help would be much …

0
157
Member Avatar for ccdsystems

We have a Delphi app that performs user authentication using the activeds.dll library. However, when running on a 64-bit server, even though the WOW64 processing thunks the library to use the psuedo-32-bit version, we're consistently getting an app crash when attempting to use the library. Any helpful suggestions? Thanks

0
119
Member Avatar for Morten Brendefu

A "normal" Delphi snippet: [CODE]Procedure help_me1(Sender: TObject); BEGIN {100 lines of code} END; Procedure help_me2(Sender: TObject); BEGIN {100 lines of copy and paste code} END;[/CODE] [COLOR="Green"]How can I make this so that I end up with ONE procedure with 100 lines of code?[/COLOR] [CODE]Procedure much_reuseable_code(choice:BYTE); BEGIN {100 lines of code} …

Member Avatar for Morten Brendefu
0
194
Member Avatar for Zumla

Hi, Does anyone know a simple way of extracting file information such as that shown in the details tab of file properties? I am new to Delphi and I don't have much experience, codes on the internet which I have found are not very helpful and only successfully extract file …

0
165
Member Avatar for ReaperUser101

Hi everyone Im trying to take my SQl and "SCRIPT" it to a .sql file(accomplished) and add it to my Delphi(accomplished) and then [U]connect them[/U] and show the data in a TDBGrid but seem to be battling. The .sql file adds and creates the Database in delphi but I don't …

Member Avatar for pritaeas
0
241
Member Avatar for Fudgey

Hi Everyone, I am having some trouble with the libmysql.dll file in Delphi 7. When I try to connect to a database with the dbexpress MySQL driver, i get the error "Unable to load libmysql.dll". I have tried the following to resolve my problem: [LIST] [*]installing different versions of MySQL …

Member Avatar for Simon180
0
494
Member Avatar for _Ada_

This is a trivial question that Im having a blonde moment over. Been a while since I did any serious programming, Ada, Pascal, C etc etc I have two forms created at design time. Form1 and Form2. Form 1 has a button which when clicked should open Form 2 Could …

Member Avatar for Wolfgan
0
73
Member Avatar for tucode

HI..I'M DEVELOPING AN APPLICATION USING DELPHI. NOW, I AM CONVERTING MY APPLICATION TO SERVICE TYPE BUT IT HAS ERROR. THE ERROR IS IN THIS CODE "Application.Exename". NOW I JUST WANNA ASK, WHAT IS THE EQUIVALENT OF "Application.Exename" IN SERVICE? THIS CODE IS WORKING ONLY IN APPLICATION TYPE BUT NOT IN …

Member Avatar for pritaeas
0
82
Member Avatar for tsbrownstone

I am attempting to run a delphi 7 developed application on a windows 7 64bit laptop. I've placed the redistributables in the system32 folder, like always. the application has been installed in the program files (x86) directory (it didn't work at all under the program files directory) when I go …

Member Avatar for tsbrownstone
0
335
Member Avatar for TRCSR

I have a program for data acquisition and process control. I use TeeChart for real time plotting of data. I also have a legend window on top of the chart. I can print or save to disk the TeeChart, but would prefer to print/save the entire screen including the legend …

Member Avatar for dlhale
0
229
Member Avatar for tucode

hi,is there a delay function in delphi?coz' i dont want to use sleep because sleep is not doing right it hangs the program.

Member Avatar for Wolfgan
0
66
Member Avatar for MarkHolm

This seems to work well until I try to create the 11th button. Any suggestions? [CODE] procedure TForm1.FormClick(Sender: TObject); var nb: TButton; begin Inc(n); nb := TButton.Create(Self); nb.OnClick := ButtonClick; SetLength(ca, n); ca[n] := nb; ca[n].Left := 8; ca[n].Top := (((n - 1) * nb.Height) + 8); ca[n].ParentWindow := Form1.Handle; …

Member Avatar for Wolfgan
0
402
Member Avatar for max_22

hi!I have a problem. There's the Access database embedded into dbrid using ADO. In db there is a list of goods,quantity and countries where goods were produced Now I have to build a diagram for db, for example for countries. It works quite well but the diagram shows EVERY good, …

0
79
Member Avatar for Pundia

Hi, I want to sort a TStringList but not by the strings in it, but by the Objects. Here's my code: [CODE]var i : integer; iCount : integer; idxFound : integer; someText : string; s : TStringList; oneWord : string; aux : integer; begin someText := memo_txtfile.text; oneWord := ''; …

Member Avatar for Pundia
0
825
Member Avatar for pritaeas

SetAutoSubClass() has been deprecated in newer versions of Delphi. Can anyone tell me what to replace it with ? I cannot find it in the Delphi 2009 OLH, nor in the VCL source (Forms).

Member Avatar for pritaeas
0
139
Member Avatar for GAME
Member Avatar for ChaosKnight11

Hi, I have a fancy animated GIF loader that I want to use in projects, but the problem is that the image is only 48x22. Is there some way I can tile the image horizontally to lengthen it? The only solutions I found on the web was with bitmap images. …

Member Avatar for pritaeas
0
117
Member Avatar for DrRodge

If programA starts Delphi programB, is there any way that programB can determine whether it was started by programA or by some other program?

Member Avatar for Wolfgan
0
103
Member Avatar for Crossbow888

Hi, New to programming. I have three Editboxes and a button - I would like to know how to make Button1.Enabled := true when all editboxes have at least one character of input and := false when even just one of the editboxes has no imput in it - is …

Member Avatar for Wolfgan
0
99
Member Avatar for hariharans87

Hi, I have PIC32MX795F512L. I have used the "USB Host - MCHPUSB - Generic Driver Demo - PIC32 USB Starter Kit II.mcp" Firmware. I am very new to Delphi. So I have copy and paste the code from [URL="http://www.sixca.com/delphi/article/microchip_usb.html"]http://www.sixca.com/delphi/article/microchip_usb.html[/URL] It is working fine. I want to use the UPDATE_LED (change …

Member Avatar for pritaeas
0
178
Member Avatar for pritaeas

I'm in the process of converting a legacy app from D5 to D2009. I'm getting errors on AnsiToNative, NativeToAnsi (both DBTables) and DbiOpenSPParamList (BDE). Apparantly the parameters for these functions have changed. Does anyone here have a ready example on how I should use these in D2009 ? I was …

0
105
Member Avatar for ChuckNZ2002

I hope that you folks can help? I have ten IP cameras strategically located around my property. I capture video from these cameras with no problems. The cameras have the ability to pan and tilt, if I send commands to them. I can send something like the following to the …

Member Avatar for ChuckNZ2002
0
234

The End.