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

Unresolved External: JSON Reflect, DataSnap, REST

$
0
0

Hi, I make this tutorial:

http://docwiki.embarcadero.com/RADStudio/Seattle/en/Tutorial:_Using_a_REST_DataSnap_Server_with_an_Application_and_FireDAC

but I have a problem in server line:

    TFDJSONDataSets *ds = new TFDJSONDataSets();
    TFDJSONDataSetsWriter::ListAdd(ds, FDQueryDepartmentNames);

[ilink32 Error] Error: Unresolved external 'Data::Firedacjsonreflect::TFDJSONDataSets::' referenced from ...\PROJECT9\WIN32\DEBUG\SERVERMETHODSUNIT1.OBJ

[ilink32 Error] Error: Unresolved external 'Data::Firedacjsonreflect::TFDJSONDataSetsWriter::' referenced from ...\PROJECT9\WIN32\DEBUG\SERVERMETHODSUNIT1.OBJ

[ilink32 Error] Error: Unresolved external '__fastcall Data::Firedacjsonreflect::TFDJSONDataSetsWriter::ListAdd(Data::Firedacjsonreflect::TFDJSONDataSets * const, Firedac::Comp::Client::TFDAdaptedDataSet * const)' referenced from ...\PROJECT9\WIN32\DEBUG\SERVERMETHODSUNIT1.OBJ

[ilink32 Error] Error: Unresolved external '__fastcall Data::Firedacjsonreflect::TFDJSONInterceptor::DataSetsToJSONObject(Data::Firedacjsonreflect::TFDJSONDataSetsBase * const, System::Json::TJSONObject * const)' referenced from ...\PROJECT9\WIN32\DEBUG\SERVERMETHODSUNIT1.OBJ

My system is Windows 7 Ultimate 64 bits, installed fulll RAD Studio 10.1 Berlin

 

Please help me, I try to make this work so 1 week ago.

Thank You.


Delphi 10.1 Berlin Debug not working

$
0
0

I have been using Delphi 7 for years and found it to be a very stable platform and virtually all components work without bugs.

I have now downloaded Delphi 10.1 Berlin to see what the advantages are of buying the latest version of Delphi and after spending hours converting a Delphi 7 program to work with the new software found that I cannot debug my program. The build configuration is set to debug and yet breakpoints (yes I have the red circle next to the line number) are completely ignored. Even run to cursor does not work. I also tried to use the ballonhint component and found that for every line of text I add to the hint, the balloonhint adds a blank line above the hint heading and eventually the hint text is cut off by the bottom of the balloonhint.

My question is, are the problems I am having because because this is a cut down (beta) version of Delphi or will I still have the same problems if I purchase the full product?

Any idea about delphi coding in AWS Lambda environment ?

$
0
0

As new trends of serverless "AWS Lambda" environment born, 

to be compatible with about technology, delphi considers that ?  

 

Thanks,

Mark

SoapHeader

$
0
0

How to change SoapHeader at runtime by removing unneeded namespaces

Debug mode linking error - I'm not a BETA TESTER!!

$
0
0

I have imported a C++ Builder project from XE8 to 10 Seattle, when I try to compile it using new CLANG based C++ 32 bit in Debug mode, I get following Link errors.

How can I resolve it? When I try Release mode, there is no problem.

 

Checking project dependencies...
Compiling NURBSTest.cbproj (Debug, Win32)
brcc32 command line for "NURBSTest.vrc"
  c:\program files (x86)\embarcadero\studio\17.0\bin\cgrc.exe -c65001 NURBSTest.vrc -foNURBSTest.res
