delphi

Delphi / Tesseract OCR: Can somebody help me get this new DLL working in Delphi?

There is this great open-source OCR component that Google has been developing: http://code.google.com/p/tesseract-ocr/ They have a new version out (version 3) at the beginning of October 2010. But this new version no longer has a working C wrapper, and it's up to somebody in the Delphi community to get it to work from inside Delphi -- ...

Detect if an OCX class is registered in Windows

i need to know how can detect if an OCX class (ClassID) is registred in Windows something like function IsClassRegistered(ClassID:string):boolean; begin //the magic goes here end; begin if IsClassRegistered('{26313B07-4199-450B-8342-305BCB7C217F}') then // do the work end; ...

Is TDirect2DCanvas slow or am I doing something wrong?

While looking for alternatives to replace GDI, I was trying to test Delphi's 2010 TDirect2DCanvas performance in Windows 7. I tested it by drawing a huge polyline using Direct2D and the result was absurdly slow, even with 500 times less data than the amount I've ran the same test using GDI (and I didn't even use a bitmap as backbuffer i...

Delphi ODAC: Disecting JMS messages from Oracle AQ

I'm trying to evaluate ODAC for using Oracle AQ. The request queue contains JMS objects like these (but without linebreaks and other whitespace): SYS.AQ$_JMS_BYTES_MESSAGE( SYS.AQ$_JMS_HEADER( 'null','null','null','null','null','null', SYS.AQ$_JMS_USERPROPARRAY( SYS.AQ$_JMS_USERPROPERTY('Key1',100,'Value1','null',27), ...

How to use this Pascal-like files in Delphi?

Hi All, There is a pascal project in this file http://www.markwatson.com/opensource/FastTag_Pascal.zip The file extension .DS_Store, and makefile have not been seen before, what are they? And the code inside seems slightly different from Delphi. Question: How can we convert it to delphi ide and compile it in delphi? Thank you again...

will Delphi applications become smaller in future

already delphi win32 exe size is ~850 kb , do they have any roadmap of making exe size bit smaller,(i know that the size is because of vcl unicode RTTI and many more ),delphi compiles the whole unit even only a small function in the unit is needed. so is there any facilities to do so,or third party products are there , (i know kol and mc...

C++: Storing childs of a class in variables with it's type

I am currently working on a 2D game project and I want to switch from Delphi to C++. In Delphi, I could declare an array which had the type of a class Entity, and I could put Entitys as well as objects of classes which are derived from Entity into it. This would be very important for me, as it seems logical that all entities should be ...

How to fix this EInvalidPointer error while translating Free Pascal into Delphi?

Dear Experts: We are tring to use in delphi a pas file generated by Free Pascal. The link is at: http://www.markwatson.com/opensource/FastTag_Pascal.zip While testing, it prompts InValidPointer. Please look at the following error line in debugger. interface procedure ReadLexicon; type sarray = array[1..12] of string; type big_sarray ...

slow down a process ?

How can i slow down a windows process ? I understand that i need to hook queryperformancecounter but what do i need to do next ? Plase help ...

Force closing shared file: NetFileClose

Hi, I'm trying to make a program that force the connection to a shared file. I found the system call NetFileClose and it seems to be very simple; but when I call it, it retourned me always the error code number 53. Like parameter I give servername NULL (I try also with 0 but with the same result) and fileid a correct value. I logged in ...

How can I include Audio Visualizations in my Delphi application?

hi there I'm looking for some component or something to do this. I want a simple Oscilloscope visualization like KMPlayer,FLStudio,Multimedia Builder,etc. What can i do? Thnx in advance ...

How to free a Interface?

Hello Fellow,i'm new with this thing named interface and DirectX. I'm hooking a DirectX Interface from a certain game and i'm using the DirectX to Draw My Own stuff,like textures and Fonts. My problem are that: When the program call the Hooked Reset Function of the Device,i need to clear all my things from the memory,the Com Interfaces.I...

Help extending a function.

Hello Everyone, I found a function which will extract a word that is between 2 other words and this works well but I would like to extend the function so it scan the entire string that I choose and extract ALL of the words that are between the 2 keywords and not just the first one it comes to. I am guessing I will need to add a loop of ...

How can I freeze the execution of a program?

Say I have got a program that hogs the processor and/or hard disk to the point that it makes it nearly impossible to do anything else on that computer. Now I don't want to kill that program because what it does is useful (it's a batch job that really is that CPU or disk heavy, e.g. it could ZIP a few gigabytes of data files) but for a sh...

Problem getting html source from a protected webpage with Indy & Delphi 7

Hello, Using the Indy10 components for delphi, I am grabbing the source of a webpage and displaying it in a Memo control using the following code. procedure TForm1.Button1Click(Sender: TObject); begin Memo1.Text := IdHTTP1.Get(Edit1.Text); end; When the page I am trying to display is just a normal page (ie. no login required) the r...

Get Strings from bpl package

sorry this may be a simple question i want to call a bpl and get the value of a string inside the pakage where and how can i declare a constant(or variable) and how to call it by a delphi exe ...

holding dataModule with many ADOQuerys how to know if changed?

In a form we have several ado query(s) that hold connection to db. In case the user hit the Save button, we want to save the data to the database. in case the user never asked to save a thing , we need to roll back the changes. So concluded that a transaction should be in place. For each change that is made, i save the table. my que...

stack overflow error when i open Delphi XE IDE

Hi, When i open Delphi XE get this message and i must close IDE. message : "Danger: stack overflow - save your work and restart Delphi XE" I uninstall Delphi and cpp XE and reinstall them, but already get this message. Why?? ...

Floating point support in 64-bit compiler

What should we expect from the floating point support in 64-bit Delphi compiler? Will 64-bit compiler use SSE to implement floating point arithmetic? Will 64-bit compiler support the current 80-bit floating type (Extended)? These questions are closely related, so I ask them as a single question. ...

Gecko NSModule: ContractIDEntry "nsID const *"?

I created a FireFox addon a while a go, and noticed it stopped working on FireFox 3.6 Apparently, NSGetModule is being replaced with an NSModule structure, so I have to adapt. I'm coding my product with Delphi, so I have to port the new code to Object Pascal. If I look over this code: http://mxr.mozilla.org/mozilla-central/source/xpcom/...