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
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
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
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
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
i have Run time Error 216 at ADDRESS when registering a 64 bit dll built with Delphi XE2 (I have Update 3). from command prompt I do (note: system32 folder contains the 64bit exe!) c:\windows\system32\regsvr32.exe My64bitdll.dll and after a "dll succ
I'm playing with my first FireMonkey app. I've created a grid of TRectangle's and now I want to set the color of each one programmatically. I've done: procedure TForm9.Button2Click(Sender: TObject); var C : TRectangle; I : integer; //const // Alpha =
What I'm trying: I need a TWebBrowser which is always zoomed in (~140%) AND keeps all links in the same webbrowser (ie. _BLANK links should be opened in the same browser control). How I'm doing that: I have set the FEATURE_BROWSER_EMULATION in regist
i am working on an application that uses FastMM4, from sourceforge.net. 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
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
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
I have a problem which I do not understand. I am using a DLL in my application. This DLL requires other DLL's and I have all of them. If I put the libraries in my appliction folder everything works fine. However, having a bunch of DLLs in application
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
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
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
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
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
I've downloaded the updated wsdlimp.exe from http://cc.embarcadero.com/Item/24535 What's the WSDLIMP.EXE command line (which commandline options) to import BasicHttpBinding WSDL into Delphi 7? I tried the basic syntax but the generated pas file won't
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-
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
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
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
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, Vijay.you have no condition behind where and before
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
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
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
How can I get MSBuild to do a full build of a Delphi project equivalent to dcc32 -b? I've got two projects I'm trying to build, the first one uses some conditional defines, which are getting passed via msbuild to the dcc32. However, some common units
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
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
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