ilink32 command line
  c:\program files (x86)\embarcadero\studio\17.0\bin\ilink32.exe -G8 -L.\Win32\Debug;"c:\program files (x86)\embarcadero\studio\17.0\lib\win32\release";
  "c:\program files (x86)\embarcadero\studio\17.0\lib\Win32\debug";..\..\..\wafl3\system;..\..\..\wafl3\geo;..\src;D:\WA\warp_dev\proto\NURBS\proj;
  D:\WA\warp_dev\proto\NURBS\src;"c:\program files (x86)\embarcadero\studio\17.0\lib\win32c\release";"c:\program files
  (x86)\embarcadero\studio\17.0\lib\win32\release";"c:\program files (x86)\embarcadero\studio\17.0\lib\win32\release\psdk";
  D:\Profiles\Public\Documents\Embarcadero\Studio\17.0\DCP -j.\Win32\Debug;"c:\program files (x86)\embarcadero\studio\17.0\lib\win32\release";
  "c:\program files (x86)\embarcadero\studio\17.0\lib\Win32\debug";..\..\..\wafl3\system;..\..\..\wafl3\geo;..\src;D:\WA\warp_dev\proto\NURBS\proj;
  D:\WA\warp_dev\proto\NURBS\src;"c:\program files (x86)\embarcadero\studio\17.0\lib\win32c\release";"c:\program files
  (x86)\embarcadero\studio\17.0\lib\win32\release";"c:\program files (x86)\embarcadero\studio\17.0\lib\win32\release\psdk";
  D:\Profiles\Public\Documents\Embarcadero\Studio\17.0\DCP -l.\Win32\Debug -v -Gn
  -GA"C:\Users\ksg\AppData\Local\Temp\vfs5A52.tmp"="D:\WA\warp_dev\proto\NURBS\src\form_NURBSTest_main.fmx"
  -GA"C:\Users\ksg\AppData\Local\Temp\vfs5A53.tmp"="D:\WA\warp_dev\proto\NURBS\src\form_NURBSTest_main.Surface.fmx"
  -GA"C:\Users\ksg\AppData\Local\Temp\vfs5A64.tmp"="D:\WA\warp_dev\proto\NURBS\src\form_NURBSTest_main.Windows.fmx" -aa -V5.0 -Tpe  c0fmx32w rtl.bpi
  fmx.bpi memmgr.lib sysinit.obj .\Win32\Debug\NURBSTest.obj .\Win32\Debug\form_NURBSTest_main.obj .\Win32\Debug\b_spline.obj
  .\Win32\Debug\geo_parametric_shape.obj .\Win32\Debug\mem_dynamic.obj .\Win32\Debug\sys_logger.obj , .\Win32\Debug\NURBSTest.exe ,
  .\Win32\Debug\NURBSTest.map , import32.lib cp32mti.lib , , NURBSTest.res
[ilink32 Error] Error: Unresolved external '___seh_personality_v0' referenced from D:\WA\WARP_DEV\PROTO\NURBS\PROJ\WIN32\DEBUG\NURBSTEST.OBJ
[ilink32 Error] Error: Unresolved external '__Unwind_SjLj_Register' referenced from D:\WA\WARP_DEV\PROTO\NURBS\PROJ\WIN32\DEBUG\NURBSTEST.OBJ
[ilink32 Error] Error: Unresolved external '__Unwind_SjLj_Unregister' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\RTLE.LIB|dstring
[ilink32 Error] Error: Unresolved external '___cxa_begin_catch' referenced from D:\WA\WARP_DEV\PROTO\NURBS\PROJ\WIN32\DEBUG\NURBSTEST.OBJ
[ilink32 Error] Error: Unresolved external '___cpp_terminate' referenced from D:\WA\WARP_DEV\PROTO\NURBS\PROJ\WIN32\DEBUG\NURBSTEST.OBJ
[ilink32 Error] Error: Unresolved external '__Unwind_Resume' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\RELEASE\RTLE.LIB|ustring
[ilink32 Error] Error: Unresolved external '___cxa_rethrow' referenced from D:\WA\WARP_DEV\PROTO\NURBS\PROJ\WIN32\DEBUG\FORM_NURBSTEST_MAIN.OBJ
[ilink32 Error] Error: Unresolved external '___cxa_end_catch' referenced from D:\WA\WARP_DEV\PROTO\NURBS\PROJ\WIN32\DEBUG\FORM_NURBSTEST_MAIN.OBJ
[ilink32 Error] Error: Unresolved external '___cxa_throw' referenced from D:\WA\WARP_DEV\PROTO\NURBS\PROJ\WIN32\DEBUG\NURBSTEST.OBJ
[ilink32 Error] Error: Unable to perform link
Failed
Elapsed time: 00:00:01.0

 

Use of OnReconcileErrorDialogBox in Berlin 10.1 with TFDQuery

$
0
0

Hi all. I appreciate my newbie status all too well when working with FireDac but having read the book (Delphi in Dept: ClientDataSets 2nd Edition by Cary Jensen) and having sweated over some code I feel I do have the T-Shirt now (enough) to be able to ask a question in this group.

I'm using a TFDConnection and TFDQuery to retrieve data from an in-house MS SQL database. The user is allowed to modify just one field (not any key field by the way) and I was trying to use CachedUpdates and the ApplyUpdates functions to save data back to the database and to advise the user if any of the data has been changed by other users. I am struggling with this and tried to use the OnReconcileErrorDialogBox unit added to my project to offer the user a ready made facility in which to compare the various values of data in their cache and remote SQL database.

However it would appear that this unit hasn't been written for the parameter types provided to the TFDQueryReconcileError method of UpdateKind - TFDDatSRowState or E - EFDException.

Has anyone else tried using this dialog box in this scenario or some variant of it that handles the parameters provided within TFDQueryReconcileError?

Many thanks and regards in advance

David

Retrieving real gps status

$
0
0

Hi, how can i retrieve the real status of a gps sensor on android or ios?

