delphi

SynEdit - where to find community?

Hi, I'm looking for some forum/mailing list where can I find active SynEdit users community? Official forums on SourceForge looks like dead... ...

Integrate Delphi ISAPI DLL into an ASP.NET web application

Hi guys, We have all the code in Delphi and it is hard to create a new ASMX / SVC File directly in .NET because it uses encryption and weird stuff :) as it would take around 2 weeks to convert and to test... Because of that we agreed that will keep the Delphi code and find a way to communicate between the ASP.NET application and this D...

SynEdit change markers (yellow or green line on gutter)...

Hi, does anyone know how to add "change markers" functionality to SynEdit? I mean those lines, green for modified & saved, yellow for modified & unsaved parts of document... here is an example from other editor: ...

Is there a way to edit default build settings?

Every time I create a new project in Delphi 2009, it loads up two sets of build settings: Debug and Release. Problem is, the Debug settings are all wrong. It has optimizations on, which makes the debugger lose local variables, and Debug DCUs off, which keeps me from tracing into the VCL. Is there any way to edit the original template ...

Delphi 4 Unable to open a .dpr file

Hello ! How are you? I was trying to open an .dpr file from my IDE , it closes all the open .pas files ,but does not open .dpr file.I tried 1) file/open project 2) cntr+F11 3)clicking open on the file. None of them work.Kindly help me in figuring out how to run an .dpr file. Thanks and Regards Vas ...

How to build a resource library from rc files in Delphi 2009?

I need to build a resource DLL from a supplied rc file. Here's what I did upto Delphi 2007: library ResourceTest; {$R '..\..\src\Media\TestBitmaps.res' '..\..\src\Media\TestBitmaps.rc'} {$R *.res} begin end. Compiling this project would create the res file from the rc file and link it in the final DLL. In Delphi 2009 it doesn't wor...

Does the Illinois Mega Million lottey ticket have the number encoded on its barcode

I am writing a delphi program that scans an Illinois lottery ticket and puts the numbers in a database to keep track of winning tickets. The barcode for the tickets does not seem to be readable; is there anywhere I can get a driver or component (preferably VCL) that can help me in this matter? ...

How to check in delphi the OS version? Windows 7 or Server 2008 R2?

I always used to check the windows versions by their major/minor build numbers. Strangely enough, Windows 7 and Server 2008 R2, both return the same major/minor version number combination. Confirm this by typing ver into a command prompt ...

How to tile a Image in TImage?

Hello, How do I tile a image in a Timage in Delphi? Why I need it: Instead of creating more TImages at runtime,I could create one and store my image there knowing that it will be 'fit' until it reaches TImage's height and width. Please suggest any ideas to do this. Thank you! EDIT: Please note,I'm not asking for streching the image,...

Delphi & unit testing: Include tested source in project, or just use it?

I have a project group with the main project and a test project. When writing unit tests for a class in the main project, do you include the source file in the test project, or do you put the path to it in the search path? Why do you do one over the other? Are there any best practices on this? UPDATE: It looks like including is the p...

Delphi 4 error:- file not found:'htmlcons.inc'

Hello ! I was trying to run/compile/build/ the Project (Delphi 4). I tried out this method also http://www.cryer.co.uk/brian/delphi/error_fnfCDO_TLB.htm It consistently shows to an error "file not found:'htmlcons.inc'" at wits end ,what to do? Kindly help. Thanks and Regards -Vas ...

How to return a web color constant from a color stored as a string?

//clWebSnow = $FAFAFF; defined in Graphics.pas Listbox1.Items.Add( ColorToString( clRed ) ); Listbox1.Items.Add( ColorToString( clWebSnow ) ); How can you return "WebSnow" as a string to show the color as a color constant as WebSnow? All i can seem to get is '$FAFAFF' as a string with webcolors stored as a string while the StandardCol...

Using table variables from SQL 2008 in Delphi

Switching to SQL 2008 we are using table variables now as parameters for stored procedures. While it's not a problem to use them in .NET, we have some old code in Delphi where we want to switch to these new procedures as well. The problem we cannot find how to set parameters for TADOCommand to table value. ...

How to select and move multiple controls at runtime

Hi, I have created some custom controls (TCustomControl) in Delphi that I can move them at runtime but only one by one. How I can select two or more of these controls, at runtime again, and move them around all together with the mouse? Thank you. ...

How to use a scrollbar on a scrollbox?

Hi, I have to use TScrollbar on a TScrollBox(Yes,it seems bad idea,but I have to) that scrolls the box. This is what I did:I added the scroll on the box ,used Top and Bottom anchors to keep it on track and added this code in the OnScroll event of the ScrollBar: procedure TForm1.ScrollBar1Scroll(Sender: TObject; ...

Does avoiding functions increase the performance?

Here is a little test: function inc(n:integer):integer; begin n := n+1; result := n; end; procedure TForm1.Button1Click(Sender: TObject); var start,i,n:integer; begin n := 0; start := getTickCount; for i := 0 to 10000000 do begin inc(n);//calling inc function takes 73 ms //n := n+1; writing it directly takes 16 ms ...

Unicode filenames with zeos / sqlite

Hi, I need to save data in sqlite databases with user-chosen filenames. This includes unicode filenames. Is there a way to specify this in the Zeos components in Delphi? ...

Why don't I get hotkey underlines in a Delphi TMainMenu

In a Delphi 2007 program I am using a TMainMenu referencing actions in a TAction list. I have prefixed the hotkeys of all main captions with an ampersand: &File | &Edit | Ev&aluate | ... In design view these hotkeys are underlined as I would expect, but when I start the program they no longer are underlined but they work nonetheless. ...

How to have an SSL Certificate installed in an Indy Server and seen as trusted?

Using Delphi 2007, Indy 9 to build a standalone Server working in Secure mode. I used SSLBuddy to generate the certificate request, got a root certificate and a standard certificate from GoDaddy, a MyDomain.crt, (I selected the "other" type as web server). I then used SSLBuddy to generate the key and cert files passed to the TIdServer...

Delphi: Clientdataset: EDatabaseError on .Open; with ProviderName set.

So I'm having this code that processes what the client sends on a pattern. If he sends 'getBENUds', the server sends the DataSet for this table back using the SaveToString method. Then, this is sent to the client. (I'm using Synapse). procedure TTCPSocketThrd.Execute; var s: String; strm: TMemoryStream; ADO_CON: TADOConnection;...