delphi

Coinitialize error on IntraWeb using ADO

Already asked on the Evil Exchange, but as always that was no help. I'm having this problem today: When creating a stand alone web application using IntraWeb, I get this exception in the IDE when I try to test out a session from my app in the browser: First chance exception at $7C812A6B. Exception class EOleSysError with messag...

Need xml component supporting D2009

I'm looking for a xml component/Library which supporting Delphi 2009. Thanks! ...

How to disable the little touch-keyboard on Windows edit controls

In a windows version with tablet support, a small keyboard icon appears when an edit control gets focus. If you touch it the touch keyboard pops up. Is there a way to disable this? It's rather inconvenient if you have your own touch keyboard. I want to disable it for certain edit controls in code, ie. I'm not looking for a Windows sett...

How to make a child class's methods static?

Hello, My parent class is a form(TParent) ,here's the code: type TChild = class(TParent) private procedure Handle(sock:integer);static; //error end; implementation The error is "STATIC can only be used on non-virtual methods" Is there any possible way of doing this? If not, can I make the Parent Class(TForm) static? The TParen...

Why my child class doesn't inherit all methods from the parent class?

Hello, If both classes are placed in one unit - there is no problem,the child class inherits private methods from the parent class,but if they are in different units,the class can access only public methods.Why? The child class can't access private methods only because they are in different units. How do I avoid this? In my case I hav...

How to programmatically disable window animation under Vista Aero?

My application does automated screenshots of several dynamically created forms. This works perfectly under Windows XP, but doesn't work well under Vista Aero. Most of the forms appear semitransparent in the screenshots. The problem lies in the window animation of Aero. How can I check/disable/enable this animation from inside a Delphi (...

How to start unit-test old and new code ?

I admit that I have almost none experience of unittesting. I did a try with DUnit a while ago but gave up because there was so many dependencies between classes in my application. It is a rather big (about 1.5 million source lines) Delphi application and we are a team that maintain it. The testing for now is done by one person that use ...

What is the use of the "far" keyword in Delphi?

Hello, Without knowing i typed 'far' instead of 'var' by my mistake.I noticed the keyword is bold ,which gives me the thoughts that it's part of Delphi's syntax. Does anyone know anything about "far" keyword? ...

Delphi 7 compile getting slower over time?

My project has around 400 units, it takes 20-40secs to compile after a fresh reboot, then than 1-5secs for sub-sequent re-compiles, so far so good. After working for over 3-6 hours, compiling takes 1-3mins for sub-sequent re-compiles, which forces me to reboot everytime. Is there a leak somewhere in D7? Is it problem of Windows XP? It'...

Debugging Delphi ISAPI Dll on Apache

I have run into a situtation where frequently when debugging a ISAPI Dll (TWebModule) running under Apache I get errors. The caption on the error box is "Debugger Fault Notification" and contained in the message is, among other things: "c:\program files\Apache\bin\httpd.exe faulted with message......." When this happens the cpu window ...

Does an Open Source implementation of "Message Bus" pattern exist for Delphi?

I'm looking for an implementation of this Enterprise Integration Pattern http://msdn.microsoft.com/en-us/library/ms978583.aspx explained in a more general way on http://www.eaipatterns.com/Messaging.html Does an Open Source implementation of "Message Bus" (or message queue) pattern exist for Delphi? ...

Possible to block form fillers?

I have a Delphi (5) application that uses a log-in screen (standard user name/password) and have just found out recently that password storage applications can identify the log-in fields in the screen, even if they are obfuscated, and offer to save the information for the user. Due to the high security nature of our program, we don't wa...

Data Module in Dll with delphi?

Hello all friends.. I am Tobassum Munir from Pakistan. I created a database program which has a problem. I used Borland Delphi 7.x My Question is "How to create a data module in Dll (Dynamic Link Library) With Delphi? ...

Does my variable naming convention have a name?

So I go by this Delphi naming scheme of arguments start with A, class vars start with F and local vars start with M. Does that scheme have a name? I see it a lot in the Delphi source I'd like to read more about it but I'm not sure what it's called. ...

How to add two messages to the messagehandler in delphi?

Hello, In the declaration of my form,I made a messagehandler: procedure MessageHandler(var Msg:TMessage);Message MSG_ACCESS; const MSG_ASYNC = $BAD; MSG_ACCESS = $BEEF; In the message Handler when I check for a message,it works fine,but if i change the declaration like this: procedure MessageHandler(var Msg:TMessage);Message MSG_AC...

TStatusBar flickers when calling Update procedure. Ways to painlessly fix this...

So, here is the discussion I have just read: http://www.mail-archive.com/[email protected]/msg02315.html BeginUpdate and EndUpdate is not thi procedures I need ... Overriding API Call? I tried to get Update procedures code from ComCtrls unit, nut did not found... Maybe you could post here a code to fix thi flicker of statusbar comp...

How to convert icon to png with alpha transparency in delphi ?

The code below will extract icon from file and convert it to png but without alpha transparency ? var IconIndex : word; icon:TIcon; png:TPngImage; bmp:TBitmap; begin IconIndex := 0; icon := TIcon.Create; icon.Handle := ExtractAssociatedIcon(hInstance,pChar(Edit1.Text), IconIndex) ; bmp:= TBitmap.Create; bmp.LoadFro...

OLE automation - WORD tabels (Delphi)

Hi, I'm trying to make tables inside tables in WORD. of course in finall program it will be dinamical, which is not in this sample. Here is my sample code. var aTable, bTable, cTable : OLEVariant; begin m_WordApplication := CreateOleObject('Word.Application') ; m_WordDocument := m_WordApplication.Documents.Add; aTable := m_W...

How can I play sound file (mp3,wav,etc) directly with no associated application?

I need also to be able to control its volume. Also, how do I control system sound volume, to detect low volume, or mute states ? ...

Get window to refresh (etc) without calling Application.ProcessMessages?

I've got a legacy app here that has a few 'time-consuming' loops that get fired off as a result of various user interaction. The time-consuming code periodically updates something on the screen with progress information (typically a label) and then, seemingly to persuade the visual refresh to happen there-and-then, the code calls Applica...