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

TListView Question - by: Zack

$
0
0
I'm coming over from the C# side of things, and it's been over 15 years since I touched Delphi last - so I beg for forgiveness.....
I started a multi-device application with TListBox and got it working, but I now see I probably should have used TListView instead. Is there an EASY way to pass my objects around? I hate having to deal with arrays and ordinal values to keep track of stuff. Seems like we should be way beyond that from a productivity standpoint.
For example, I don't like having to do something like.....
listviewitem.Data:=customObject.Property1;
listviewitem.Data:=customObject.Property2;
listviewitem.Data:=customObject.Property2;
when I should be able to do something like the following.....
listviewitem.Data:=customObject;

then when the user clicks on the detail I handle it in the click event and cast the AItem to a type and go on with life. I feel like I've already got the object in memory, why am I creating all these Data properties that also have to be managed. Am I making too much out of this?


procedure TTabbedForm.PopulateOutstandingDataList();varlistviewitem: TListViewItem;beginListView1.Items.Clear;
transactions:=TObjectList.Create();transactions.OwnsObjects:=True;transactions:=TransactionClass.TTransaction.PopulateOutstandingDataList(creditcards);
for transaction in transactions dobeginlistviewitem:=ListView1.Items.Add();listviewitem.Text:=transaction.TransType + ' from ' + transaction.Merchant;listviewitem.Data:=transaction.TransID;listviewitem.Data:=transaction; <
Why can't I do this?????listviewitem.Accessory:=TAccessoryType.More;listviewitem.Detail:=DateToStr(transaction.TransDate);end;end;

berlin executable are marked virus in virustotal - by: Angelica

$
0
0
I am new to delphi and can't understand why delphi berlin 10.1 update 2 is marked virus when scanning on virustotal.
Anybody can check this, create an empty vcl application make it in release mode and check on virus total.

Please do something.

Livebindings very slow in FMX - by: Bruce E27950

$
0
0
I have recently converted a simple VCL program to Firemonkey, one which uses a series of clientdatasets to process data read in from spreadsheets. In the VCL version, processing of a few thousand records (say 9000 as one examples) is almost instantaneous but the livebindings version takes minutes.
Is this normal? Surely not? I am doing very simple processing with a series of calculations and then populating a TeeChart graph but the issue is definitely with the clientdataset aspect of livebindings. I do have LogChanges set to false so that is not an issue.

Any advice for better ways to do things would be appreciated

Thanks
Bruce

Custom Plugin to CodeGear C++Builder 2007 - by: Victor R26984

$
0
0
Hello ,

We need to wrivte a plugin to CodeGear™ C++Builder® 2007 IDE.
Back in C++ Builder 3 we could access the IDE menu like this:
TIMainMenuIntf *MainMenu = ToolServices->GetMainMenu();

Maybe you could provide me with some examples of how it should be done in C++ Builder 2007?

Thank you,Victor

[compilation] release compilation looks for rtl240 - by: Mojdy

$
0
0
Dear Berlin Users,

I have probably trivilal problem, but cannot overcome it. I am trying to compile my hello world application and I get error:
"Unable to locate component"
This appliation has failed since rtl240.bpl was not found.

In Project Option I chose Release Configuration - 32 bit Windows platform and I have selected:
Link with Dynamic RLT and
Link with Delphi Runtime library and
Link with runtime packages

I am using RAD 10.1 Berlin.
Any thoughts?

Thank you in advance!

Newbie: How to style you app, like we do in HTML5 - by: Avi C28061

$
0
0
Hi,
I am a newbie to Delphi (well, not exactly a newbie but the last version I remember was Delphi7). I am trying to see if I can come back to Delphi for cross platform development.
Currently, I develop mostly with HTML5 on the client side where styling elements in the DOM is done via

Audio Video Interleave - by:

