Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all 3212 articles
Browse latest View live

Tethering Manager (Two Network Adapter)

$
0
0

Hope you can help

if you have two network adapter installed in your computer (two Ethernet cards) how to make the Tethering Manager discover and pair to remote managers on the network adapter that I choose.

thank you very much

ray

 

 

 


Interbase XE7 performance issue

$
0
0

Hello!

Currently our company have some Interbase XE database servers. This summer we needed to create another database server. Unfortunatelly, Embarcadero ddn't provide Interbase XE licence, only Interbase XE7. When we bought and installed this version, we've faced huge performance troubles with our buisness operations.

After lot of researches, we found that query plans on same SQL queries are different on XE and XE7. For some reason XE7 tried to use two indices when XE used one.

For example,

*** SM INDEX (TBL_STORES_AND_MOVES_STORE_ST,TBL_STORES_AND_MOVES_CAT_ST) *** - XE7

*** SM INDEX (TBL_STORES_AND_MOVES_CAT_ST) *** - XE

Because of this issue, some queries on Interbase XE7 works 10-20 times longer then on Interbase XE, and this is impossible for us. 

May we have some licence downgrade from Interbase XE7 to Interbase XE? 

 

 

Is there a way to call crystal report from within delphi 10.2?

$
0
0

If I have reports in crystal report, is there a way to call them within the delphi code.

Please advise.


Thanks.

FireDac for FireBird

$
0
0

Hi all,

I'm new here. In fact, I used to be a .NET developer for to many years, and now I should get into Delphi and FireBird.

In order to achieve this, I download the RAD Studio 10.2.1 trial version and installed it on my home machine. The trial period should be enough to learn the basics and figure out how the things are running in Delphi, the syntax and, of course, how to connect and manipulate data in a database. In this case, the company is using FireBird.

After the installation, I found that a bunch of nice application samples were also installed. Nice indeed. I tried to run them all, but some of them couldn't be started, due some missing libraries.

After some thought exchange with my colleagues, I got the reason why: it lacks the FireDac for FireBird. Ok. So... uninstall everything and reinstall... something went wrong in the first time. Some problem.

Therefore, I realize that the FireDac isn't part of the trial version. As the rest of the company is using it a lot, it is supposed that I learn the maximum possible on every platform they are using, and that includes FireDac.

So... I'm asking... It is real that the firedac doesn't come with the trial version of the RAD Studio? Is there any way for me to install it for a kind of a trial period so I could learn the maximum about it?

 

Many thanks in advance for all the time spent and information that you can send me.

All the best,

Artur

How to use FireDAC to connect with MS-SQL in android system? (XE10.2)

$
0
0

I met some problems

[bccaarm Fatal Error] Unit1.h(23): 'FireDAC.Phys.MSSQL.hpp' file not found

Unable to find static library: libFireDACCommonODBC.a

How to solve these problems?

focus problem

$
0
0

Hello there Hello there if the customer code is empty in the transaction number where the customer code and transaction number are in accordance with the business rule, we want to send a message and enter the related field. However, when we write the code in the onexit field in the transaction number field, the cursor is not the focus on the customer number. We do not have a problem when we want to do the same control at the button. procedure TForm1.Edit2Exit(Sender: TObject);

begin

  if CustomerCode.Text = '' then

  begin    

      ShowMessage('Error !!! Customer Code is null');

      CustomerCode.SetFocus;

      Abort;

  end;

end;

EMS Management Console Access Violation

$
0
0

I am trying to set up Multi Tenancy and have ems server running on IIS on Server 2012.

I can run EMSMultiTenantConsole and add and modify tenants.

I am then trying to run EMSManagement Console to connect to the tenant and add an initial user. Host 'localhost' - Port '8081' - URL Path 'emsconsole.dll' . Test Connection returns successful connection.

I enter the Tenant ID and Secret but when I try to log in using 'consoleuser' I get an access violation error.

Any ideas??

Trial Serial Key and Password For Rad Studio 2007

$
0
0

I would trial Rad Studio 2007 but cannot find a way of generating a licence key and password.  Are there any solutions out there?


Delphi 10.2 64 bit windows compile to win32

$
0
0