TSensorManager returns a LocationSensor

With a timer i'm printing the TSensorState flag, but it returns every time a Ready State even if i disable the Gps and/or the Wifi option on the device.

Thank you

Error occurs while implementing custom Font in iOs using Firemonkey

$
0
0

I'm using Delphi 10.1 for developing mobile application. And I'm trying to implement the custom font Livingst.ttf for iOS and I followed Steps. But when I'm trying to run the application in iOS Simulator, I'm getting error message No mapping for the Unicode character exists in the target multi-byte code page.. I don't know how to fix this issue. Please help me to fix this issue.


ssl support

$
0
0

Hi

will Indy components use native SSL support in Tokyo ?

or how to resolve this problem:

I need to download images to my multidevice apps over http(s)

I have Enterprise license and I don't know what is the proper way to do it.

what components can I use to do that ?

I'm new to Delphi (few months), and I have no clue how to do that, all googled samples use Indy... (Indy doesn't support native SSL now)

 

TPath from System.IOUtils vs FMX.Objects

$
0
0

Hi,

I have new MultiDevice project:

uses

System.IOUtils

...

dir := TPath.Combine(TPath.GetDocumentsPath, 'plikZAparatu.jpg');

and when I add Timage to project, it adds FMX.Objects to uses ... and TPath.Combine or TPath.GetDocumentsPath stops working, errors:

- TPath does not contain  a member named Combine

- TPath does not contain  a member named GetDocumentsPath

how to make it work again ?

 

iOS Notification problem

$
0
0

Hello!

 

I've been trying to get notifications to work on iOS project.
When I run the project on windows, I get notifications perfectly fine.

But when I run it, the application shows up and everything, but when i press the button, nothing happens. I've tried debugging, and it seems to work fine, there are no error messages or anything.

I've tried to do this:
http://docwiki.embarcadero.com/RADStudio/Berlin/en/Mobile_Tutorial:_Using_Notifications_(iOS_and_Android)#Samples

under the "Present the Notification Message Immediately".

I'm using a trial version of RAD studio, on a windows 10 virtual machine that is running on Mac with macOS Sierra.
The iPhone is an iPhone 6.


Would be fantastic if someone could nudge me in the right direction!

JCL/JVCL and 10.1 Berlin Installation Issues

$
0
0

Hi all,

Has anyone else been having a nightmare installing the JCL/JVCL on 10.1 Berlin?
Personally, it's starting to get to the point where it just isn't worth the effort to use any of the JEDI stuff anymore.

I downloaded the JCL and JVCL master zip files from sourceforge.
I then ran the install.bat file for the JCL and encountered the JEDI.INC file missing error.
So I downloaded the jedi.inc master file and put it in the ..\jcl\source\include folder.
I re-ran the .bat file and now get a BCC32.exe not found error.

So I tried a different tack and opened the JclPackagesD240.groupproj manually and installed that.
That seemed to work fine ... seemed to ...
I then tried to run the jvcl install.bat file and it gives:
"No Delphi/BCB/BDS/RAD-Studio versions was found that has the required dependencies installed. Please install the dependencies first."

So obviously trying to install the jcl manually screws up anything going onwards with the jvcl.

Has anyone got any solutions or ideas to see how I can get out of this mess, especially since I've been round in circles for about 3 days now.

 

Thanks
Mike

ios deployment add files

$
0
0

Hi

In Project -> Deployment

I added file: language.ini

and set Remote path: Startup\Documents\

the code:

fileNew := TPath.Combine(TPath.GetDocumentsPath, 'language.ini');
ShowMessage('fileNew: ' + plikNew + ', is there?: ' + BoolToStr(TFile.Exists(fileNew), True) );

TFile.Exists returns False,

what am I doing wrong ?

 

RAD Studio Berlin, IOS deployment

Cannot Compile or Run anything from my version of Berlin 10.1

$
0
0

1.  None of the sample programs run, always missing things;

2.  when I create a simple button program I get Platform Var1able  "BNB" error; and

3.  I Import a ActiveX Component (TWebBrowser) it is not available to me at design time.

What is going on with this version of Berlin 10.1 Surely I should be able to download a program (Delphi Berlin 10.1 in Windows 10) and it will run straight away without all these setup problems.

John van der Linden

Best Pratices for using Firedac

$
0
0

Is there a more secure way to pass parameters to a query?

 

    TFDQuery(Qry).SQL.Clear;
    TFDQuery(Qry).SQL.Add('select * from table where id= :id');
    // option 1
    TFDQuery(Qry).Parambyname('id').AsFloat := valueFloat;
    //or  option 2
   TFDQuery(Qry).Parambyname('id').AsValue := valueFloat;
   // or option 3
   TFDQuery(Qry).ParamByName(‘id’).DataType := ftFloat;
   TFDQuery(Qry).Parambyname('id').AsFloat := valueFloat;
   //or option 4
  // id in bd is Float
  TFDQuery(Qry).Parambyname('id').AsString := valueString;



 Performance question, any of these ways of changing using Firedac?

 

 


