delphi

How to put a relative path for a DLL statically loaded?

Hello every body: I have a DLL made in Delphi 7/Windows XP that I want to statically load in a host application on Windows (made in Delphi, too). I am using this line of code: procedure Prepare_HTML_Email(var MailMessage : TIdMessage; const FileAddress, aDetail, aAlarmType : String); stdcall; external DLL_ADDRESS; where DLL_ADDRESS mu...

FastMM, stack trace memory for leaks in dynamicly loaded DLL, compiled with runtime packages.

Hi, I'm using FastMM together with JCL Debug info to trace memory leaks in my application. However I have plugins which are dlls compiled in Delphi, both dlls and main application use common runtime packages. Now, when I'm shutting down the application, it generates memory leaks report in text file which is fine, but it contains stack tr...

JVCL 2.10 and Delphi 2010

Did you try using JVCL 2.10 with Delphi 2010? I have Delphi 7 project that heavily uses DB components from that library and want to move it to new Delphi. I know that migration from JVCL 2.10 to newest JVCL version will be very problematic, so it would be better if Delphi 2010 worked with 2.10. do you have any experience? ...

Compiling Twice with Delphi 6 and getting the same checksum on the binary

For the purposes of binary / source code verification, i'd like to be able to make two compiles on the same computer 2 weeks apart and have the binaries be identical and thus pass some checksum test. So far I've found that most likely the timestamp will be written by the compiler into the binary. I can work around this by doing the com...

Is an update to D2010 really meaningful

I am trying to migrate my own projects to delphi 2010. But it seems to be very difficult. I use TntControls for old projects. If I remove this library, some runtime functions must be re-implemented by myself. For instance: convert UnicodeString to a specified code page. The "SizeOf", "Length", FillChar() still confuse me. Compiler wil...

How to attach an event to IHTMLDocument2 link elements in Delphi?

I'm using this code to get all the links from an IHTMLDocument2: procedure DoDocumentComplete(const pDisp: IDispatch; var URL: OleVariant); var Document:IHTMLDocument2; Body:IHTMLElement; Links:IHTMLElementCollection; i:integer; tmp:IHTMLElement; begin try Document := (pDisp as IWebbrowser2).Document AS IHTMLDocument2; ...

Is there any better way to add license/copyright header in Delphi .pas source file?

Each Delphi's VCL source file has header like this: {*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 1995-2010 Embarcadero Technologies, Inc...

How to call a function/procedure asynchronously in Delphi (Without components)

I am trying to run a function or procedure in Delphi asynchronously, but without using a component, is there a way to do it with delphi core functions? ...

Hide the Recent Documents List inside Ribbon Application Menu in Delphi 2010?

Hi... I am using Delphi 2010 to implement an Application Menu for my ribbon control... but there is a recent documents list (or at least the title of it) on the right hand side of it... Is it possible to hide this list and put something else there instead, like I am thinking of a list of available functions... Will this violate the te...

Reading Unicode data from DB2 via ADO and ODBC

From my application written with Delphi 2009, I am reading from and writing to an IBM DB2 database using ADO, the ODBC Provider for ADO, and ODBC: Application -> ADO (Win32) -> ODBC-Provider for ADO -> ODBC -> (net) -> DB2 (Windows) Now, my application need to store unicode data. So I set my database codepage to UTF-8. Delphi handles s...

Looking for a local database for D2009+

I'm trying to update a legacy app that does all its data storage in a hacked-together system of BDE Paradox files. The program works pretty well, under certain narrow conditions, but it has serious performance issues. I'd like to try and improve things by updating to a better database system. What I need is a local database, preferably...

Will Datasnap be appropriate for up to 8 non-communication intensive bi-directional multiplayer game?

I am building a small multipliplayer which will need the following: it must be written in Delphi must support Internet connection (not only LAN) work over HTTP support some encryption of the packets (it may be custom) be able to send commands to the server be able to receive responses from the server be able to connect up to 8 players ...

problem subclassing TTreeNode in delphi

i'm writing a delphi 2009 app that uses a TTreeView on a docking panel. i saw i could make big simplifications in my app if i subclassed the TTreeNode. the tree view it's on is placed on a docking panel. TInfoTreeNode=class(TTreeNode) private // remember some stuff public end; procedure TfraInfoTree.tvInfoCreateNodeClass(Sender: TC...

InstallAware problem with Delphi 2010

Hi Everyone, I am trying to create an installation disk with InstallAware Express for my Delphi 2010 application. I have selected (checked) CodeGear Database Express12 CodeGear Visual Component Library 12 for Application Runtime. When I try to build it, I will get an error message Error during build: No files matching pattern "C:\...

How do i compile my delphi project on the command line?

Guys, Has anyone ever managed to compile there Delphi 6 & 7 (NOT any Delphi > 7 ) project using the command line? All the instructions i see are not very clear on what exactly need to go where! Am looking for step by step kind of instructions. Answers should be limited to Delphi 6 & 7, i understand Delphi2006 and > uses MSBuild which...

Can I build a Delphi multi language project from the command line?

Using Delphi 2009 (or higher) and the ITE (Internal Translation Manager), how can I build the language projects from the command line? The projects are for example Project\Languages\DEU\Project_DEU.bdsproj Project\Languages\ENG\Project_ENG.bdsproj Theses bdsproj files are not MSBuild projects, so do I have to call DCC32 and pass all ...

How to implement a callback method within DLL (Delphi / TJVPluginManager + TJvPlugin)

Hello, I'm building an application working with plugins. I'm using the excellent JVCL plugin framework. I first started to use package plugin. It worked like a charm but had a big drawback : the needs to give runtimes bpl (23Mo). So I switch to DLL plugin. I need to call a method (procedure having 3 parametes) from hostapplication but ...

Audio Device, change Speaker setup

Hi Guys, I want to change from my program the speaker setup, which is under speaker settings / advanced... section. I tried to find maybe there is some sort of registry entry but no luck till now :| Any Ideas ? Thanks a lot ! ...

Running down a 'stack overflow' bug

I have an application written in Delphi W32 that is in beta. On the test PC, it haphazardly kicks out a 'stack overflow' message after a few hours of use. How can I trap the error and find the cause? Can I increase the Stack size? ...

Interface for Open Cascade in Delphi

I am trying to find a way to use Open Cascade(www.opencascade.org) - 3D Modeling Technology in one of our software which is written in Delphi. I did manage top find an ActiveX which supports Open Cascade, but on trying it I did not like the visual quality of rendered images. The ActiveX lib can be found here (www.ewcad.com). I am not ...