delphi-xe7

NPAPI plugin framework Error

£可爱£侵袭症+ 提交于 2019-12-13 09:51:09
问题 I am trying to use NPAPI Framework from Yury Sidorov by following this answer: How to embed Delphi VCL form into HTML page using NPAPI but I get an error with NPPlugin.pas. I am using delphi XE7 and here what i did by following Krom Stern instructions procedure DefDebugOut(const Msg: string); begin OutputDebugStringA(PAnsiChar(Msg + #13#10)); // Changed From Pchar To PAnsiChar end; but still getting error with compiler with this message [dcc32 Error] NPPlugin.pas(2215): E2010 Incompatible

How to change the fastreport layout in xe7

╄→尐↘猪︶ㄣ 提交于 2019-12-13 06:47:26
问题 I want to change the Layout or band in fast report depending upon the dataset value ,how can be this done in fastreport 5.0 AND I am using delphiXE7 If it's a car ticket I want to print car and if its bike I want to print the bike details ,My data set have values of all orders in which some orders may have car and bike tickets so , When I generate the report (report is the ticket for my application) based on the data set value if its car I want to show car images and if its bike different

Hide empty space behind invisible list box items

人盡茶涼 提交于 2019-12-13 02:39:36
问题 I can see other people have had this issue, and the proposed solution is not working for me. I have a list box with a number of static items populated in design-time, and in run-time, some list box items have their visibility changed. However, those items which are not visible leave an empty space in the list box where that item belongs. It's proposed to set the invisible item height to 0, and it's apparently worked for people, but it's not working for me. This is a common function I wrote to

How to set default value to record in delphi

a 夏天 提交于 2019-12-12 20:22:52
问题 I am using RAD XE7. In my Delphi application I want to set default values for fields of Records. I tried following code, but it does not compile, I know it is wrong. I there any another way? TDtcData = record TableFormat : TExtTableFormat = fmNoExtendedData; DTC : integer = 0; Description : string = 'Dummy'; Status : TDtcStatus; OccurenceCnt : integer =20; FirstDTCSnapShot: integer; LastDTCSnapShot: integer; end; 回答1: If you want to define a partially initialized record, just declare a

changing the initialization order of the unit in Delphi

我怕爱的太早我们不能终老 提交于 2019-12-12 10:39:19
问题 I'm using Delphi XE7 for developing windows 32 bit application. My application contains many units, which has an initialization section. I need to initialize one particular initialization section at first. Is it possible to set the priority? I have tried to write the initialization section in dpr file, but the compiler has rejected this. Please help me to execute the particular initialization section at first. Thanks in advance. 回答1: In simple terms, initialization sections are executed in

Why are all the dialogs are using the “old” Android 2.x style?

只愿长相守 提交于 2019-12-12 07:16:39
问题 I am currently using RAD Studio XE7 and just wondering why all the dialogs in my Android app are using the "old" 2.x style? And how to force my Android app to use the 4.x style in all the dialogs like date picker and MessageDlg? Using StyleBook and modying the AndroidManifest.xml didn't work. Thanks in advance. 回答1: David I posted the answer to your same question on the Embarcadero Community Answers site: Why all the dialogs are using the "old" Android 2.x style? I alerted our development

GMLib Could not complete the operation due to error 80020101 (v1.5.3)

百般思念 提交于 2019-12-12 05:37:59
问题 I have an application using the latest version (v1.5.3) of GMLIB. Starting today, the map now generates the above generic error when I place an object on the map. My application has not changed. I also tested the GMLIB MegaDemo that was provided and the same error is generated when starting the map - previously there was no error. I am using XE7 and have IE11 installed. It appears the same error occurred several years ago and Catedill released an update to fix. Below is the function and

Operation not permitted when trying to create a TFileStream Object on iOS8

∥☆過路亽.° 提交于 2019-12-12 04:36:38
问题 I am converting a Delphi windows app to be multi platform, a crucial part of the application is to be able to export some data files from an SQLite database to the host machine. It works absolutely fine on windows and OSX, but when I deploy it to an iPad I get an error message stating : Cannot create file "/var/mobile/Containers/Bundle/Application/9FFD6B02-1B3A-4F07-XXXXXXXXXXXXXXXXXX/AAG_Multi.app/Text/Templates/full Transcript.dwt Operation not permitted I tried TMemorystream as well, same

How do I make a beep sound in Android using Delphi and the API?

这一生的挚爱 提交于 2019-12-12 04:06:18
问题 After having a look at the Androidapi.JNI.Media.pas, I coded the following procedure: uses Androidapi.JNIBridge, AndroidApi.JNI.Media; procedure Sound(ADuration: Integer); implementation procedure Sound(ADuration: Integer); var Volume: Integer; StreamType: Integer; ToneType: Integer; ToneGenerator: JToneGenerator; begin Volume := TJToneGenerator.JavaClass.MAX_VOLUME; StreamType := ? ToneType := TJToneGenerator.JavaClass.TONE_DTMF_0; ToneGenerator := TJToneGenerator.JavaClass.init(StreamType,

IMAGE_FILE_NET_RUN_FROM_SWAP in Delphi XE7

坚强是说给别人听的谎言 提交于 2019-12-12 03:17:08
问题 By writing a portable WIn32 app I want to make sure that all the proper settings are done. I googled for it and found the compiler IMAGE_FILE_NET_RUN_FROM_SWAP switch. I tried to include it in my dpr file just like this: {$SetPEFlags IMAGE_FILE_NET_RUN_FROM_SWAP} // THIS ONE! {$R *.dres} {$R *.res} Anyway Delphi XE7 says [dcc32 Error] Project1.dpr(330): E2003 Undeclared identifier: 'IMAGE_FILE_NET_RUN_FROM_SWAP' Anyway by reading Embarcaero wiki it seems the name is fine. Any suggestion? 回答1: