Quantcast
Channel: Recent Topics - Forum - Embarcadero Community - Embarcadero Community
Viewing all 3677 articles
Browse latest View live

Reading data from the website - by: Jacek

$
0
0
I am asking for help in accessing the website Linkhttp://dctgdansk.pl/pl/strefa-klienta/sprawdz-kontener-online/ from the code level.

There is a "Container number" window in which the container number should be entered and after pressing the arrow data on a given container is made available.

Unfortunately, the source of the page does not have such information that can be loaded into my program via the function

I do not have experience in reading data from websites, but in one case, which I use in the address of the page, all data necessary to open another page appears. In this case, the website address is unchanged. I can use
but how can I be sure that the container number will go to the place marked "Container number" on the site?

SOAP delphi - ESOAPDomConvertError when trying to send request - by: Developer1

$
0
0
I am trying to consume a webservice using the WSDL importer.
The wsdl service - services.gatewayedi.com/eligibility/service.asmx?wsdl When I try to invoke methods of the service I get this error message: "Conversion from class TXMLNodeList to SOAP is not supported - SOAP classes must derive from TRemotable" under Delphi 10.2.3, under Delphi2007 i get directly AV. All classes which are passed to service methods inherit from TRemotable (as they are generated by WSDL importer).
Here's the code used to invoke the SOAP method:

It doesn't matter whether I enter valid user and password or not, all happens when soap envelope is created probably.

When using unit called Hash, Delphi finds System.Hash - by: Tor

$
0
0
I got a problem today compiling a test program with an added library, using XE8.
My unit uses a routine in the library, which again uses Hash, and when that is mistaken for System.Hash, of course the code cannot find the definitions that are in Hash, and I get a compiler error.
System is defined in my project options as one of the usual unit scopes. My other units rely on that, as the code also compiles on some old Delphi versions (6, 2010).
This is about source code compilation, not packages or dcus.

How do I get this code to compile in XE8, the unit-scope-aware version?
I have tried adding the Hash unit explicitly in the dpr file, with path. But I guess the defined unit scope kicks in too early.
This feels like a very trivial problem, so could someone please tell me what obvious, basic solution I am missing?

Thanks for any help.
::tor

Pasting into TMemo is very slow in new version - by: Anders

$
0
0
I just switched from C++Builder XE2 to 10.2 and noticed that pasting into a TMemo has become very slow.

Repro:
- Create new VCL application
- Add a TMemo
- Run app, paste 300k lines (~15MB) of text into the component
Result: it takes >5 seconds for the app to handle the paste.

Doing the same repro in C++builder XE2 and the paste is more or less instant.

Why is this? Any workaround?

ADD Combobox item and Listbox item/s to database - by: Iknow

$
0
0
Hi Group, I have a requirement that will add OrderID from a Combo-box and selected item/s (ProductID) from a list-box, 1 OrderID can have many ProductID's. I am guessing that the code will have to loop through the the listbox indexes until EOF (if such a property exists for listboxes) Thanks and regards

Check HDMI Port - by: daniel

$
0
0
Hi all,
i need to force from my application my screen to switch to HDMI1 where the PC is connected because my screen is losing the signal somehow and it is looking for other signals. I just need to make sure screen never loses the signal.

Are there any components or any samples of how to do this?
Commercial components will also do.

Many thanks!

Force HDMI port to display the signal - by: daniel

$
0
0
Hi all,
My screen is losing the PC signal that is connected via HDMI1 somehow.
I would like to be able to force the screen to stay alive and use HDMI1 where it is connected.

Are there any solutions for this?
Any help or components will be very much appreciated.
Commercial components will also do.

Many thanks!

SOAP delphi - ESOAPDomConvertError when trying to send request - by: Developer1

$
0
0
I am trying to consume a webservice using the WSDL importer. The wsdl service - services.gatewayedi.com/eligibility/service.asmx?wsdl .
When I try to invoke methods of the service I get this:
under Delphi 10.2.3, under Delphi2007 i get directly AV. All classes which are passed to service methods inherit from TRemotable.

Here's the code used to invoke the SOAP method:

It doesn't matter whether I enter a user and password, all happens before we send data to the server.

Interbase - by: Todor

$
0
0
Please make a full version of IB2017 with update 2 and hotfix 1.
And why do not you always make full versions?

XE8 drag crashes windows explorer on Windows 10 - by: Mike

$
0
0
I'm having a problem with Firemonkey XE8 on Windows 10, I'm wondering if someone can do a very quick test with XE8 and/or the latest Tokyo release of verify if they know it has been fixed since XE8.

1. Create a new Firemonkey 2d blank application.
2. Place a TRectangle on the form and set DragMode to Automatic.
3. Open a Windows Explorer window. (to help with step 5)
4. Run the app and drag the rectangle outside of the form, over the desktop. The crash happens while dragging, before any drop occurs. On my non-dev machine you can see the desktop redraw itself and go black momentarily.
5. Observe if Windows Explorer (desktop shell) restarts. If it does the Windows Explorer window created in step 3 probably won't be recreated. There's also an entry in the event viewer that explorer.exe crashed.

More info: On my Windows 7 dev machine, the problem does not seem to happen. On my Windows 10 Surface, the windows explorer shell crashes and restarts, but it doesn't interrupt the drag operation.

installed Intraweb 14.2.7, now I get AV on Close of App - by: Tom

$
0
0
it occurs in IWServerInternalFiles.Finalization

Any idea what causes this?

Thanks
Tom Obenschain

Where are the Delphi forums? - by: Nick

$
0
0
I mentioned that these forums are "unapproachable".

Here's my first comment: Where are the Delphi forums? A Delphi developer will come here and want to ask a question in the Delphi forums, but there doesn't appear to me to be such a thing.

Can we get some sub-forums for Delphi?

Is there any way I can deploy to a remote Android device via PAServer? - by: Erich

$
0
0
Hi there,

My CI/CD pipeline runs in AWS. The build server is Jenkins, and I've managed to get that server to have access to a local Mac on my network for OSX & iOS deploys via VPN & PAServer. This is neat and I really like it given that I can't actually touch my build server. That said, I would like to get a similar setup for Android deployment. The perfect world would see me attaching my android device to my local Mac, but if need be, I can use a local Windows machine in a similar way, but I'm clueless on where to set this up ... if it can be setup.

Comms between my build server and my local machines is not an issue, so if it could work over two machines on a LAN, then it will work for me.

Any help/advice would be appreciated.

Erich

What versions of MySQL can dbExpress connect with in Delphi 10.1 Update 2? - by: Christopher

$
0
0
I am trying to write a VCL application in Delphi 10.1 update 2. I want to use dbExpress to access a MySQL database. We use MySQL 5.7.20. When it tries to connect, I get a dialog with "DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, of the wrong version, or the driver may be missing from the system path."
I have seen this problem on this and other forums, and I have made sure I have libmysql.dll in the system path, and that that same dll works fine with MySQL Workbench. The database is on the same machine as the application so there's no network issue. I have verified my connection parms at runtime.
I'm down to thinking it may be that dbExpress (via dbxmys.dll) doesn't support MySQL 5.7.20, but I have not been able to find any recent documentation on what versions of MySQL are supported.
Any suggestions are welcome.

How do i make FileOpenDialog DPI aware? - by: Gerben

$
0
0
Hi

I cannot make the FileOpenDialog DPI aware.

I change my display's scaling to 150% (Right-click on desktop and select "Display Settings").

If i start Notepad and select File>Open its dialog is resized to 150% (e.g., large fonts).

If i run my demo and open a TFileOpenDialog it is not resized to 150%, it stays small. "Enabled High-DPI" is checked.

Why is this not working?

I have made a very small demo to show this behavior, see attachments.

Thank you for helping,
- Gerben Abbink

C++ Builder linker error - by: Pier

$
0
0
I have managed to get a C demo program to compile in C++ Builder 10 as a console application but I get the following linker errors:

[ilink32 Error] Error: Unresolved external '_TMR_create' referenced from ...
[ilink32 Error] Error: Unresolved external '_TMR_paramGet' referenced from ...
[ilink32 Error] Error: Unresolved external '_TMR_RP_init_simple' referenced from ...
[ilink32 Error] Error: Unresolved external '_TMR_paramSet' referenced from ...
[ilink32 Error] Error: Unresolved external '_TMR_strerr' referenced from ...
[ilink32 Error] Error: Unresolved external '_TMR_bytesToHex' referenced from ...

I have read various posts on Stack Overflow regarding this type of error and I have also read this document written by Embarcadero staff in 1998: community.embarcadero.com/article/techni...mbol-linker-messages