$
0
0
Welcome,
I would like to write a small class that can append an array of bitmap images into an avi file with captured audio live from my speakers. Is their anybody who can mention what API I can look at for my task?
Please, no 3rd Party Components.
Best wishes,
PS: C#.NET is preferred and/or Delphi, doesn't matter.

How to define portnumber used by rmtdbg when calle - by: Alf C2461

$
0
0
When debugging a win64 bits application using PAserver on a remote Win 2008 server inside a router, I need to define the ports not only used by PAserver in the paserver.config, but since also rmtdbg.exe is also used, the ports used by that need also to be opened in the router.

Is there around some way to control what ports are used in both directions?

Or is this a bug in RAD Studio Seattle and earlier?
From http://stackoverflow.com/questions/18122670/which-port-is-used-by-delphi-remotedebugger it is shown that if rmtdbg.exe is started directly, it will use 64447 as default for listening, but when started from pasrver, it sometimes use that port and often not. :-(

MacOS: my buttons in caption - by: rakhmet

$
0
0


Is it possible to create my own buttons with glyphs/bitmaps in caption for MacOS? I see it there in Screenshots, but can't see it in Delphi/FMX :(
Please help me.

RDPCOMAPI no longer working in Windows 7 - by: Martin S5162

$
0
0
I am a simple app to wrap the RDP viewer com object that I created using the Delphi wizard (TRDPViewer).
This application has been working fine in the past but recently I have found that this app no longer works on windows 7. It works fine in 8 and 10. The only changes was the new versions of Delphi. I confess I never tested it on Win 7 after upgrading.
I get a "Unspecified error" when setting the Visible property to TRUE (call stack below).Any thoughts on how to debug this would be appreciated.
Thanks in advance,Martin
00598d74 +014 NEORemoteView.exe System.Win.ComObj 1468 +1 OleError
00598d88 +00c NEORemoteView.exe System.Win.ComObj 1475 +0 OleCheck
0071b4fd +0fd NEORemoteView.exe Vcl.OleCtrls 687 +15 TOleControl.CreateControl
0071be4c +008 NEORemoteView.exe Vcl.OleCtrls 864 +1 TOleControl.CreateWnd
005b879a +016 NEORemoteView.exe Vcl.Controls 9638 +3 TWinControl.CreateHandle
005b8a60 +074 NEORemoteView.exe Vcl.Controls 9761 +7 TWinControl.UpdateShowing
005b8c08 +0bc NEORemoteView.exe Vcl.Controls 9808 +21 TWinControl.UpdateControlState
005bb802 +026 NEORemoteView.exe Vcl.Controls 11581 +3 TWinControl.CMVisibleChanged
005b4be6 +2be NEORemoteView.exe Vcl.Controls 7313 +91 TControl.WndProc
005b9731 +5e9 NEORemoteView.exe Vcl.Controls 10143 +158 TWinControl.WndProc
0071db31 +0dd NEORemoteView.exe Vcl.OleCtrls 2481 +29 TOleControl.WndProc
005b4820 +024 NEORemoteView.exe Vcl.Controls 7091 +10 TControl.Perform
005b31d2 +026 NEORemoteView.exe Vcl.Controls 6122 +5 TControl.SetVisible
00747618 +0a4 NEORemoteView.exe uFormMain 212 +6 TFormMain.LFButton1Click

TFDPhysMongoDriverLink on Delphi XE7 - by: Durtaut B11787

$
0
0
It s possible to have direct MONGODB access with Firedac (TFDPhysMongoDriverLink )
on XE7 RAD studio ?
Regards

Array of TLabel objects - by: River_Forest

$
0
0
Is there a (I hope simple) way to create an array of TLabel objects. My project will have up to four labels that conceptually would lend themselves to being an array. How would one do this?
River_Forest

Correct or improve the code formatter of forum - by: Germán Estévez

$
0
0
I formart a piece of code and I see (seems that ok) like this:

When I Accept the message i look this:

If I paste (Copy&Paste) a pieze of code and after I apply the format (selecting the block)

