With XE 10.1 does anyone get "Cannot assign a TAppearanceObjectItem to a TAppearanceObjectItem" if you have a multidevice application with a listview on it set to dynamic appearance and you then create an Android View from the Master view. I am sure this must be a know issue but I am having trouble finding anything about it. Thanks
Listview with dynamic appearance and Android view not working
TScrollBox Not Working On OS X
I've a problem with TScrollBox not showing scroll bars on OS X, works fine on Windows.
Tried running Samples\Object Pascal\Multi-Device Samples\User Interface\ControlsDesktop\ControlsDemo and get same problem. You may want to modify random position generation on line 353-354 of ctrlsdemofrm.pas to have smaller values, I set them to be 800 and 400.
I'm using RAD Studio 10 Seattle (Recharge)
Anyone else have this problem?
10.1 C++ Run Command from Menu broken
Since 10.1 Berlin when I click on "Menu->Run->Run" or enter a key which I had assigned via GExperts to the "Run"-Command it only functions at the first attempt, if I try it again, the command "build all" was executed instead. This worked in version 10 seattle. I have a project group with about 70 projects in it. Someone has seen this also? Thanks in advance, Harald
How do I update an expression calculated field before changes are posted?
I have a calculated field that is editable, when the value changes it updates the underlying database field that it is calculated from, however as soon as I move to another cell (without posting) the value reverts to the old calculated value. This is understandable, because the calculated field is still showing the previously calculated value.
How do I cause the calculated field to recalculate based on the current (edited) value before the record is posted?
How can I set PrintDialog's options in background.
Hi everybody.
I want to print something with Printer of "Microsoft Print to PDF" and file name of "myfile.pdf". But I do not want to show any dialog box.
/* This is a code displaying PrintDialog and SaveDialog */
if ( PrintDialog->Execute() ) {
Printer->BeginDoc();
// some code
Printer->EndDoc();
}
Is there anybody knows how to do this?
Thanks.
Debuggen DELPHI 10.1 Berlin
Wie kann ich mit 10.1 Berlin debuggen und nur in meinen eigenen Sourcen bleiben (kein Aufruf/Übergang in VCL/System oder sonstige Module). Ich bin von DELPHI XE2/3 umgestiegen und habe das Problem, dass ein zeilenweises Debuggen praktisch nicht mehr möglich ist. Ich finde auch keinerlei Einstellungsmöglichkeiten in der IDE oder beim Projekt.
Danke für die Hilfe
Why does XE7 rebuild my project when I use F5, when no files have been modified since last build?
I'm currently using XE7, and I have a project group with about a dozen VCL projects in it, some of them rather large.
When I have one of my projects selected as the active project and I click F5 to debug the application after I build the application, the IDE tries to rebuild all of the projects in the group, when it shouldn't be buildingany, since (1) nothing has been modified, and (2) I just built the project I want to debug.
This is causing me to lose quite a bit of time in my code / debug cycle. It is especially troublesome because my applications use compiler variables for conditional compilation and some units have to be rebuilt for specific projects. When the IDE tries to rebuild a project I don't have selected, it fails because a particular unit was not rebuilt. This happens despite the fact I have no inter-project dependencies defined.
I have recently discovered that if I hit F5 within 0.5 seconds after building my project, it runs without further rebuilds. If I wait any longer than that, it tries to rebuild the entire group, errors out because of the conditional compilation issue described above, and I have to start over.
Is this a known issue in XE7? Is it fixed in any later version? Is there anything I can do to fix it in XE7?
How can I use TCombobox->Items->AddObject("String",TObject)
Situation: I need to save into the combobox two parameters, a String(user can see) and an int (user can't see).
How can I convert a String/int in TObject or, if it's possible, convert one of my classes(object) in TObject?
Macro to get all relationships - how to exclude sub-types?
I've adapted the macro EXPORT RELATIONSHIP INFO TO EXCEL v2.BAS in Data Architect - however the Model.Relationships object returns sub-type "relationships" in addition to the actual entity relationships. I don't want to see these sub-type "relationships" in my list, but there isn't any property I can see that distinguishes sub-type "relationships" from identifying entity relationships. How can I do this?
Error with the datasnap rest client module wizard
Hi, I have a DataSnap Rest Server created with Delphi Berlin and DataSnap Rest Client Module both in a local development without problem. I created one DLL with the wizard for IIS and the server is running and display the methods but when i want to create a DataSnap Rest Client Module with remote server i have a next problem:
Somebody have a idea how to solve?? Thank´s
drawer not overlapping TWebBrowser Component
I'm developing a web browser with C++Builder 10.0 Seattle that uses a drawer as its master navigation, but the drawer does not overlap the web browser component. I've tried everything but cannot seem to get it working.
From BDE to FireDac : Problem with accentuated characters
Hi,
I'm moving a Delphi application from the BDE to FireDac (and from Delphi 7 to Seattle, but that's another subject). This application uses a MSSSQL database.
I'm facing a problem related to the accentuated characters (like é, ä, â...).
In the BDE then langdriver was set to "Paradox 'intl'" in the native MSSQL driver.
I don't know to solve this problem. Is there a parameter to adjust in the FDConnection? Or do I need to convert the data?
How can I create an event handler for a non published but public event in Delphi?
In RAD Studio 10.1 Berlin quite a few things has changed from previous version. In FMX there are a few previously published events that has now been changed to only be public.
I have a Multi Platform Project that uses a TStringGrid component and the OnDblClick event. When opening this project in Studio 10.1 I get warned that the Property OnDblClick does not exist.
The question is now how I can use the no longer published event?
(I must say that It's hard to understand why they haven't set mouse events to Published anymore. As far as I know most regular PCs and OSX machines doesn't have touch. A true Multi Target Project should be able to target these systems without hassle as they did in Studio 10 Seattle)
Problem with midas.dll and ClientDataSets
I am working on a Delphi program in XE7 that uses three ClientDataSets, each with its own TDBGrid on separate TTabSheets of a TPageControl. When I use the scroll bars on the TDBGrids to change records I often get stopped with the message " Access violation at address ________ in module 'midas.dll'." One suggestion on the net was to put "midas" in the USES section of my code, but the same thing happened. Anyone know what's wrong?
D3D11 Header Files out parameters problem
I have a small code like this:
var
rtv_in, rtv_out: ID3D11RenderTargetView;
dsv_in, dsv_out: ID3D11DepthStencilView;
begin
//... some code here to setup rtv_in and dsv_in;
TCustomDX11Context.SharedContext.OMSetRenderTargetViews(1, rtv_in, dsv_in);
TCustomDX11Context.SharedContext.OMGetRenderTargetView(1, rtv_out, dsv_out);
after this line rtv_out and dsv_out returns nil. But if I use some other DirectX translation (other than Winapi.D3D11) with some changes (like using PID3D11RenderTargetView instead and etc); it works fine.
Am I using this wrong or is there a problem in the API translation?
SCPI commanmds in Delphi?
Does anyone have any info on how to implement SCPI commands in Delphi? I need to capture data from a digital multimeter. Thanks.
parse an Uri Androidapi::JNI::Net
Hello to everyone!!!
I want to launch google maps with some coords that i have on my app.
Acording google´s documentation i have to add to my intent an uri.
Uri gmmIntentUri = Uri.parse("google.streetview:cbll=46.414382,10.013988");
however i cant find the parse method in Androidapi::Jni::Java::Net::_di_JURI
how can i achieve this?
thank you!
XE8 Build release IOS App error ERROR ITMS-90502: "Invalid Bundle. Apps that only contain the arm64 slice must also have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist."
I receive the error:
ERROR ITMS-90502: "Invalid Bundle. Apps that only contain the arm64 slice must also have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist."
I Try ser the UIRequiredDeviceCapabilities to YES and/or TRUE and/or amrv7 and/or and standard but not work.
My xcode is 6.1
please i need help.
C++Builder: Link error when calling a method from a Jar file
I'm developing a mobile app using C++ Builder Berlin 10.1 which use a Jar library to scan barcodes. With Java2OP, I obtained a Delphi Bridge File to use the functions of the Jar. I translated it to C++ and include it to my project with the associated Jar. Here are my files:
Delphi:
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2014 Embarcadero Technologies, Inc. } { } {*******************************************************} unit Android.JNI.ATScanLib; interface uses Androidapi.JNIBridge, Androidapi.JNI.JavaTypes; type // ===== Forward declarations ===== JAsyncTask = interface;//android.os.AsyncTask JAsyncTask_Status = interface;//android.os.AsyncTask$Status JATScanLib = interface;//com.atid.lib.ATScanLib JATScanLib_OnResponseListener = interface;//com.atid.lib.ATScanLib$OnResponseListener JATScanLib_TagSequenceTask = interface;//com.atid.lib.ATScanLib$TagSequenceTask JVoid = interface;//java.lang.Void // ===== Interface declarations ===== JAsyncTaskClass = interface(JObjectClass) ['{73C141D6-F8D7-4FE4-BFA3-3441B6367189}'] {class} function _GetSERIAL_EXECUTOR: JExecutor; {class} function _GetTHREAD_POOL_EXECUTOR: JExecutor; {class} function init: JAsyncTask; cdecl; {class} procedure execute(runnable: JRunnable); cdecl; overload; {class} property SERIAL_EXECUTOR: JExecutor read _GetSERIAL_EXECUTOR; {class} property THREAD_POOL_EXECUTOR: JExecutor read _GetTHREAD_POOL_EXECUTOR; end; [JavaSignature('android/os/AsyncTask')] JAsyncTask = interface(JObject) ['{8BC49850-F199-4620-BCFF-ACDA1D69417A}'] function cancel(mayInterruptIfRunning: Boolean): Boolean; cdecl; function &get: JObject; cdecl; overload; function &get(timeout: Int64; unit_: JTimeUnit): JObject; cdecl; overload; function getStatus: JAsyncTask_Status; cdecl; function isCancelled: Boolean; cdecl; end; TJAsyncTask = class(TJavaGenericImport) end; JAsyncTask_StatusClass = interface(JEnumClass) ['{16452E24-44D5-4E84-990E-3C1916FB372B}'] {class} function _GetFINISHED: JAsyncTask_Status; {class} function _GetPENDING: JAsyncTask_Status; {class} function _GetRUNNING: JAsyncTask_Status; {class} function valueOf(name: JString): JAsyncTask_Status; cdecl; {class} function values: TJavaObjectArray ; cdecl; {class} property FINISHED: JAsyncTask_Status read _GetFINISHED; {class} property PENDING: JAsyncTask_Status read _GetPENDING; {class} property RUNNING: JAsyncTask_Status read _GetRUNNING; end; [JavaSignature('android/os/AsyncTask$Status')] JAsyncTask_Status = interface(JEnum) ['{96B0BCE7-1312-49B9-9F33-43541680B0E7}'] end; TJAsyncTask_Status = class(TJavaGenericImport ) end; JATScanLibClass = interface(JObjectClass) ['{9A209D1D-07C6-4309-88AD-8A2EF359CF34}'] {class} function _GetREAD_ENCODING_ERROR: Integer; {class} function _GetREAD_ERROR: Integer; {class} function _GetREAD_OK: Integer; {class} function _GetREAD_TIMEOUT: Integer; {class} function init: JATScanLib; cdecl; {class} property READ_ENCODING_ERROR: Integer read _GetREAD_ENCODING_ERROR; {class} property READ_ERROR: Integer read _GetREAD_ERROR; {class} property READ_OK: Integer read _GetREAD_OK; {class} property READ_TIMEOUT: Integer read _GetREAD_TIMEOUT; end; [JavaSignature('com/atid/lib/ATScanLib')] JATScanLib = interface(JObject) ['{74B37E9E-F88A-4EB0-AEDF-538A472223A0}'] function Read(P1: TJavaArray ): Integer; cdecl; function getReadResults: JString; cdecl; procedure init; cdecl; procedure setEncoding(P1: JString); cdecl; procedure setOnResponseListener(P1: JATScanLib_OnResponseListener); cdecl; procedure start; cdecl; procedure stop; cdecl; end; TJATScanLib = class(TJavaGenericImport ) end; JATScanLib_OnResponseListenerClass = interface(IJavaClass) ['{654B87BA-B4EE-4102-85E9-9FDFF3C82BAA}'] end; [JavaSignature('com/atid/lib/ATScanLib$OnResponseListener')] JATScanLib_OnResponseListener = interface(IJavaInstance) ['{35AC182B-7684-47EA-9BA8-07B504F85943}'] procedure onResponse(P1: Integer); cdecl; end; TJATScanLib_OnResponseListener = class(TJavaGenericImport ) end; JATScanLib_TagSequenceTaskClass = interface(JAsyncTaskClass) ['{1CF84DF6-6115-4FB5-9967-B55E74A3155C}'] end; [JavaSignature('com/atid/lib/ATScanLib$TagSequenceTask')] JATScanLib_TagSequenceTask = interface(JAsyncTask) ['{B83D8A9F-C1C4-4023-B1D8-3D9ABFB1FD2C}'] end; TJATScanLib_TagSequenceTask = class(TJavaGenericImport ) end; JVoidClass = interface(JObjectClass) ['{E5AB6B2B-2580-469B-BBF6-C226984DFEBE}'] {class} function _GetTYPE: Jlang_Class; {class} property &TYPE: Jlang_Class read _GetTYPE; end; [JavaSignature('java/lang/Void')] JVoid = interface(JObject) ['{013CC63A-938C-46BE-ACAC-BA854F2F6AC8}'] end; TJVoid = class(TJavaGenericImport ) end; implementation procedure RegisterTypes; begin TRegTypes.RegisterType('Android.JNI.ATScanLib.JAsyncTask', TypeInfo(Android.JNI.ATScanLib.JAsyncTask)); TRegTypes.RegisterType('Android.JNI.ATScanLib.JAsyncTask_Status', TypeInfo(Android.JNI.ATScanLib.JAsyncTask_Status)); TRegTypes.RegisterType('Android.JNI.ATScanLib.JATScanLib', TypeInfo(Android.JNI.ATScanLib.JATScanLib)); TRegTypes.RegisterType('Android.JNI.ATScanLib.JATScanLib_OnResponseListener', TypeInfo(Android.JNI.ATScanLib.JATScanLib_OnResponseListener)); TRegTypes.RegisterType('Android.JNI.ATScanLib.JATScanLib_TagSequenceTask', TypeInfo(Android.JNI.ATScanLib.JATScanLib_TagSequenceTask)); TRegTypes.RegisterType('Android.JNI.ATScanLib.JVoid', TypeInfo(Android.JNI.ATScanLib.JVoid)); end; initialization RegisterTypes; end.
C++:
#ifndef Android_JNI_ATScanLibHPP #define Android_JNI_ATScanLibHPP #pragma delphiheader begin #pragma option push #pragma option -w- // All warnings off #pragma option -Vx // Zero-length empty class member #pragma pack(push,8) #include#include #include #include namespace Android{ namespace Jni{ namespace Atscanlib{ __interface JAsyncTask; typedef System::DelphiInterface _di_JAsyncTask; __interface JAsyncTaskClass; typedef System::DelphiInterface _di_JAsyncTaskClass; __interface JAsyncTask_Status; typedef System::DelphiInterface _di_JAsyncTask_Status; __interface JAsyncTask_StatusClass; typedef System::DelphiInterface _di_JAsyncTask_StatusClass; __interface JATScanLib; typedef System::DelphiInterface _di_JATScanLib; __interface JATScanLibClass; typedef System::DelphiInterface _di_JATScanLibClass; __interface JATScanLib_OnResponseListener; typedef System::DelphiInterface _di_JATScanLib_OnResponseListener; __interface JATScanLib_OnResponseListenerClass; typedef System::DelphiInterface _di_JATScanLib_OnResponseListenerClass; __interface JATScanLib_TagSequenceTask; typedef System::DelphiInterface _di_JATScanLib_TagSequenceTask; __interface JATScanLib_TagSequenceTaskClass; typedef System::DelphiInterface _di_JATScanLib_TagSequenceTaskClass; __interface JVoid; typedef System::DelphiInterface _di_JVoid; __interface JVoidClass; typedef System::DelphiInterface _di_JVoidClass; __interface INTERFACE_UUID("{73C141D6-F8D7-4FE4-BFA3-3441B6367189}") JAsyncTaskClass : public Androidapi::Jni::Javatypes::JObjectClass { public: virtual JExecutor _GetSERIAL_EXECUTOR() = 0; virtual JExecutor _GetTHREAD_POOL_EXECUTOR() = 0; HIDESBASE virtual _di_JAsyncTask __cdecl init() = 0; virtual void __cdecl execute(JRunnable runnable) = 0; __property JExecutor SERIAL_EXECUTOR = {read = _GetSERIAL_EXECUTOR}; __property JExecutor THREAD_POOL_EXECUTOR = {read = _GetTHREAD_POOL_EXECUTOR}; }; __interface INTERFACE_UUID("{73C141D6-F8D7-4FE4-BFA3-3441B6367189}") JAsyncTask : public Androidapi::Jni::Javatypes::JObject { public: virtual bool __cdecl cancel(bool mayInterruptIfRunning) = 0; virtual JObject __cdecl get() = 0; virtual JObject __cdecl get(__int64 timeout, JTimeUnit unit_) = 0; virtual _di_JAsyncTask_Status __cdecl getStatus() = 0; virtual bool __cdecl isCancelled() = 0; }; class DELPHICLASS TJAsyncTask; #pragma pack(push,4) class PASCALIMPLEMENTATION TJAsyncTask : public Androidapi::Jnibridge::TJavaGenericImport__2<_di_JAsyncTaskClass, _di_JAsyncTask>{ typedef Androidapi::Jnibridge::TJavaGenericImport__2<_di_JAsyncTaskClass, _di_JAsyncTask> inherited; public: inline __fastcall TJAsyncTask(void) : Androidapi::Jnibridge::TJavaGenericImport__2<_di_JAsyncTaskClass, _di_JAsyncTask> (){} inline __fastcall virtual ~TJAsyncTask(void){} }; #pragma pack(pop) __interface INTERFACE_UUID("{16452E24-44D5-4E84-990E-3C1916FB372B}") JAsyncTask_StatusClass : public Androidapi::Jni::Javatypes::JEnumClass { public: virtual _di_JAsyncTask_Status _GetFINISHED() = 0; virtual _di_JAsyncTask_Status _GetPENDING() = 0; virtual _di_JAsyncTask_Status _GetRUNNING() = 0; virtual _di_JAsyncTask_Status __cdecl valueOf(JString name) = 0; virtual TJavaObjectArray__1<_di_JAsyncTask_Status> __cdecl values() = 0; __property _di_JAsyncTask_Status FINISHED = {read = _GetFINISHED}; __property _di_JAsyncTask_Status PENDING = {read = _GetPENDING}; __property _di_JAsyncTask_Status RUNNING = {read = _GetRUNNING}; }; __interface INTERFACE_UUID("{96B0BCE7-1312-49B9-9F33-43541680B0E7}") JAsyncTask_Status : public Androidapi::Jni::Javatypes::JEnum { }; class DELPHICLASS TJAsyncTask_Status; #pragma pack(push,4) class PASCALIMPLEMENTATION TJAsyncTask_Status : public Androidapi::Jnibridge::TJavaGenericImport__2<_di_JAsyncTask_StatusClass, _di_JAsyncTask_Status>{ typedef Androidapi::Jnibridge::TJavaGenericImport__2<_di_JAsyncTask_StatusClass, _di_JAsyncTask_Status> inherited; public: inline __fastcall TJAsyncTask_Status(void) : Androidapi::Jnibridge::TJavaGenericImport__2<_di_JAsyncTask_StatusClass, _di_JAsyncTask_Status> (){} inline __fastcall virtual ~TJAsyncTask_Status(void){} }; #pragma pack(pop) __interface INTERFACE_UUID("{9A209D1D-07C6-4309-88AD-8A2EF359CF34}") JATScanLibClass : public Androidapi::Jni::Javatypes::JObjectClass { public: virtual int _GetREAD_ENCODING_ERROR() = 0; virtual int _GetREAD_ERROR() = 0; virtual int _GetREAD_OK() = 0; virtual int _GetREAD_TIMEOUT() = 0; HIDESBASE virtual _di_JATScanLib __cdecl init() = 0; __property int READ_ENCODING_ERROR = {read = _GetREAD_ENCODING_ERROR}; __property int READ_ERROR = {read = _GetREAD_ERROR}; __property int READ_OK = {read = _GetREAD_OK}; __property int READ_TIMEOUT = {read = _GetREAD_TIMEOUT}; }; __interface INTERFACE_UUID("{74B37E9E-F88A-4EB0-AEDF-538A472223A0}") JATScanLib : public Androidapi::Jni::Javatypes::JObject { public: virtual int __cdecl Read(TJavaArray__1 P1) = 0; virtual JString __cdecl getReadResults() = 0; virtual void __cdecl init() = 0; virtual void __cdecl setEncoding(JString P1) = 0; virtual void __cdecl setOnResponseListener(_di_JATScanLib_OnResponseListener P1) = 0; virtual void __cdecl start() = 0; virtual void __cdecl stop() = 0; }; class DELPHICLASS TJATScanLib; #pragma pack(push,4) class PASCALIMPLEMENTATION TJATScanLib : public Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLibClass, _di_JATScanLib>{ typedef Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLibClass, _di_JATScanLib> inherited; public: inline __fastcall TJATScanLib() : Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLibClass, _di_JATScanLib> (){} inline __fastcall virtual ~TJATScanLib(); }; #pragma pack(pop) __interface INTERFACE_UUID("{654B87BA-B4EE-4102-85E9-9FDFF3C82BAA}") JATScanLib_OnResponseListenerClass : public Androidapi::Jnibridge::IJavaClass { }; __interface INTERFACE_UUID("{35AC182B-7684-47EA-9BA8-07B504F85943}") JATScanLib_OnResponseListener : public Androidapi::Jnibridge::IJavaInstance { public: virtual void __cdecl onResponse(int P1) = 0; }; class DELPHICLASS TJATScanLib_OnResponseListener; #pragma pack(push,4) class PASCALIMPLEMENTATION TJATScanLib_OnResponseListener : public Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLib_OnResponseListenerClass, _di_JATScanLib_OnResponseListener>{ typedef Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLib_OnResponseListenerClass, _di_JATScanLib_OnResponseListener> inherited; public: inline __fastcall TJATScanLib_OnResponseListener(void) : Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLib_OnResponseListenerClass, _di_JATScanLib_OnResponseListener> (){} inline __fastcall virtual ~TJATScanLib_OnResponseListener(void){} }; #pragma pack(pop) __interface INTERFACE_UUID("{1CF84DF6-6115-4FB5-9967-B55E74A3155C}") JATScanLib_TagSequenceTaskClass : public _di_JAsyncTaskClass { }; __interface INTERFACE_UUID("{B83D8A9F-C1C4-4023-B1D8-3D9ABFB1FD2C}") JATScanLib_TagSequenceTask : public _di_JAsyncTask { }; class DELPHICLASS TJATScanLib_TagSequenceTask; #pragma pack(push,4) class PASCALIMPLEMENTATION TJATScanLib_TagSequenceTask : public Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLib_TagSequenceTaskClass, _di_JATScanLib_TagSequenceTask>{ typedef Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLib_TagSequenceTaskClass, _di_JATScanLib_TagSequenceTask> inherited; public: inline __fastcall TJATScanLib_TagSequenceTask(void) : Androidapi::Jnibridge::TJavaGenericImport__2<_di_JATScanLib_TagSequenceTaskClass, _di_JATScanLib_TagSequenceTask> (){} inline __fastcall virtual ~TJATScanLib_TagSequenceTask(void){} }; #pragma pack(pop) __interface INTERFACE_UUID("{E5AB6B2B-2580-469B-BBF6-C226984DFEBE}") JVoidClass : public Androidapi::Jni::Javatypes::JObjectClass { public: virtual Jlang_Class _GetTYPE() = 0; __property Jlang_Class TYPE = {read = _GetTYPE}; }; __interface INTERFACE_UUID("{013CC63A-938C-46BE-ACAC-BA854F2F6AC8}") JVoid : public Androidapi::Jni::Javatypes::JObject { }; class DELPHICLASS TJVoid; #pragma pack(push,4) class PASCALIMPLEMENTATION TJVoid : public Androidapi::Jnibridge::TJavaGenericImport__2<_di_JVoidClass, _di_JVoid>{ typedef Androidapi::Jnibridge::TJavaGenericImport__2<_di_JVoidClass, _di_JVoid> inherited; public: inline __fastcall TJVoid() : Androidapi::Jnibridge::TJavaGenericImport__2<_di_JVoidClass, _di_JVoid> (){} __fastcall virtual ~TJVoid(void){} }; #pragma pack(pop) extern DELPHI_PACKAGE void __fastcall RegisterTypes(); } } } #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_ANDROID_JNI_ATLIB) using namespace Android::Jni::Atscanlib; #endif #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_ANDROID_JNI) using namespace Android::Jni; #endif #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_ANDROID) using namespace Android; #endif #pragma pack(pop) #pragma option pop #pragma delphiheader end. #endif
When I tried to use the functions like this :
TJATScanLib* scan = new TJATScanLib();
_di_JATScanLibClass scanner = scan->JavaClass->init();
C++ Builder raised this link error :
"[ldandroid Erreur] C:\Users\Public\Documents\Embarcadero\Studio\18.0\CatalogRepository\AndroidNDK-9c_x86_GIB.Build.22858.6822\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: .\Android\Debug\Connexion.o: in function TForm_Connexion::TForm_Connexion(System::Classes::TComponent*):C:\Users\dylan\Documents\Embarcadero\Studio\Projets\PDA_Android/Connexion.cpp:28:error:
undefined reference to 'Androidapi::Jnibridge::TJavaGenericImport__2, System::DelphiInterface >::GetJavaClass()'"
and " [ldandroid Erreur] C:\Users\Public\Documents\Embarcadero\Studio\18.0\CatalogRepository\AndroidNDK-9c_x86_GIB.Build.22858.6822\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: .\Android\Debug\Connexion.o: in function TForm_Connexion::TForm_Connexion(System::Classes::TComponent*):C:\Users\dylan\Documents\Embarcadero\Studio\Projets\PDA_Android/Connexion.cpp:30:error:
undefined reference to 'vtable for Android::Jni::Atscanlib::TJATScanLib'"
Did I use the functions in the wrong way?
Error Insight not working
Delphi IDE 10.1 and 10.0
Error Insight not working.
Options is set.
In options->Code Insight->Error Insight is check.
Edit: After reinstalation work.