Delphi & SmartCards
Does anyone have experience integrating SmartCard authentication in their Win32 apps? If so, are there any preferred libraries? ...
Does anyone have experience integrating SmartCard authentication in their Win32 apps? If so, are there any preferred libraries? ...
Hello, I have two forms,one is main and other is inherited form main.Lets say I have a function on the main form: procedure FormMain.CreateButton; begin with TsButton.Create(Self) do begin Width := 31; Height := 31; Left := 31; Top := 31; Visible := true; Parent := Self; end; end; Usually everything on the...
This is an interesting problem that I’ve not been able to solve yet. I am writing a client that communicates across the Internet to a server. I am using the TIdTcpClient Internet Direct (Indy) component in Indy 10 using RAD Studio 2007 native personality. To get data from the server, I issue an HTTP request using SSL over port 443 whe...
I know that I can check the current state of Delphi's switch directives using this construct: {$IFOPT R+} Writeln('Compiled with range-checking'); {$ENDIF} Since I'm lacking of in-depth sources on how the Delphi backend compiler works, I'm not sure wether there is a way of changing the behaviour of a function depending on the st...
I was confused when I first read Christer Fahlgren's comment on an answer on this question, where he states you would benifit from using 'MVC style design' when starting an application that uses both Delphi and a WebBrowser component on a form, and HTML with CSS and JavaScript to create a fancy mix of flexible UI and dynamically updating...
How do you convert a TColor value to a decimal representation (clRed = $0000FF)? ...
If a Modal form creates a form and does .Show, how can the parent later determine if the non-modal form is still open or if the user closed it? ...
I have an error in my button click, and I can't figure out how to resolve it. This is my code: if (ovElements.item(i).name = 'add') and (ovElements.item(i).type = 'button') and (ovElements.item(i).Value = ' + ') then ovElements.item(i).Click; This is the markup: <td width="20" align="left"><input class="button" style="wi...
Here is the Delphi code calling the C++ dll... implementation {$R *.DFM} procedure CallMe(x: Integer); stdcall; external 'CppWrapper.dll'; procedure TForm1.Button1Click(Sender: TObject); begin CallMe(1); end; end. Here is the error message...(Access Violation at 00000001. Read of Address 00000001.) The CallMe procedure exec...
Running a project and was getting an error saying "Not enough actual parameters" The error is in "C:\Program Files\PBear\HTMLComponents\package\GDIPL2A.pas". The mistake pointed three times to "inherited Create;" lines 260,270 and 278 . In the file "GDIPL2A.pas".the Code is:- var err: integ...
Hello All! Is there a rule of thumb that .pas, .dfm and .dpr files should not be removed? While opening/working with concerned project files ,Unit1.pas,Form1,Unit1.dpr etc are automatically created by the IDE in the same project-folder.As they were not related to my proj,I inadvertently deleted them.Will that cause any issue? Furthe...
I'm building a little personal project; I wish to have a Windows Service that will act as a simple HTTP server accepting requests via HTTP, run queries against an Interbase 6/7 server and then return results in JSON format. Could anyone recommend some tutorials, free components or just a quick plan of how they would develop the various ...
Once in a while I need a GUI to set numeric ranges, but so far I've never really found any component that does it nicely. I've attempted the following: 2 TTrackbars: 1 for min, 1 for max 2 TTackbars: 1 for min, 1 for range 2 TSpinEdit controls to type the numbers manually 1 TTrackbar control, with a little button to switch between ...
Is there a way to take a record and go through all its fields programatically without explicitly doing "Record.somefield"? What I want to do is a generalized function to save/load a record as an INI file so that I can add or remove fields from my record structure without having to rewrite the save/load functions each time I remove or ad...
Hello, I have to compare a partial string "SKILL_______EU_______WAND_______CLERIC_______BASE_____01" with "SKILL".It's meant to check if the first four characters are "SKILL".or the first character only,optimization is needed here! My problems: I don't know how to do an optimized comparison. It has to be repeated 35 000 times so it ...
A piece of code I'm working on has to analyze a foreign file format produced by another software - a "replay" from a game to be more exact. In this replay, every actions produced by the players are saved with a variable number of arguments. My software produces an analysis of user's action, doing stuff like producing a graph of their act...
Hello, I am searching a pure Delphi library with good full-Perl syntax support. It should: match groups (both named and numbered) be able to match, replace, split support look-ahead and look behind come with source be free support Unicode be compatible with Delphi 2009 Which library you prefer? ...
Hello To avoid the more complicated solution where the frame calls some routine in the parent form so that the form can kill the frame... I was wondering if it's OK to simply set the form as the frame's parent, and let Delphi call Frame.Free when the user closes the application? procedure TForm1.FormShow(Sender: TObject); var Frame2 ...
I wanna build a Win32 app of Client/Server (or 3-tier) type with follow features: When the "A" client does a modification (update,insert, etc) into a database, the rest of clients viewing the same record set can get almost "instantly" a fresh view of this data a client can be notified when a connection to database get lost could some...
I've been recently applying threads for making queries to a MYSQL database, I use MyDAC for connection to DB, 'cause TMyConnection doesnot let making simultaneously queries per a connection, I create a new connection and a new query object per every thread executing a query, so in certain time could happens that server has several connec...