Strange case ... i have installed delphi 10.2. I have create a console application and I compile it to a 64-bit Windows project but the executable is created in the win32 folder and it is a win32 and not win64 application. If I start the project with the play button it says "Counld not find program, '..." with the path of the project in the Win64 folder. New console project just created. In the project is defined WIN32 compiler directive and not WIN64, but 64-bit windows is selected.

Ho già disinstallato ed installato diverse volte ma il problema permane. Nello stesso PC è installata anche la versione XE7 che funziona correttamente.

 

Regarding Case# 00594888: Bcd Field Overflow runtime error with floating points data from Quickbooks

$
0
0

First: I have an commission program built with Dephi Enterprise Berlin on win32 platform. Database is Quickbooks Version Enterprise 2017 desktop pro has its own driver for odbc for read access called QODBC that is shipped and installed with Quickbooks.  So, I am using FDConnection components and they have been working fine until I upgraded to Delphi 10.2 and recompiled the program. This created an BCD overflow runtime error with all BCD fields mapped from Quickbooks.

Next: I found that changing Delphi Firedac component fdconnection  to ADOconnection and I did not get the BCD error, (worked fine).  Also, I continued with Firedac component FDConnection using FDQuery and was able to use the FDQuey Data Mapping rules to change dtBCD to dtDouble and that also fixed the problem.

However, this means that I will have to make this change and retest everything, not cool. 

Also,  when I went to Studio 10.2 Tokyo the Firedac components that are working with Firedac ODBC conponent isn't working correctly for BCD fields.

Delphi maps these fields as BCDField (Precision 13 size 2) from Quickbooks database.

 

Trace file and after the trace below is a grid shot showing the data with the Bcd overflow results. 

However, I did notices that values in the bcd field that have a Decimal value had the overflow error and whole numbers did not. 

Trace:

--- new start of FireDAC Trace ---
trace2_1

Screen shot of grid data:

Grid data

 

How to call activex method from javascript

$
0
0

I have issue with delphi activex control. I create acitvex library and then activex form. I define one function and i want to call this function from javascript. But i can't javascript trow error "Object doesn't support property or method 'Method1'".

This is HTML code:


    

This is delphi code *.ridl file

interface IGetDocs: IDispatch
{
    [id(0x000000E8)]
    HRESULT _stdcall Method1(void);
};

this is *_TLB.pas file

IGetDocs = interface(IDispatch)
    ['{8F2BF1C6-98A5-4D6B-A43E-890698A3C91D}']
    procedure Method1; safecall;
end;

and this is file with implementation

unit GetDocsU;
{$WARN SYMBOL_PLATFORM OFF}
interface
uses
    Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    ActiveX, AxCtrls, GetDocs_TLB, StdVcl, Vcl.StdCtrls, ShellApi, Vcl.XPMan,
    IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP;

type
    TGetDocs = class(TActiveForm, IGetDocs)
protected
     procedure Method1; safecall;
public
    { Public declarations }
     procedure Initialize; override;
end;

implementation

uses ComObj, ComServ;
{$R *.DFM}
procedure TGetDocs.Method1;

begin
       MessageDlg('HI from active x', mtInformation, [mbOK], 0, mbOK);
end;

end.

This is javascript:


 

Can anyone help with this issue. I try to move method in public section in published section without success. I try also to register activex control with regsvr32 and from delphi IDE but got same error

Error on ClientDataSet in Tokio 10.2

$
0
0

After the installation of RAD Studio 10.2 Tokio, and not in the previous version, my code give me an error.

