delphi-2010

Lockbox digital signature component problem

夙愿已清 提交于 2019-12-04 10:30:34
I'm evaluating TurboPower LockBox library for digital signing. I've created a 1024 bit RSA key and tried to sign a 260 bytes of text with it. After changing one or two characters in the text the signature is still valid for it. Is that ok? Or maybe it's a problem with this library. Changing even one character has a crucial effect. Do I need to create a larger key? UPDATE To test the library I used the demo application that comes with it. I have generated a 1024 RSA key pair and then tried the digital signing functions. First I've tried with a real 260 bit text file and found out that I can

Unicode problems with Delphi 2009 / 2010 and windows API calls

随声附和 提交于 2019-12-04 09:47:29
Hi I have been using this function in Delphi 2006, but now with D2010 it throws an error. I think it is related to the switch to Unicode. Function TWinUtils.GetTempFile(Const Extension: STRING): STRING; Var Buffer: ARRAY [0 .. MAX_PATH] OF char; Begin Repeat GetTempPath(SizeOf(Buffer) - 1, Buffer); GetTempFileName(Buffer, '~~', 0, Buffer); Result := ChangeFileExt(Buffer, Extension); Until not FileExists(Result); End; What should I do to make it work? EDIT I get an 'access violation' when the ChangeFileExt is called Windows.Pas function GetTempFileName(lpPathName, lpPrefixString: PWideChar;

Compression component

▼魔方 西西 提交于 2019-12-04 08:48:12
I am looking for a compression component that supports Delphi2010 and allow me to do the basic operations of: create .zip archives extract from .zip archives delete .zip archives I also need the component to be free for commercial usage and possibly does not use/rely on a DLL (I don't mind if it does). So far I have looked into ZipForge , FlexCompress , KaZip and UnRAR , but I found out that I needed to purchase a license to commercially use ZipForge and FlexCompress. When it came to KaZip, there were errors in the code so I was unsuccessful in terms of installing the component. Whereas UnRAR

Can I write Windows drivers with Delphi 2010?

只愿长相守 提交于 2019-12-04 08:12:41
问题 I've always heard that Delphi can do almost anything C++ can do...except write Windows drivers. Is this correct, and if so, why is that? I recently read a blog post online that may indicate a possible solution for writing drivers with Delphi, but it's 3 years old and I don't know how accurate this information is. So, with the latest version of Delphi (2010), would it be technically possible to write a Windows driver? 回答1: It may be technically possible to write some drivers with Delphi, but

Move project from Delphi 3 to Delphi 2010

亡梦爱人 提交于 2019-12-04 08:01:57
I've been asked to re-open a project I wrote in 1998/99 in Delphi 3 and which has been running stably since then. I have the Delphi 3 code base on an aging Windows 98 machine which exists only to keep this project alive. Obviously, I'd like to bring the source code base into the 21st century before undertaking any major revisions. I note happily that Delphi 2010 (I'm currently on 2007) claims to be able to import projects from Delphi 2 on. Does anyone have any experience importing large projects from Delphi 3? Can I expect this to be an easy transition, or a difficult one? In addition the

A simple debug visualizer for delphi 2010

百般思念 提交于 2019-12-04 07:27:27
I gather some experience with the trial version of delphi 2010. I am looking for a simple debug visualizer, because the sample debug visualizers are not part of the trail. I do a lot with the new rtti type TValue and TValue.ToString can't be call from the debugger (results in an exception), so my idea is to write a debug visualizer for it. The format shoul look like (<data-type)<ToString-value> examples (integer)5 (string)'Hello World' (Array<String>)['a', 'list', 'of', 'items'] With a simple demo for a debug-value-replacer (I think this was the name :-) ) I can start. I noticed on Torry that

Delphi 2010 Control Flickering

99封情书 提交于 2019-12-04 07:06:53
I have been upgrading or migrating our software from XP OS to be able to compile and run under Windows 7. Our software is starting to show issues that we didn't notice under Windows XP. Currently, I am dealing with a user defined control flickering on a TForm. It seems to flicker every now and then not always, but when it flickers it is very noticeable. I have set DoubleBuffered for the TForm and TTrendChart Class, but it is not helping. This a user-defined control of TCustomPanel. It is supposed to display a Live Trendchart on a TForm. TTrendChart = class(TCustomPanel) private fCount:integer;

Delphi 2010 object inspector grid and windows dpi

。_饼干妹妹 提交于 2019-12-04 05:32:44
问题 I work on high resolution wide screen and I set the dpi to 144 so I can see fonts better. the problem in Delphi 2010 object inspect grid I cant see the text of properties or event names the grid does not scale !! any solution to this ? thank 回答1: After read your post I asked Uwe Schuster if would be possible to fix this issue with their great "Object Inspector Expert" and he did. You can download it here: http://www.bitcommander.de/blog/index.php/2012/07/15/oi-rev-5/ 来源: https://stackoverflow

Unit finalization order for application, compiled with run-time packages?

老子叫甜甜 提交于 2019-12-04 05:30:47
I need to execute my code after finalization of SysUtils unit. I've placed my code in separate unit and included it first in uses clause of dpr-file, like this: project Project1; uses MyUnit, // <- my separate unit SysUtils, Classes, SomeOtherUnits; procedure Test; begin // end; begin SetProc(Test); end. MyUnit looks like this: unit MyUnit; interface procedure SetProc(AProc: TProcedure); implementation var Test: TProcedure; procedure SetProc(AProc: TProcedure); begin Test := AProc; end; initialization finalization Test; end. Note that MyUnit doesn't have any uses. This is usual Windows exe, no

File size calculation, Int64, and differences between 32bit and 64bit

故事扮演 提交于 2019-12-04 04:34:18
问题 I had problems with the following code: var FileSize : Int64; ... FileSize := Info.nFileSizeLow or (Info.nFileSizeHigh shl 32); I expected it to work because of the Int64 type of the left side of the assignment. But it does not. The partial calculation containing the shl seems to produce an overflow. So I changed it to: FileSize := Info.nFileSizeLow or (Int64 (Info.nFileSizeHigh) shl 32); which works on my 32 bit operating system, but does not work on Vista 64 bit! Finally, FileSize := Info