delphi-xe2

Delphi XE2: how to define not members of a class functions in the component unit

半城伤御伤魂 提交于 2019-12-25 17:47:05
问题 I have problem with not members of a class functions. I want to use that functions in a new component unit but they did not work in a component unit! these two functions must assign to another function in a dll as parameter. When I used this 2 functions(not members of class) in main form they can work but in the new component unit, the dll function cannot call back these two functions any more! How can I resolve this problem ? Is this delphi bug ? because I am using Delphi XE Update 2 this is

How to install TAdoConnection in delphi XE2 starter?

Deadly 提交于 2019-12-25 09:00:52
问题 I just bought Delphi XE2 starter and want to upgrade my projects. One of them is failing because Delphi doesn't know what TAdoConnection is. I stupidly didn't keep a copy of the package when I D/Led it a few years ago now can't remember where I cgot it from How to install TAdoCOnnection et al into Delphi XE2? Thanks Update: alas, I have the Starter edition (who can afford anything else?) Later update, just in case anyone else wants to do some database stuff with a starter edition. I paid for

Delphi webservice and OpenSSL supported SSL/TLS ciphers

时光怂恿深爱的人放手 提交于 2019-12-25 07:06:22
问题 We have a webservice that also provides HTTPS connections: FWebBrokerBridge := TIdHTTPWebBrokerBridge.Create(Self); // TIdHTTPWebBrokerBridge = class(TIdCustomHTTPServer), see IdHTTPWebBrokerBridge.pas LIOHandleSSL := TIdServerIOHandlerSSLOpenSSL.Create(FWebBrokerBridge); LIOHandleSSL.SSLOptions.CertFile := FHTTPSCertificate; LIOHandleSSL.SSLOptions.RootCertFile := FHTTPSRootCertificate; LIOHandleSSL.SSLOptions.KeyFile := FHTTPSPrivateKey; LIOHandleSSL.OnGetPassword :=

How do I install the Chromium package in Delphi?

允我心安 提交于 2019-12-25 05:32:53
问题 I downloaded the necessary from http://code.google.com/p/delphichromiumembedded/ with TortoiseSVN, but I do not know how to use it in Delphi XE2. How do I install the TChromium component? 回答1: To install the component, open the appropriate package - in your case, DCEF_XE2.dpk in packages directory and install the package. 来源: https://stackoverflow.com/questions/14124690/how-do-i-install-the-chromium-package-in-delphi

Delete and refresh a record in DBgrid where u maintain the same position

喜欢而已 提交于 2019-12-25 05:25:33
问题 I have a small database I'm using dbgo, I have a DBgrid displaying my records, I need to know how to delete a record and refresh the database where the index arrow stays in the same position or at least go to the next? but currently my index arrow jump to start form the beginning each time I refresh ! 回答1: Just keep and reset Recno var I:Integer; ....... I := Ads.Recno; Ads.Delete; Ads.Recno := I; an example implementation for usage with DBNavigator could be Procedure DeleteAndKeepRecno(Ads:

HelpSystem doesn't work in Delphi XE2 with a few projects

不想你离开。 提交于 2019-12-25 03:49:34
问题 Create any application in Delphi XE2 and press F1 to run help system. You'll see the help article or the following window (for search string 'function'): I have an application for Delphi XE2. When I open it and press F1 help system opens only the following window (for search string 'function'): If you'll open the first project again (after the second) help system opens the same window as on the second project (incorrect). I have tried to delete the following files: .dproj, .dof, .identcache,

Delphi: Access Violation at the end of Create() constructor

泪湿孤枕 提交于 2019-12-25 03:47:43
问题 I have a very basic and simple class like this: unit Loader; interface uses Vcl.Dialogs; type TLoader = Class(TObject) published constructor Create(); end; implementation { TLoader } constructor TLoader.Create; begin ShowMessage('ok'); end; end. And from Form1 i call it like this: procedure TForm1.Button1Click(Sender: TObject); var the : TLoader; begin the := the.Create; end; Now, just after the the := the.Create part, delphi shows the message with 'ok' and then gives me an error and says

Delphi XE2 - always getting 401 Unauthorized () trying to get OAuth Access Token from Intuit

為{幸葍}努か 提交于 2019-12-24 20:48:04
问题 I am working on the last step of the OAuth dance with Intuit. This is a Delphi XE2 desktop app and I am using the Indy components. I am successfully getting my request token from Intuit and the callback from their website is properly redirecting me to our web service after I authorize my app. Using the returned verifier from Intuit I build my request to get the access token. I am always getting back a HTTP/1.1 401 Unauthorized error when I make my call to Intuit. If I post the URL I build

LIBRTMP Delphi: use dll

倖福魔咒の 提交于 2019-12-24 14:28:46
问题 I have before me the task of loading and saving rtmp stream from the server to your computer. Exploring the internet, I came to the conclusion that it is necessary to use the library LIBRTMP . I work in Delphi XE2 and the only appropriate code I found on this page and sales on Pascal page. I am having difficulties with the translation of this code into a usable form for delphi, because types cint , pcchar and etc I did not recognize. I do not work with C or C + +, could you give me directions

List and BinarySearch index not every correct

白昼怎懂夜的黑 提交于 2019-12-24 13:59:57
问题 i have some problem again about list and binarysearch. In general, i have: type TMyArr = array [1..5] of Integer; PMyList = record Comb: TMyArr; ... // other fields end; TMyList = TList<PMyList>; var MyArr: TMyArr; MyList: TMyList; rMyList: PMyList; i load value in array MyArr and want find element MyArr (with all values in it) in list TMyList, then i use: rMyList.Comb := MyArr; MyList.BinarySearch(rMyList, iIndex3, TDelegatedComparer<PMyList>.Construct(Compare)); with Compare so defined: