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

Moving around 3d World - by: Amit

$
0
0
I've started playing with implementing moving in a 3d world (like within first person shooter games.

I've followed the following document: www.chadvernon.com/blog/resources/direct...g-around-a-3d-world/ -- and it seems to implement such action within the DirectX API. FMX 3d got all the 3d elements embedded within its framework (making it redundant using the DirectX ones, of course) .

1. I was looking for a similar solution in RAD Delphi. (There are plenty of very simple code examples how to create a camera movement that "Looks" on a given object with the ability of rotating the view -- however, I couldn't find a sample code implementing moving within a 3d environment itself)

2. While "translating" the code showed in the sample link above, I've started converting the C DirectX code into FMX framework. but got stuck for example on the following DirectX API D3DXVec3TransformNormal where I couldn't find it's parallel in FMX 3d. (I still haven't learn enough about all the elements a best practice way to develop within 3d, so I do not know how to break the this function into FMX elements)... Moreover, there is very poor documentation of the 3d FMX elements in the FMX official wiki online.

* If you have any sample code for such actions, I am sure it'll gladly helpful.

Amit

Moving Around a 3d world - by: Amit

$
0
0
I am creating a 'Moving Around a 3d world' (within the 3d space, like in First Person Shooter games [FPS]).
Looking on the following document www.chadvernon.com/blog/resources/direct...g-around-a-3d-world/ -- I started translating the C DirectX code into Delphi FMX 3d code. I stopped on the D3DXVec3TransformNormal -- where I couldn't find any parallel function in Delphi.

There are some samples creating a camera movement that "LooksAt" an object, enabling rotating around it. But I couldn't find any sample code that do the First Person Shooter view. Enabling moving in a 3d environment.

1. Need help how to translate the D3DXVec3TransformNormal function into Delphi FMX.
2. Or a sample code that do the FPS view with Delphi 3d FMX Elements.

Amit

C++ and Linux - by: Gabriel

$
0
0
Bonjour,

Could you tel me, if C++ for Linux server will be published ?
In some few months ?
Do you have a date ?

Best regards
Gabriel

Android and 3rd party libraries - by: Danie

$
0
0
Hi,

I am rather new to mobile development.

I need some help with android and third party libs. I need to create an app for an android base scanner. The supplier has a sdk (.jar) they supply which I have to use.

Problem is, they supply a "compile" sdk for development and the real sdk is on the device itself.

Using Android Studio this jar needs to be added in dependencies as "provided files (./sdk.jar)" that causes the jar not to be compiled into the apk, but can be used when needed once the app is running on the device with the real sdk. So it almost works like a dynamically linked dll.

I can import the library using Delphi 10.2 and use Java2OP to generate the JNI interface but adding the jar to Libraries in Project Manager compiles the jar into the apk, which causes my app to use the "compile" sdk.

I need to know if this can be done with Rad Studio, linking the sdk as proviced/compileOnly?

Thanks in advance

"Run" will build and launch config incorrectly - by: Chongwei

$
0
0
Hi,

I am using Delphi XE3. In my project group, I have two projects, Project1 and Project2, each has Debug and Release configurations. For Project1, there is a definition _TEST.

I then create a build group which contains both Project1 and Project2. Each project’s Debug and Release configurations are also included.

Then when I use “Build the current build group” button to build all configurations for both Project1 and Project2, then after the build, if I use “Run” to debug Project1, I will find the launched version is an incorrect version(built without _TEST definition).

However, if I build the Debug configuration of the Project1 individually, not through the Build Group, then after the build, if I use “Run” to debug Project1, I will find the launched version is a correct version(built with _TEST definition).

Moreover, if I launch Project1.exe directly in Windows, instead of using “Run” or “Run without debugging”, then the launched version is always a correct version(built with _TEST definition).

What is the problem?

access violation in rtl250.bpl - by: Johan

$
0
0
hi,
after a clean un-install of RAD Studio 10.2.1, I installed the latest RAD Studio 10.2.3. At the end of the installation the program runs fine. After closing and restarting the application, the program opens with several messages of access violation in 'rtl250.bpl' and quits. Sending the error message details always fails with some xml-error. These are the error message details:
=====
[50BA9A06]{vcl250.bpl } Vcl.ExtCtrls.TCustomControlBar.AlignControls (Line 7018, "Vcl.ExtCtrls.pas" + 273) + $3
[21A27392]{vclactnband250.bpl} Vcl.ActnMenus.TCustomActionMenuBar.WndProc (Line 1889, "Vcl.ActnMenus.pas" + 25) + $4
[50AE4898]{vcl250.bpl } Vcl.Controls.TControl.Perform (Line 7116, "Vcl.Controls.pas" + 10) + $8
[5005A1D8]{rtl250.bpl } System.@GetMem (Line 4758, "System.pas" + 20) + $0
[50BAA6B2]{vcl250.bpl } Vcl.ExtCtrls.AddItem (Line 7527, "Vcl.ExtCtrls.pas" + 17) + $3E
[5005A1F4]{rtl250.bpl } System.@FreeMem (Line 4806, "System.pas" + 20) + $0
[5006586F]{rtl250.bpl } System.@DynArrayClear (Line 35308, "System.pas" + 49) + $0
[5006549C]{rtl250.bpl } System.DynArraySetLength (Line 34960, "System.pas" + 9) + $6
[50063F51]{rtl250.bpl } System.@FinalizeArray (Line 32183, "System.pas" + 168) + $0
[50063E0C]{rtl250.bpl } System.@FinalizeRecord (Line 31861, "System.pas" + 25) + $0
[500602C8]{rtl250.bpl } System.TMonitor.Destroy (Line 18532, "System.pas" + 0) + $0
[5005F94D]{rtl250.bpl } System.TObject.CleanupInstance (Line 17168, "System.pas" + 37) + $0
[5005A1F4]{rtl250.bpl } System.@FreeMem (Line 4806, "System.pas" + 20) + $0
[5005F72C]{rtl250.bpl } System.TObject.FreeInstance (Line 16931, "System.pas" + 2) + $2
[50060016]{rtl250.bpl } System.@ClassDestroy (Line 18298, "System.pas" + 0) + $2
[50151C0C]{rtl250.bpl } System.Classes.TList.Add (Line 4601, "System.Classes.pas" + 0) + $0
[5005F8A8]{rtl250.bpl } System.TObject.Free (Line 16994, "System.pas" + 1) + $4
[50BAA3B3]{vcl250.bpl } Vcl.ExtCtrls.TCustomControlBar.UpdateItems (Line 7391, "Vcl.ExtCtrls.pas" + 132) + $3
[50AE9843]{vcl250.bpl } Vcl.Controls.TWinControl.WndProc (Line 10209, "Vcl.Controls.pas" + 166) + $6
[50B65F6A]{vcl250.bpl } Vcl.ComCtrls.TToolBar.GetButton (Line 22956, "Vcl.ComCtrls.pas" + 1) + $8
[004A7ACE]{bds.exe } AppMain.TAppBuilder.ControlBar1BandInfo (Line 4890, "AppMain.pas" + 6) + $C
[50BAAB23]{vcl250.bpl } Vcl.ExtCtrls.TCustomControlBar.GetControlInfo (Line 7699, "Vcl.ExtCtrls.pas" + 2) + $1C
[50BAB708]{vcl250.bpl } Vcl.ExtCtrls.TCustomControlBar.DoBandMove (Line 8078, "Vcl.ExtCtrls.pas" + 1) + $17
[50BA95CF]{vcl250.bpl } Vcl.ExtCtrls.TCustomControlBar.AlignControls (Line 6863, "Vcl.ExtCtrls.pas" + 118) + $E
[208A055F]{coreide250.bpl} IDEServices.TIDEServices.QueryInterface (Line 2534, "IDEServices.pas" + 13) + $3
[208A05A1]{coreide250.bpl} IDEServices.TIDEServices.QueryInterface (Line 2543, "IDEServices.pas" + 22) + $10
[50060884]{rtl250.bpl } System.TMonitor.TryEnter (Line 18935, "System.pas" + 10) + $0
[5005FA0E]{rtl250.bpl } System.TObject.GetInterface (Line 17324, "System.pas" + 12) + $8
[5005FA31]{rtl250.bpl } System.TObject.GetInterface (Line 17327, "System.pas" + 15) + $10
[50AE7A16]{vcl250.bpl } Vcl.Controls.TWinControl.AlignControl (Line 9055, "Vcl.Controls.pas" + 9) + $A
[50AE7A72]{vcl250.bpl } Vcl.Controls.TWinControl.Realign (Line 9079, "Vcl.Controls.pas" + 0) + $2
[50AE7A67]{vcl250.bpl } Vcl.Controls.TWinControl.EnableAlign (Line 9073, "Vcl.Controls.pas" + 3) + $6
[004AAD95]{bds.exe } AppMain.TAppBuilder.LoadToolbarStreams (Line 6011, "AppMain.pas" + 34) + $9
[0049FC4B]{bds.exe } AppMain.PostCreateInit (Line 2167, "AppMain.pas" + 70) + $6
[004A00CE]{bds.exe } AppMain.TAppBuilder.CMPostCreateInit (Line 2257, "AppMain.pas" + 4) + $1
[50AE4C5E]{vcl250.bpl } Vcl.Controls.TControl.WndProc (Line 7338, "Vcl.Controls.pas" + 91) + $6
[5006999F]{rtl250.bpl } System.UnicodeFromLocaleChars (Line 39915, "System.pas" + 1) + $F
[50AE9843]{vcl250.bpl } Vcl.Controls.TWinControl.WndProc (Line 10209, "Vcl.Controls.pas" + 166) + $6
[50C28469]{vcl250.bpl } Vcl.Forms.TCustomForm.WndProc (Line 4572, "Vcl.Forms.pas" + 209) + $5
[50AE8E10]{vcl250.bpl } Vcl.Controls.TWinControl.MainWndProc (Line 9908, "Vcl.Controls.pas" + 3) + $6
[5016EBCC]{rtl250.bpl } System.Classes.StdWndProc (Line 17408, "System.Classes.pas" + 11) + $2
[50C31E1F]{vcl250.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 10641, "Vcl.Forms.pas" + 23) + $1
[50C31E62]{vcl250.bpl } Vcl.Forms.TApplication.HandleMessage (Line 10671, "Vcl.Forms.pas" + 1) + $4
[50C32195]{vcl250.bpl } Vcl.Forms.TApplication.Run (Line 10809, "Vcl.Forms.pas" + 26) + $3
[005088F2]{bds.exe } bds.bds (Line 212, "" + 7) + $7
=====
On my system there are 4 'vcl250.bpl' files:
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin
09-03-2018 15:55 4.046.704 vcl250.bpl
C:\Program Files (x86)\Embarcadero\Studio\19.0\bin64
10-03-2018 01:55 5.688.176 vcl250.bpl
C:\Program Files (x86)\Embarcadero\Studio\19.0\Redist\win32
09-03-2018 15:55 4.046.704 vcl250.bpl
C:\Program Files (x86)\Embarcadero\Studio\19.0\Redist\win64
10-03-2018 01:55 5.688.176 vcl250.bpl

I have repeatedly installed and un-installed the software, but the error keeps getting back.
I do hope that someone helps to solve this problem.
Thanks.

RAD Studio Berlin Starter - license limit - by: James

$
0
0
I had RAD Studio Starter working nicely on my PC.
I installed a copy on a second machine and now my main PC complains I have exceeded my license limit and RAD Studio won't run.
I hav removed the installation from 2nd machine and still license manager wont let me re-enable my original installation.

Embarcadero don't support Starter edition and referred me to forum, so any ideas guys?

Quick reply Vs Reply - by: Roger

$
0
0
Can someone tell me what the "quick reply" button does on the forum ?
Is there a "help" page related to the forum ? (I'm "old school" and like documentation).
Regards, Roger

RAD Studio (Delphi) Tokyo 10.2.3 Error When Trying to Install iOS Simulator SDK. - by: Steve

$
0
0
I get the following error message when trying to install the SDK for the iOS Simulator:

"Directory does not exist: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/UlFoundalon.framework/"

I installed the latest version of XCode (9.2) on my Mac (macOS High Sierra10.3.3) prior to this. I can run the simulator in XCode.

Has anyone else encountered this error?

= Steve

Dynamic Checkbox - by: Ozgur

$
0
0
Hi everyone,
I have a problem with checkbox. I'm creating one on run time but I can't change its situation.
I'm using Berlin 10.1 starter edition. Any help would be great. Thanks.
My code is below;
TCheckBox *chb = new TCheckBox(this);
TRect Recto = StringGrid1->CellRect(4, iParam2);

iChbIndex++;

chb->Width = 16;
chb->Height = 16;
chb->Top = Recto.Top + StringGrid1->GridLineWidth;
chb->Left = Recto.Left + ((Recto.Width() - chb->Width) / 2) + StringGrid1->GridLineWidth/* + 1*/;
chb->Height = (Recto.Bottom - Recto.Top)-1;
chb->Parent = StringGrid1;
chb->Tag = iParam1;
chb->Name = "CheckBox"+IntToStr(iChbIndex);
chb->OnClick = CheckBox_TemplateClick;

chb->Visible = true;
chb->Enabled = true;

Installation Fails due to No Delphi License - by: Michael

$
0
0
I sure hope that someone can help. I am so frustrated. I have an active subscription that is good until July 2018. I have been using C++ Builder Tokyo since it came out, and received a notice of release 3. I downloaded release 3 and when I try to install it, I get a message saying that it wants to uninstall my current version. Fine. I then get a notice saying "Existing License found. The following RAD Studio 10.2 license was found on your system. C++ Builder XE8 Professional Named User (Upgrade from XE4 or later) and a box to Use existing license". I click Install, and says "Installing Main Application Files..." Then a bunch of registry messages, and then it asks me to enter a valid Embarcadero serial number. OK, I guess. So I dutifully copy/paste (or enter carefully by hand, asked my wife and son to enter it, etc.) the license information. And my EDN information. I then get a message saying "No valid license information found for Embarcadero(r) Delphi 10.2. Now I don't know if it's because I only have C++ Builder or what, but I cannot get past this. I have tried all the suggestions that I could find. The license manager reflects that I have a valid license, and all the information checks out. I have tried looking for a separate download for just C++ Builder, but I cannot find that. Does anyone know why I can't install the latest version? Please please please HELP! Thanks!!!

Exceptions in 10.2.3 in trivial project transfered from Berlin Stater - by: Ken

$
0
0
I started a project in Berlin Starter. It has one form, two image lists, one menu and a popup menu so far. Totally trivial.
I purchased Tokyo Professional, removed Starter and installed 10.2.2, then upgraded to 10.2.3
I am now trying to continue with this project and getting bizarre errors.
First, I tried to lasso the popup menu and imagelists to move them and the act of lassoing already produced an error that the image list does not exist. (I found someone with exactly the same issue in Stack Overflow). Lassoing and moving them individually works.

Now I want to add a new unit (project tree, right click, Add New-Unit) and the IDE throws an exception. I close Delphi and am asked if I want to save Unit1 but there is no Unit 1 anywhere so I say no.
Upon restarting Delphi I am able to add a new unit without a problem.

Is this what everyone is silently living with now in the new versions?
Before upgrading I was able to open programs created in D2010 with DXE2 with no problems whatsoever.

How to fix SQL Server Error 945? - by: john

$
0
0
I am getting SQL Server error 945 in SQL Server 2014, Now I need to know what could be the reasons behind this Suspect database error?

Questions about "Using the IDE" tutorial - by: David

$
0
0
I recently downloaded and installed the Starter edition of Delphi, and I was going through one of the tutorials, "Using the IDE" ( docwiki.embarcadero.com/RADStudio/Tokyo/...orial:_Using_the_IDE ) and ran into a few problems compiling it. I get the following errors:



I've double-checked the spelling and I don't see any typos, it appears to match exactly the code in the tutorial. But here are the three lines flagged by the compiler:



Am I missing something, or is the tutorial no longer working correctly? Is it because I'm using the starter edition and I'm missing some libraries or something?

Thanks.

FDEventAlerter - by: Martin

$
0
0
Delphi 10.2.3
Oracle 12
I'm trying to manually trigger an event alert.
I can receive alerts.
I'm trying something like this on a button click.
var
ea1: TFDEventAlerter;
begin
ea1 := TFDEventAlerter.Create;
ea1.Connection := Conn;
ea1.Active := True;
ea1.Options.Kind := 'DBMS_ALERT';
ea1.Signal('TEST','12345');
end;

But I get this error:
Failed to enstartmess thread [TFDPhysEventThread]

TFDEventAlerter Issue - by: Martin

$
0
0
Delphi 10.2.3
Oracle 12

I can receive alerts from the database just fine.
But now I want to initiate an alert from the workstation;
I'm using the Signal method but I'm getting an error.
"Failed to entstartmess thread [TFDPhysEventThread]"
This is happening when I set the Active property to True.

searchbox - how to start the search by first char - by: Ralf

$
0
0
Hi,
i am using a tsearchbox in my application.
To start a automatic search i must type in
to characters.

How can i get a result by typing only the first?
My listbox contains only one chars A,B,C to Z register items

Scrolling Chart Display - by: John

$
0
0
I want to create a multi-platform implementation of this Chrome App (originally done with WxWidgets). It accesses a USB com port via VID:PID and receives continuous data that is plotted. It also parses out text responses to commands sent via the command line. I've done all of this sort of software in one form or another and in the past used an activeX control for scrolling graphs. That code isn't available anymore. Attached is a screen shot and as you can see it's pretty simple. But what component is ideal for doing the graphing? I have the source code to both the Chrome app and the C++ code for the WxWidgets so actually translating this into Delphi is almost a no brainer. But I'd like something that will be multi-platform (even Linux if that ever becomes possible with RAD Studio).
Just need some suggestions.
Thanks
John

Unable to debug android app - by: Alejandro

$
0
0
Delphi 10.2 Tokyo, I can't debug a Multidevice app, in android, the debug never start. The app run in the device and the dephi ide show this message.

Error
Can't bind address: Address already in use.
Exiting

Any ideas?
I reinstalled delphi, I updated sdk, etc. but debug never run.

Thank you,
Alejandro

Datasnap service stopped unexpectedly - by: Mohamad

$
0
0
Hello everyone..
We faced a strange problem that we don't know how may we fix it.
We have a datasnap service worked on a normal network and has many classes.
In some cases at some clients, we faced the problem, that the service stopped unexpectedly...

Can anyone give us a way to know the reason?

Thanks in advance
Viewing all 3677 articles
Browse latest View live


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