delphi

How to use C++ Classes exported by a dll in Delphi

Hi, is there a way to use C++ classes exported by a win32 dll in Delphi for win32? Are there other ways to archieve similar things (COM, .NET, ...)? ...

Conversion of Delphi code to Java

Does a parser exist for delphi which can be used to convert the delphi code into Java code automatically? Please Help!!! ...

3D graphics in Delphi/Native TForm GUIs

What is the easiest way to do accelerated 3D graphics inside a TForm in Delphi? ...

What is the accepted way to use frames in Delphi?

I was having my usual stroll around SO and bumped on some frames discussions. I'm mainly a Delphi hobbyist and not a professional so I had to learn how to use TFrames my own way witch is: Create a TFrame inside it's unit. Add that unit to the main form Uses clause. Have a private variable of that TFrame's type OnCreate of the form ins...

how to retrieve multidimentional a class element containing multidimentional arrays from an arraylist

Hi, I'm currently working with CodeGear Delphi 2007 under Vista. My application returns out of memory error during some rather heavy calculations. The .exe files grows from 150 Mb to an amazing 2 Gb (! LOL ) Regarding this issue: 1) I'm changing some arrays into arraylist BUT It's giving me some rather difficult issues to re...

How do I get Acrobat Reader Imported into Delphi 2007?

I have imported Acrobat Reader using Components | Import Components. The AcroPdf_TLB unit is created in the Imports directory. When I try to use the AcrobatReader component, as follows ... AcroDoc := TAcroPDF.Create(nil); ... I get an 'Unspecified Error' exception (EOleSysError). Any ideas? Thanks, Pieter. ...

Modifying a string in resource of an exe

How do I modify buffer in following code then save the changes in resource of the executable? I'm looking for something like SetString(handle,index,buffer,size). var hExe : Cardinal; buffer : array [0..4097] of ansichar; begin hExe:=LoadLibraryEx(PAnsiChar(Edit2.Text),0,LOAD_LIBRARY_AS_DATAFILE); LoadString(hExe,65300,buffer,Siz...

EOutOfMemory Creating Large XML Using Delphi

I'm using Delphi to create an XML document from data in a relational database. It tests fine with small datasets, but when I try to expand the size of the data set to production levels it eventually bombs out with an EOutOfMemory exception during node creation. I'm using a TXMLDocument dropped on a form (MSXML as the Vendor), and my cod...

How can I allow a blank value on a lookup field in a TDBGrid?

I have a column in my dbgrid that is based on a lookup field. The problem is that the end user can't set a blank value for the field - they can only select values from the lookup table. How can I allow the end user to delete or 'blank out' a value for the column? ...

Delphi: Invalid XML gets through MSXML validation

I've tried to revrite a JScript example at MSDN in order to validate XML against certain schemas. As a first attmempt, I've used the sl-valid.xml, sl-notValid.xml, and sl.xsd files as used in the example. My code goes as follows: procedure BasicValidation(FileName: string); var XML: IXMLDOMDocument2; begin // Load XML and resolve ...

Delphi - TStoredProc.Close (does it empty the set?)

LEGACY ALERT - This is for Delphi 5 code. (I know it is super old. It is scheduled to be rewritten.... Some day.) I am using the BDE and the TStoredProc object. When I call Close, this normally clears my dataset. However, I am seeing weird things happen so I thought I would ask this question. If I have manually added rows to the da...

Translating code from C++ to Delphi

Hi dudes, I have the next code in C++: for (long i=0; i < num_iter ; i++) { bp->bpgt(data[i%8], &data[i%8][3]); if( bp->mse(&data[i%8][3]) < thresh) break; } where bpgt is a procedure, and mse is a function, thresh is a Double type, data is a bi-dimensional matrix of Double types. void bpgt(double *in,double *tgt); ...

How do I know when I've stopped scrolling a TScrollBar?

I've used some programs with scroll bars that update the linked content while you're still dragging the "thumb", and others that don't until you release the mouse. This implies that there are different types of Windows messages involved here. But all I can find from TScrollBar is an OnScroll event which fires continually while you're d...

DateTimePicker Alignment in Delphi 7

My problem is following: I need to align text inside DateTimePicker component to center. This component however doesn't have Alignment property. This component comes from TCommonCalendar, which also doesn't have this property. Can anybody think of possible solution? Thank you, Tofig Hasanov ...

Code Length in IDE ( w/o modeling support ) versus Code Efficiecy in Compilation in Delphi

So - highly hypothetical question and more like discussion about your coding style and practice you use daily. I will take as example: CodeGear RAD Studio 2009 (sorry to all D7 fans, but Unicode rulles ). I have capability to expand/collapse functions/procedures/records and few other complex data structures, but what if code is lengthy...

Delphi 6 alongside RAD Studio 2009

Hi I need to migrate to RAD Studio and have this installed on a new workstation. At the moment I still need to develop with Delphi 6 until we get all the necessary control updates and sort out the version control. So my question is can I just install Delphi 6 on the same machine with no adverse impact for either product? Thanks in adv...

Can I map Caps Lock to something useful for the Delphi IDE?

OK, so I know I can remap the Caps Lock key in Windows registry, but is there something useful I can map it to in the Delphi 2009 IDE? I was hoping for Code Completion (Ctrl-Space), is there a way to map the single Caps Lock key to a Ctrl-key combination? ...

How do I make a control that can't contain other controls?

I'm designing a custom control, and every time I have it highlighted in the form designer and then pick another control from the control palette, the new one ends up inside my control, as if it were a TPanel or TGroupBox. This isn't what I want, so how can I keep it from happening? ...

SEO friendly URLs with Delphi ISAPI

Hi My customer wants me to get rid of the dll and ? & characters in the url and use SEO friendly urls. How can I go about this URL - rewrite? Currently I have something like: http://www.ultimateholidayplanner.com/uhp.dll/AccList?PN=AccommodationSearch.htm That needs to turn into something like: http://www.ultimateholidayplanner.com...

how can i make a TCheckbox without transparent text (ie: it ignores themes)?

how can i make a TCheckbox without transparent text (ie: it ignores themes)? i've been asked to do something unconventional--put a checkbox on the place of the caption of a group box. in XP, it doesn't look very good. next, i thought i'd try SetWindowTheme(CheckBox1.Handle, ' ', ' ') i'd heard about on the internet. then you get a ...