delphi

question about pulling in process info delphi?

As it stands I can pull the current list of processes into my Delphi application and the image name. I need to also find and pull in the file description. For example, I can do this: Image name Description myfile.exe i can't seem to do this: Image name Description my...

Modem hangs during serial communication

I have got a Wavecom Supreme GSM modem. I wrote a simple application that communicates with the modem and reads text messages it receives. My application queries the modem for information about the number of messages it stores in its memory and if the number is greater than 0, it reads the messages deleting them from the modem's memory....

Delphi: Reading number of columns + names from dataset?

Hello Since Embarcadero's NNTP server stopped responding since yesterday, I figured I could ask here: I work with a non-DB-aware grid, and I need to loop through a dataset to extract the number of columns, their name, the number of rows and the value of each fields in each row. I know to read the values for all the fields in each row, ...

How do I put some formatted text into the Clipboard?

I'm writing a unit test for a "Text Scrubber" utility that will remove any formatting, etc. from the text on the clipboard. For example, if you copy some text from a Word document or a web page with tons of formatting, you may want to paste it into another Word DOC as normal, plain old text. To write a unit test for this, I need, of co...

Can I re-gain a systray icon of a running app that has gone missing?

Since I've finally got an answer for this question: Can you send a signal to windows explorer to make it refresh the systray icons, that asks about getting rid of dead systray icons, I would like to ask for the opposite. Is there a way to "nudge" an application to re-show it's systray icon if it has been lost? It happens to my Apache ...

Rich Edit / Word Processing Control for IntraWeb (Delphi VCL for the Web)?

I am experimenting with Intraweb right now, for a few small personal-use web apps I am wanting to develop. Learning time is at a premium, so I am very attracted to intraWeb due to Delphi experience transferring so well and immediately -- just messing around with it today, I managed to get a data-driven web app up and running, almost eff...

Delphi 2009 - Implicit string to RawByteString conversion warnings

Hello there, I have just got my hands on D2009 and using it with one of our existing projects - it all compiles fine however I have just picked up DIRegEx to use some regex in the project. However it's always giving warnings about String to RawByteString and vice versa. Eg var Response : string; begin Response := idHTTP.Get('http...

What is the best report writer tool?

I need to be able to print reports, general stuff. But I need it to be simple, flexible, and light. Reports must be independent from the application, and corrected and updated, by sending new report files. A good extra would be allowing the user to creating basic/advanced reports, on there on. ...

Is there a tool to gather Win32 application usage statistics?

Is there any tool that can do this? Just like a website and for the same basic reasons? UPDATE --- I mean collecting statistics info about an application that I am writing I need to know what options are used most, when, times, etc. ...

Is there a simple "point in rect" algorithm for a wraparound map?

I'm trying to build a rectangular grid that can wrap around at the edges. Anyone who plays video games will probably be familiar with the concept: go far enough in one direction on the world map and you'll end up back where you started. This causes some difficulty in setting up the viewport, though, since the edges can scroll into nega...

How to increase the startup speed of the delphi app?

What do you do to increase startup speed (or to decrease startup time) of your Delphi app? Other than application specific, is there a standard trick that always works? Note: I'm not talking about fast algorithms or the likes. Only the performance increase at startup, in terms of speed. ...

TApplicationEvents as dynamic component or static for tracing called routine in Delphi.

Hello and good morning! Unfortunately I am not writing this question from my Developing PC so I might do some mistakes. Please sorry about it... So - my question - what approach you use to implement error logging in your application? In web ( http://delphi.about.com ) is nice event handler, but it just copies system error in file, but ...

How to declare a pointer(byte^)?

Hello, I want to make a declaration of an external function,but I can't do it. this is my Delphi declaration,which doesn't compile. procedure Encode(input:byte^;output:byte^;size:DWORD);cdecl;external 'blowfish.dll'; This is my C# declaration,which works. [DllImport("blowfish.dll")] public static unsafe extern void Encode(byte* inp...

Delphi: Record constructor vs factory function

So what will be the preferred way of initializing records? With a 'factory function': TMyRecord = record valueX: integer; valueY: integer; end; function MyRecord(const AValueX, AValueY: integer): TMyRecord; begin result.valueX := AValueX; result.valueY := AValueY; end; var myrec: TMyRecord; begin myrec := MyRecord(1, 2); ...

Is this Algorithm for lock-free fifo queue management any good?

I just found this: http://www.emadar.com/fpc/lockfree.htm at first glance it looks fine. Is anybody using it? Or maybe somebody already looked at it and found it unusable? ...

Overlapped serial port and Blue Screen of Death...

I created a class that handles serial port asynchronously. I use it to communicate with a modem. I have no idea why, but sometimes, when I close my application, I get the Blue Screen and my computer restarts. I logged my code step by step, but when the BSOD appeared, and my computer restarted, the file into which I was logging data conta...

How to make a .net(c#) library which can be used in delphi

Possible Duplicate: Create a C# DLL That Can Be Imported in a Delphi App Using stdcall - Possible? I am creating a c# library and like to make this library as com component which can be accessed from delphi. Please tell the how to achieve this. ...

web services from a delphi 7 Activex Control on IE 8 running on XP service pack3 does not work

Hi, I having problems in calling webservice from delphi 7 activex control in Internet Explore 8 while running on machines having window XP service pack 3 . the active X control works in the following combination Window XP service pack 3 with IE7 or lower Windows XP service pack 2 with IE 8 currently i use the delphi 7 SOAPHTTPClient...

How to raise exceptions in Delphi?

Hello, I'm asking for Delphi native,not Prism(net). This is my code: raise Exception.Create('some test'); Undeclarated idenitifier "Exception". Where's the problem,how do I throw/raise exceptions? ...

Is it possible to create a type method in Delphi?

Hello, It's possible to create a type idenitifier for example: type PByte = ^Byte; Is it possible to do the following: function a:shortint; begin Exit(8); end; type b = a; so you can call "b" and "a". Is it possible? I'm asking,because I'd like to replace "Exit" with "return" so I can call this: return(5);// for example ...