Delphi XE2 - switching license to another machine

$
0
0

          Hi, we have some enterprise licenses Delphi XE2, some unused. We need to know, in the case of assignment of the license from one machine to another, the correct procedure to register the license to the new machine. Is it mandatory to communicate the change of the associated machine to Embarcadero support? Thanks and regards Alessio

FireUI Live Preview not Synchronizing with my IDE RAD Studio

$
0
0

I just recently installed the FireUI in all my devices for my App development. In contradiction with its FireUI function to sync with my devices, it appears that it is not synchronizing. I am not sure if I missed something.

Here are the background of what I did so far:

  1. I am using mac with parallel desktop as my virtual for windows.
  2. I used wifi(bridge) for my network connection.
  3. The fireUI of my devices (mac, iphone6s+, windows, samsung android) are able to connect.
  4. The RAD Studio Berlin 10.1 confirmed its connection.
  5. When I created multi-device form in RAD Studio and put some controls like tchart, tbutton, tlistboxes, radiobutton. None except one of the listbox appeared in my mac and windows, but the rest are none.

I search over the internet and I found minimimal posting related to FireUI except those introductory postings but no troubleshooting such as this case i have.

Appreciate if someone could assist me on this.

Thanks & cheers!

 

Sensors -- Android Step_Counter ?

$
0
0

I have a Delphi Berlin Android application that needs to access the Android Step_Counter. I have researched for a few days and find no Delphi related references or examples for the Android step sensors referenced below.

I could really use some help at this point. Is there any way to access/add support for  the step_counter in Delphi ?

 

Thank you,

Clark

 

 

 

TYPE_STEP_COUNTER

Added in API level 19
int TYPE_STEP_COUNTER

A constant describing a step counter sensor.

A sensor of this type returns the number of steps taken by the user since the last reboot while activated. The value is returned as a float (with the fractional part set to zero) and is reset to zero only on a system reboot. The timestamp of the event is set to the time when the last step for that event was taken. This sensor is implemented in hardware and is expected to be low power. If you want to continuously track the number of steps over a long period of time, do NOT unregister for this sensor, so that it keeps counting steps in the background even when the AP is in suspend mode and report the aggregate count when the AP is awake. Application needs to stay registered for this sensor because step counter does not count steps if it is not activated. This sensor is ideal for fitness tracking applications. It is defined as an REPORTING_MODE_ON_CHANGE sensor.

See SensorEvent.values for more details.

Constant Value: 19 (0x00000013)TYPE_STEP_DETECTOR

Added in API level 19
int TYPE_STEP_DETECTOR

A constant describing a step detector sensor.

A sensor of this type triggers an event each time a step is taken by the user. The only allowed value to return is 1.0 and an event is generated for each step. Like with any other event, the timestamp indicates when the event (here the step) occurred, this corresponds to when the foot hit the ground, generating a high variation in acceleration. This sensor is only for detecting every individual step as soon as it is taken, for example to perform dead reckoning. If you only need aggregate number of steps taken over a period of time, register for TYPE_STEP_COUNTER instead. It is defined as aREPORTING_MODE_SPECIAL_TRIGGER sensor.

See SensorEvent.values for more details.

Constant Value: 18 (0x00000012)

Large fonts in inherited forms (Delphi 10 Seattle)

$
0
0

Hi,

I am encountering a problem with large fonts in Delphi 10 Seattle and inherited forms.

The two images below come from the same application, first executed in normal Windows fonts, then in large fonts (125%). To understand what's going on :

  • The normal font weight controls are created in a parent form. The bold font controls are created in a form inheriting the parent form.
  • The green panels come from a frame (the left frame is created by the parent form, the right one is created by the child form).
  • The blue panel is in a TGridPanel with absolute row height and absolute column width, into the parent form.
  • The captions of the panels display their dimensions (width x height).
  • The captions of the buttons display their positions (left, top).
  • The captions of the labels display their font size.

Here are the images :

Normal fonts (D10 Seattle)

Large fonts (D10 Seattle)

As the images show, the controls created in the inherited form are not resized, and their fonts are not adjusted. Note that the blue panel, however created in the parent form, is not resized (absolute column widths and row heights in TGridPanel are not changed).

Tested under Delphi 2006, the same sources are pretty properly managed (with the exception of the blue panel) :

Large fonts (D2006)

Is this problem known, and is there a way to get around it?

If it can help, I also join the sources of the two projects (D10 Seattle and D2006) :

LargeFonts

thank you in advance,

Adrien

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?

Viewing all 1888 articles
Browse latest View live


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