Delphi to change JSONMarshalledAttribute running

I have a class in Delphi which I export in jsonmarshalled file. I am skipping some Fields using the JSONMarshalledAttribute, which resides in the unit: REST.JSON.Types. More literature here [JSONMarshalledAttribute(False)] Field1: double; [JSONMarsha

Lock the orientation of a shape in delphi xe6

Anyway to lock orientation to per se Portrait for only a specific form and not the whole application? Using Delphi xe6, for iOS. Can't seem to find anything by googling. Thank you! Update: My underlying issue is that I'm using a zbar unit for scannin

Access Violation in Delphi After a Successful Execution

I have written a program in Delphi to compute, display and save a Pascals' triangle for a user-defined number of rows. It works fine (displays the triangle, and allows me to save it), except that it comes up with an access violation at the end! Here

Defining the property of an object in another procedure

I have an object that has some properties: Obj.Big Obj.Rotate Obj.Paint Obj.Lines etc. They are all boolean type properties. In my main procedure, I call another procedure: procedure TMainForm.Create(Sender:TObject); begin SetParameter(BigCheckBox, O

How to hide an application from the taskbar in Windows 7?

I would like to hide an application from the Windows 7 taskbar. I want to make something like a toolbar on the edge of the screen which does certain things when the user clicks on it, but I don't want it to show in the taskbar, since its a thing that

Delphi 7, FastMM4 can not install the job around

i am working on an application that uses FastMM4, from So i have added the FastMM4.pas to the uses clause right at the beginning. In the application i need to run a batch file after FinalizeMemoryManager; in the finalization of unit

Edit requestHeaders in & ldquo; custom & rdquo; delphi browser

I have a browser integrated in my deplhi application (IE). I need to call a certain web app and I need to append a new variable in the header for all the requests that come from my application's browser, like jquery adds to the xhrobj the HTTP_X_REQU

Web user interface for the Delphi desktop application

I want to develop Web UI for my desktop application to allow users do some tasks remotely. The Web UI server and desktop app will run on the same computer. Question is: what is the best way to implement it? I found several possible solutions: The Del

How to get an instance of TForm from a handle?

I'm converting some functions into a DLL which relate to Windows 7 functionality. I can't pass a TForm through DLL, so I need to pass its handle instead. except, once I have that handle on the other side, how do I reconstruct it back into a TForm ins

Why Round (-0.0066219357357) returns -1?

I want to Round(-0.0066219357357) and it gives -1. Isn't it supposed to be 0? And what can I use to round it correctly? UPDATE: the number is a result of (LineDirection.X/distance); where LineDirection.X is an integer and Distace is double.Looking in

How to trace handle leaks?

In one of my applications I observe an increasing number of handles. The number is incremented roughly every second without using the application, so there must be a handle leak in some part of the background processing code. How can I trace such lea

Reduce the exe file

Using Delphi (or in general any tools, if exist of course), is it possible to reduce size of an exe file, removing all code that not is used but that is present there? (for example, a function or procedure that is present but is never called). I reme

Delphi: communication between executives

How to communicate among frames and within a frame? For example: a Frame 1 and a Frame 2. The frame 2 is in the frame 1. To insert the frame 2 into the frame 1 I add frames from ToolPalette -> type TFrame1 = class(TFrame) Frame22: TFrame2; var MyFram

Using Doc-O-Matic (Express) with Delphi

I am looking for a tool to generate Delphi source code documentation, and I want to give a try to Doc-O-Matic Express (which is free). Are there any guidelines for beginners how to use Doc-O-Matic Express to document Delphi source code (managing doc-

Creating a general SQL query builder

what would be the best way to create a Query builder in delphi? I have devexpress quantum grid, so I can display data easily.At least as of a few years ago, best query building component for Delphi was "Simple Query", an inexpensive component fr

How to use TBBMM in Delphi IDE and the compiled application

I learned that TBBMM seems to have better performance than FastMM. FastMM is default memory manager in recent release of Delphi IDE. However, I find not much information regarding the deployment of TBBMM for Delphi users. How may I replace the defaul

How to detect the end of TControl's Right Drag?

edit: VCL has no problem around right dragging and the sample program below works perfect. A mouse gesture utility causes the problem. (Perhaps it hooks & intercept WM_RBUTTONUP event...) I want to detect end of right-dragging on the control. For lef

prob. with tquery.requestlive

Do anyone know how to request a "live result set" in MySql when query has offset(eg: select * from table limit 10 offset 20;). it is throughing an error like 'invalid use of keyword' . Thanks, have no condition behind where and before

Repeat the procedure for each class item

Data.XX.NewValue := Data.XX.SavedValue; Data.XX.OldValue := Data.XX.SavedValue; I need to do the above a large number of times, where XX represents the value in the class. Pretending there were 3 items in the list: Tim, Bob, Steve. Is there any way t

Incorrect pointer operation in TMonitor.Destroy

I'm currently working on porting an existing Delphi 5 application to Delphi 2010. It's a multithreaded DLL (where the threads are spawned by Outlook) that loads into Outlook. When compiled through Delphi 2010, whenever I close a form I run into an "i

Delphi calls a DLL

I have a DLL and want to call it from Delphi extern "C" export_dll_function int RetScreen(int number, char** pbuffer, unsigned long* psize, IMAGE_RESOLUTION resolution, float zoom, int dx, int dy); [DllImport("API.DLL", EntryPoint = &q

TIdTCPServer does not read socket data sometimes

I have the following code in the OnExecute of a TIdTCPServer (Delphi 2009 and Indy 10 that came with the installation) which is very similar to other examples on this site; Socket := AContext.Connection.Socket; if Socket.CheckForDataOnSource(10) then

Edit the label of a TCollectionItem in the Delphi editor

A component I am working on uses a TCollection to hold links to other components. When the items are edited in the designer their labels look something like this: 0 - TComponentLink 1 - TComponentLink 2 - TComponentLink 3 - TComponentLink How do I ad

Simple anti-aliasing function for Delphi 7

I need a very simple function to draw a bunch of lines with anti-aliasing. It has to follow Delphi paradigm: self contained and SYSTEM INDEPENDENT (no DLL hell), fast, simple. Anybody knows such a library? Until now I have tried: WuLine swissdelphice