I obtains this:



Delphi berlin upd2 source file type problem - by: antonio V28073

$
0
0
Hi
I installed delphi berlin upd2 on widows seven prof 64bit and now i dont have code editor functionality as code completion, color in a source and parsing ... i noticed that Editor options -> source options -> source file type have only Default.
Can you help me ?
Thx

Light weight desktop database to try out - by: Laurence C28451

$
0
0
Many years ago I did some personal utility programming using Turbo Pascal and the Paradox database engine! I guess this betrays my age a bit.

Anyway the code is still useful and I want to port to Delphi so I downloaded the trial. But I cannot see any way I can use a database with Delphi. I could install SQL Express but I don't think the Embarcadero trial version has a ODBC drivers in it. Can anybody suggest a way I can run a tiny application on my desktop and have a database engine also?
Thanks

Buffalo Cookware: Providing the Best Cooking Products - by: danielcaron86

$
0
0
While cooking constant attention is required, especially when it’s rice we are talking about. While cooking rice in a pot, you need to have full concentration so that it doesn’t get burnt. Moreover, you may find it tricky to cook rice in a stainless steel pot since it usually sticks to the pot very easily. So if you are looking for a tension free and the best rice cooker then yes at Buffalo Cookware you will get the best stainless steel cooker. And if you follow this course of action you will get the best results.
· If you have a rice cooker with the capacity of 10 cup then you should put a minimum of 2 cups rice in it and if you have one with 5 cups capacity then you should put at least1 cup.
· Take rice and drain them completely, then add required water, maintain the ratio, like for 1 bowl rice pour 1 bowl of water to it. Change the quantity of water depending on the variety of rice.
· The last and the most important thing is that after the cooking timer goes off, the buffalo ricecooker will automatically go to ‘keep warm’ mode, However, take care to leave the lid of the cooker closed for about 10-15 min after the rice is cooked.
From these guidelines and with the help of buffalo rice cookers you will get your rice well cooked and without tension. You can even order this amazing product online. Buffalo Cookware offers you a wide range of products which includes vacuum mug, knife, casserole, knife sharpener, vacuum flask and vacuum thermal carrier etc. Ideal for the new generation, their range of electrical appliances is perfect to save a lot of time in cooking, is easy to operate and completely safe to use as well.
Buffalo Cookware provides you products with low energy consumption, along with a satisfying cooking experience. As healthy food is everyone’s priority in this modern life, Buffalo Cookware offers the best quality products in which you can get the benefit of food cooked evenly and with very little oil. So do give a thought and purchase your Buffalo Cookware product today. You can purchase these online and avail the facility of free shipping on every purchase of amounting above $60.
For more information, please visit Buffalocookware.com .

Embarcadero Free Compiler - on Win10 x64? - by: bullockornis

$
0
0
I know 32 bit progs will run on my 64bit win10 computer.
If I dowload and install this free compiler will it run? I see it says that it is for 32 bit systems.
I'm actually just trying to set the machine up to write/compile Harbour code if there's a better way...

Interbase 32 bits Database migration to 64 bits - by: Arsene M28538

$
0
0
I am using Interbase XE
I have an Interbase XE 32 bits database.
I now installed Interbase XE 64 bits.
I would like to know how to migrate my database from 32 bits to 64 bits?
Can I just use my 32 bits database with Interbase XE 64 bits? Or is it necessary to do a backup and restore?

Serial communication - by: emanuele C28535

$
0
0
Hi, I'm am IT student, and I try to write a sample code for USB communication (the code is from an old book, but the function seem the same), but I get some errors.

I hope someone can help me to figure out the problem.

Active Directory Client for querying AD - by: CBali

$
0
0
Hi,
i need to query the MS Active Directory as well as add/remove user to AD-Groups.
Unfortunately, Delphi does not provide any component for this standard.
Can anyone help me with my problem?

Cheers
CBL
Viewing all 3677 articles
Browse latest View live


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