When i assign a valid index string to the property IndexName of a ClientDataSet (not always but often, but i don't understand why) the code give me this error:

Access violation at address 4DB0D009 in module 'midas.dll'. Read of address 00000000.

These are the the steps before the error:

4db0d009 +000 midas.dll
0079489a +062 ... Datasnap.DBClient TCustomClientDataSet.SwitchToIndex
00794a72 +07e ... Datasnap.DBClient TCustomClientDataSet.SetIndex
0079516e +002 ... Datasnap.DBClient TCustomClientDataSet.SetIndexNam

The problem is inside SwitchToIndex procedure i think, on the row:

Status := FDSCursor.UseIndexOrder(MarshaledAString(MetaDataFromUnicode(IndexName)));

 

What could be the reasons be?

Lost installation files

$
0
0

HiDue to a crash at my HD I have lost my Delphi XE2 program. Is there away to download them again?I still have my registration code for itBRSøren Dueholm

How to get Delphi Berlin if I have licence for Tokyo?

$
0
0

Hello,

 

  I have a license for Delphi Tokyo, but I need Delphi Berlin because some componentes, how can I get that versión.

 

Thank you.

My sqllite database responds with "DATABASE IS LOCKED". How are we supposed to update a record please?

$
0
0

I have a multi-device app with a FDconnection, Bindsource and 2 queries used to populate 2 listviews.

These use a very simple sqllite database with 3 tables in it.

I need to be able to edit records in one of those tables and then re-display icons on one of the listviews (by clicking colorbuttons).

I have tried setting Lockingmode=Normal in the FDconnection (in code on the beforeconnect event - as if you try to change that setting in the editor Delphi comes up with loads of field not found messages that then prevent you closing your project AND YOU LOSE ALL RECENT CHANGES).

I have tried closing the FDconnection, re-opening it and then running an "update table set field=nn" query.  It falls over on the execSQL saying that the database is locked.

I have also tried using the same table query to do a 

locate

append

Edit

fieldbyname('fieldname').asinteger:=tag;

Post

execsql

Same locked database error

 

Please could somebody help - as this ought to be easy.  All I want to do is update data for goodness sake.  All very easy in VCL.

This is for single user access on a single database on a mobile phone (whilst displaying the same data in 2 listviews).

John

 

 


ListView item anchored?

$
0
0

Hi,
Is there a way to have the ListView item positions adjust depending on the form size, or portrait/landscape presentation?
I have a ListView with all my items set correctly using the "Toggle Design Mode" option. But how to tell each item to stick to the right or left of the list when the view width increases?
I have columns with totals, but they remain in the same position when flipping to landscape mode on mobile devices?

In Portrait they're on the right of the screen, in Landscape, they stay in the middle of the screen instead of moving to the right.

Thanks for any clue.

Steve

Update subitems from TListView

$
0
0

Hi,

 

I made a form with a TListView and a ClientDataSet connected by LiveBindings. I would like to update the SubItems from TListViewItem with no cursor change. It's the same behavior of Twitter.

 

 

When I use the ClientDataSet.Locate method to select and to update the values, the TListView change the selected Item. Those values will change constantly, so I need to update those values with no cursor change.

 

Which is the best way to do this?

 

Thanks!

 

TButton images missing in Delphi 10S VCL app

$
0
0

Complex one here.

I have a large button image TImageList repository on a common form with 226 24x24 bmp images. I use these images to source imagery for all toolbars and TButtons in a rather large application. Some TButtons in forms are fed via TActionList items while others link directly to the TImageList object on the common form.

In my main application, all ToolBar buttons have their images. All form buttons have none when executing despite displaying perfectly in the form designer. Not just a blank image, but no image at all, with the Caption text centred in the button and no space for an icon.

However, in a test program in the same project group, linked to the same common form and using the same image repository, all TButton instances show their images as expected.

I have started debugging the VCL library code that paints the buttons in the main application (well - fails to...) and seen that a handle for the TImageList component is nil in the main application, but valid in the test program.

To add to the complexity, this is a 'suddenly' situation since these images used to show just fine in all circumstances.

Anybody have any suggestions how I can fix this?

Context: Delphi 10.2 / Intraweb

$
0
0

Hello

I installed BDD components in UserSessionUnit, then a DataSource in Unit1.an IWButton in Unit1.with the code:
procedure TIWForm1.IWButton1Click (Sender: TObject);beginDataSource1.DataSet.Open;end;
Compilation without problem, but at the execution I get:Error :Violation of access to the address 007801A7 in module 'test.exe'. Reading address 00000000
Do you have an idea ? thank you

Write and Run application on C++ Builder

$
0
0

Hi, How do l write and compile an application on C++ Builder?. I have a C++ source code. The application is for a structural design of a civil structure. Thank you

Viewing all 3212 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>