Delphi

DEP preventing my COM DLL from working

▼魔方 西西 提交于 2020-01-25 03:14:28
问题 I'm trying to use a COM DLL (written in Delphi 7) within my Delphi 7 IntraWeb application but it's failing due to DEP. I'm pretty much certain it's DEP that is preventing me from using the DLL because if I compile and run my IntraWeb app as a StandAlone Server, everything works fine. But, compiling and runnning it as an ISAPI DLL, it fails. On WinXP (using IIS 6) I can add DllHost.exe to DEP and everything works. Of course, I really don't want to do that. On Win7/2008 (IIS 7) this isn't an

Web request property “URL” is empty

流过昼夜 提交于 2020-01-25 01:44:17
问题 I'm trying to figure out how to read the full URI from a request ( Web.HTTPApp.TWebRequest ). There is a URL property, however it returns empty, and I don't see any more properties which could give me this. How can I get the complete URI of the request? This is being used via Indy 10 TIdHTTPWebBrokerBridge . For example... http://www.mydomain.com:18500/SomePath/SomeFile.html?n=v&a=b I tried tracking this URL property and found that in IdHTTPWebBrokerBridge.pas this is being left blank,

How may I add additional data for each existing item in a `TListView`?

瘦欲@ 提交于 2020-01-24 23:09:22
问题 I'm working with TListView and I have successfully populated each item's caption and first subitem. See example below. user pass working status valid data1 pass --- --- data2 pass2 ---- ----- - - - After populating each item, I acquire additional data for each item. I want to add this data to populate each item's 'working', 'status', and 'valid' columns. How may I add this additional data for each item? Each time I have tried, it appears the data is being stored in new items and displayed

Converting Integer to String crashes Injected Parent Process [Delphi]

怎甘沉沦 提交于 2020-01-24 18:30:38
问题 My application is an x64 Windows console app that needs to inject itself into another running process. When executed from the command line, you enter the PID of the process you want to inject into as a command line parameter. Within the context of a thread running under a parent process, I'm able to work with String variables, but I'm having difficulty trying to figure out how to convert an Integer to a String in Delphi. Everything I've tried to convert from Integer to String has the effect

Delphi XE5 REST/Android Client “Session has expired”

妖精的绣舞 提交于 2020-01-24 18:03:37
问题 I have a REST Server with an Android Client , both on Deplhi Xe5 The android client succesfully connects with the Rest server. In my server I have a TDSHttpWebDispatcher with SessionTimeout =1200000 (20 min) So when the user in android doesn't use the app for more than 20 min, gets the "Session has expired" error when do a request to the REST server. I already set the PresserveSessionId=False in the DSRestConnection in the Client app, so there is no sessiontimeout error, but it makes the app

Delphi TNotificationCenter Multiple Repeating Notifications has unexpected behaviour

狂风中的少年 提交于 2020-01-24 15:45:07
问题 lets say you want to create a Notification with a repeat interval so that it is recurring var MyNotification : TNotification; begin MyNotification := NotificationCenter1.CreateNotification; try MyNotification.Name := 'FirstNotification'; MyNotification.AlertBody := 'First Notification!'; MyNotification.FireDate := IncSecond(Now,15);// Note this fires 15 secs from NOW MyNotification.RepeatInterval := TRepeatInterval.Minute; Notificationcenter1.ScheduleNotification(MyNotification); finally

Loading RTF file having Table in TRichEdit without Table borders

断了今生、忘了曾经 提交于 2020-01-24 14:13:08
问题 I have a RTF file that I am loading into a TRichEdit control. Only problem that I am facing is, RTF file has Tables in it, loading the same shows table borders. But when I load the same RTF in MS Word it doesn't show any borders(Client want the same behavior). Is there any way for not displaying borders of table while loading into TRichEdit. I am using Delphi7. 回答1: TRichEdit control is less complete than MS Word, in its implementation of the RTF format. As far as I remember, TRichEdit won't

Loading RTF file having Table in TRichEdit without Table borders

六眼飞鱼酱① 提交于 2020-01-24 14:12:07
问题 I have a RTF file that I am loading into a TRichEdit control. Only problem that I am facing is, RTF file has Tables in it, loading the same shows table borders. But when I load the same RTF in MS Word it doesn't show any borders(Client want the same behavior). Is there any way for not displaying borders of table while loading into TRichEdit. I am using Delphi7. 回答1: TRichEdit control is less complete than MS Word, in its implementation of the RTF format. As far as I remember, TRichEdit won't

Delphi - How to save bitmap to BLOB field in SQLite database

亡梦爱人 提交于 2020-01-24 13:24:10
问题 I am trying to add an array of TBitmap images to different records of a ClientDataSet (in a ftBlob field) and then save those records to a SQLite database. The BLOB field (DocImage) is a required field in the database. However, my code does not seem to save the bitmaps to the blob field in the ClientDataSet at all... So when I call BdmMain.cdsTrxDoc.ApplyUpdates(0) , I get the error: "Field 'DocImage' must have a value." I have checked the size of my BlobStream (BlobStream.Size) before and

Save Bitmap with transparency to PNG in Delphi 2007

断了今生、忘了曾经 提交于 2020-01-24 09:42:25
问题 I have a Delphi bitmap (32Bit) that has transparency information. I need to convert and save it to a PNG file while preserving the transparency. The tools I currently have are the graphics32 Library, GR32_PNG (by Christian Budde), and PNGImage (by Gustavo daud). What is the best way to do this? EDIT 1 : There is not just one color in my bitmap that's transparent but pixels with varying levels of transparency that needs to be preserved. EDIT 2 : I am getting my bitmap with alpha information by