However, I still can't get the program to link successfully. If I uncheck (default is checked) the "Generate underscores on symbol names" option in "Project | Options | C++ compiler | Output" and compile the project I don't get the above errors but I get the error message:

[ilink32 Error] Error: Unresolved external '_main' referenced from ...

If I leave the "Generate underscores on symbol names" option checked I get the original errors. I have also tried checking and unchecking the "Don't prefix underbars to exported symbols" option (default is unchecked) but it does not seem to have any effect.

What am I doing wrong?

I need help with a project of mine - by: Jessica

$
0
0
So i have a project for school but im getting this SQL Syntax error and i just cant seem to fix it

First chance exception at $76C23F12. Exception class EOleException with message 'Syntax error in INSERT INTO statement'. Process MainForm_P.exe (8848)

procedure TForm1.Button1Click(Sender: TObject);
var
Username, Password : string;
begin
Username := edtUsername.Text;
Password := edtPassword.Text;
with ADOQuery1 do begin
SQL.Clear;
SQL.Add ('INSERT INTO Accounts(Username,Password)');
SQL.Add('VALUES (:Username, :Password)');

Parameters.ParamByName('Username').Value := edtUsername.text;
Parameters.ParamByName('Password').Value := edtPassword.text;
ADOQuery1.ExecSQL;
end;
if ADOQuery1.RecordCount = 0 then
Application.MessageBox('Wrong Username', 'Error',
MB_OK or MB_ICONINFORMATION)
else
begin
if ADOQuery1.FieldByName('password').AsString <> edtPassword.Text
then Application.MessageBox('Be sure username and password is correct',
'Error', MB_OK or MB_ICONERROR)
else
begin
Form1.Hide;
Form2.Show;
end;
end;
end;

Custom manifest in UWP apps for Microsoft Store - by: Vadim

$
0
0
I pack my Windows application in appx file using Deployment Manager. When I try to upload it to Microsoft Store, it fails with the following message:

"You don't have permissions to specify the following namespaces in the appx manifest file of the package MyApp.appx: restricted namespace: schemas.microsoft.com/appx/manifest/foun...strictedcapabilities "

I try to edit the automatically generated file AppxManifest.xml (removing the "Capabilities" section from it, or completely replacing its contents with a standard pattern from RAD Studio help), change the manifest file name and specify the manifest setting as "Custom". Still, the result is the same: Microsoft Store doesn't like the line about "restricted capabilities", though now this line isn't supposed to be there at all.

It really looks like an appx file always contains a standard, automatically generated manifest, even when I try to specify it in my own way.

Any advice?

My Reply to Moe. - by: Mike

$
0
0
Hi Mike,
Kind Reminder!
Are you looking forward to renew this maintenance contract?
Waiting for the prompt response!

________
Moe,

I'd love to be able to renew but I can neither afford it at this time nor justify it. Things have stalled here and I haven't even installed the latest version of Delphi I purchased in early 2017. Moreover, it looks like I won't be using Delphi for anything important the remainder of this year.

I understand your need to have a steady and predictable cash flow but your new model, and prices, are making it impossible for me to continue using Delphi, and frankly, I have difficulty seeing how it would attract any new users.

I have been using Delphi since version 1.0, and prior to that used Turbo Pascal. I used it as part of my job modeling the creep of metals. It was a small part of my job, but the price was right and the terms fit how I worked (I could install it on a second machine as long as I was using only one copy at a time.) Still, I bought every book on Delphi I could find and updated every version through version 6. I continued using Delphi on a mostly hobby basis, keeping my skills up and doing something useful once in a while. After Delphi 6 prices really started to climb and I didn't see compelling features I needed. I eventually purchased Delphi 2009 and installed it but could not get it to work, so I continued with Delphi 6, which I am still using. The latest version, which I purchased last year, is still sitting in the box. In total, I have nearly $2000 in Delphi products I have still not used.

Apparently the thinking at Delphi is, if I am not a professional programmer I should just drop out of the Delphi scene, maybe go with Perl or something else. That makes me genuinely sad. I have loved using Delphi all these years.

Mike

delphi xe4 wont start - by: boris

$
0
0
after windows 10 update i cannot start BDS.exe, when it come to 15 MB it stops in Task manager...i have delphi XE4
Viewing all 3677 articles
Browse latest View live


Latest Images

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