delphi-xe2

'designide' must be recompiled when installing DWScript on Delphi XE2

蹲街弑〆低调 提交于 2019-12-23 12:25:59
问题 I'm running Delphi XE2 w/ update 3. I've just checked out the read-only branch of DWScript from the svn repository. I try to install dwsLib.dpk from the DelphiXE2 folder but receive the following error: [DCC Fatal Error] dwsLibRuntime.dpk(30): E2225 Never-build package 'designide' must be recompiled I tried building dwsLibRuntime.dpk first, but I get an error about missing TdwsUnit component, so that doesn't work, either. I'm not having any luck finding contact info for the author, so am

Code-completion doesn't list message handlers

荒凉一梦 提交于 2019-12-23 12:16:51
问题 When working on an old project in Delphi XE2, the code-completion window that pops up after CTRL - SPACE does not list message handlers like Delphi 7 did: In the screen shot above, the WM*** routines are missing. Why is that? 回答1: The unit names in the uses clause are not fully qualified. Include the namespace for each unit and then the necessary types for the method declarations are found to let the code-completion pop-up window return all members. For instance: procedure WMActivate(var

Save Cookies inside TIDCookieManager to file

我与影子孤独终老i 提交于 2019-12-23 11:57:35
问题 How can I save cookies inside TIdCookieManager to a file so that they can be used later? Like browser cookies. 回答1: TIdCookieManager does not have any native support for persisting cookie data in files. You have to implement that manually. Use the TIdCookieManager.CookieCollection property to access the list of cookie objects. For example: uses ..., IdCookie, IdCookieManager; var Cookies: TIdCookieList; Cookie: TIdCookie; I: Integer; begin Cookies := IdCookieManager.CookieCollection

What external events trigger TCustomForm.RecreateWnd?

风格不统一 提交于 2019-12-23 08:44:53
问题 A particular VCL application is crashing, rarely, and apparently spontaneously, and I strongly suspect it is because the main form's window handle is being recreated in response to some external trigger from the operating system. I do know for certain that if the main form's window handle were to change then trouble would certainly follow (because background threads post messages to this handle). But I would like to know how to reproduce this bug before I set about making code changes

delphi calling AMD ADL c++ dll

岁酱吖の 提交于 2019-12-23 03:38:18
问题 Trying to interface with AMD ADL library (DLL) to retrieve info on the graphics card. Got some of the functions to work but having problems. Pls see this post with same question but no answer: ATI ADL - AdapterInfo_Get The function returns using a delphi array but the content is wrong. The function returns using a pointer to a buffer but the data is the same [wrong]. [see below for code example] The function is defined in the documentation as follows: int ADL_Adapter_AdapterInfo_Get

How to reproduce this Code Completion bug?

守給你的承諾、 提交于 2019-12-22 18:03:07
问题 I'm having a bug on Delphi XE2 (Update 4 Hotfix 1), which reproduces many times on the legacy project I work (it evolved from D6 to D7,D2006 and finally XE2), but I didn't know how to trigger it in a smaller project. The latest time, it triggered on creating an event handler for a "hidden popup" on the app. When I click on the menu option to create the Click handler this happens. pprocedure TMainForm.Blablabla1Click(Sender: TObject); begin end; rocedure TMainForm.FormActivate(Sender: TObject)

Reading response from TIdDNSResolver?

倖福魔咒の 提交于 2019-12-22 17:09:02
问题 I cannot find any simple examples of a DNS lookup using Indy 10's TIdDNSResolver component. They're all either for something I don't need (such as MX/SMTP), or are talking terms with no code . I have tried reading the result based on the few resources I can find, but don't know how I'm supposed to be reading the result. Here's what I have so far... uses IdBaseComponent, IdComponent, IdTCPConnection, IdDNSResolver; function TForm1.Lookup(const Name: String): String; var X: Integer; begin //DNS

Reading response from TIdDNSResolver?

若如初见. 提交于 2019-12-22 17:08:34
问题 I cannot find any simple examples of a DNS lookup using Indy 10's TIdDNSResolver component. They're all either for something I don't need (such as MX/SMTP), or are talking terms with no code . I have tried reading the result based on the few resources I can find, but don't know how I'm supposed to be reading the result. Here's what I have so far... uses IdBaseComponent, IdComponent, IdTCPConnection, IdDNSResolver; function TForm1.Lookup(const Name: String): String; var X: Integer; begin //DNS

Why am I getting RichEdit line insertion error when I call Delete in OnChange event?

試著忘記壹切 提交于 2019-12-22 11:10:49
问题 I've googled and checked many places for a solution, but all cases I found differed or involved something more advanced than simply adding or deleting lines. Basically, I want to make a sort of scrolling rich edit (alternative would be moving the caret to the bottom, which I already found a solution for). I'm adding lines to it and checking Lines.Count with the OnChange event of the rich edit and as soon as it reaches value greater 15 I want to call Lines.Delete(0) , however I get the error:

Using conditionals in project's main unit - IDE destroys code

☆樱花仙子☆ 提交于 2019-12-22 10:39:35
问题 I'm building a windows service application which has a configuration to compile it as a basic windows application. The main project file for the exe includes conditionals which determine whether the project is being compiled as a service application or as a windows forms application. The problem is, when I do something which makes the project code change, the code gets destroyed and broken. For example, a line which says Application.Initialize; becomes AppliApplication.Initialize; and the