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

H

$
0
0

Hi !

I need create application for iOS/Android/Win10 that work with device by BLE. I opened examples but no one not about write characteristics ( only read). I need working code that connect to BLE device and read and write characteristics .

Please provide it. 


WSDL/SOAP on Multi-Device application don't work on Android - C++ Builder Berlin 10.1

$
0
0

Hello,

I made a test application to test Multi-Device application and validate our migration to the new embarcadero C++ Builder 10.1 Berlin... unfortunately it didn't get so well...

We have a web-service developed in C++ builder 2007 (ISAPI). When i import the WSDL in my project, everything work fine in Windows 32 and 64 but unfortunately the application didn't work on android....

I've got these message :

  • on Android : "Unfortunately, [applicationName] has stopped".
  • on C++ Builder : "Fatal error : application not responding..." (translated from french)
  • on C++ Builder : Exception : Segmentation fault (11).
  • on C++ Builder : Access Violation Exception at 203EE6F4 in "dbkdebugide240.bpl"...

I don't have to call the web service, the simple presence of the .cpp file in the project is enough to make the application stop ... I am unable to debug since the application stop before calling any line of my code...

I search on internet and found nothing about it, maybe one post on QualityCenter but the website didn't respond....

Plz help me, is-that normal? am i missing something? or the bug is known?

Sincerely,

William  

I work on android 4.4.4 ARM emulator and Deploy on Zebra MC92N terminal

Any method of making a suitable LIB file for a DLL created with Microsoft VS C++?

$
0
0

A hardware manufacturer has provided a DLL to interface with their USB device.  This DLL is a C++ Class Library created in Microsoft VisualStudio.

The supplied LIB files would not link (no surprises there - wrong format), so I used IMPLIB to create Embarcadero compatible LIB files.  However, the link still failed reporting that all of the external class methods (including constructors and destructors) referenced in my code had not been found.

Using IMPDEF showed that there was obscure name decoration, that obviously was not compatible with the name decoration used by RAD Studio.

A quick search online turned up a StackOverflow article which stated that this issue was not only between different company compilers, but even between different versions of compiler for the same manufacturer - there is no standard for name decoration in C++ DLLs.

If I can't link to this DLL, I essentially can't use the hardware.

Does anyone know a method of generating a LIB file from a DLL created in Microsoft VS C++ that will link to a RAD Studio Win32 executable project?

Kinvey PushReceived called 8 times on Android

$
0
0

Hi,
I just tried to develop a quick simple app to get notifications from Kinvey and everything works fine on iOS (iPad and iPhone), when I send a string, it's propagated to iOS and I add it to a Memo field for each notification string.
On Android though, I get each notification 8 times... 

Any idea why?
I don't have any loop, so I just don't get it why I get 1 notification on iOS and why I go 8 times into the PushReceived event when on Android.


My Code for PushReceived is as follows:

procedure TForm1.PushEventsPushReceived(Sender: TObject;
  const AData: TPushData);
begin
    Memo.Lines.Add('-- '+formatDateTime('dd-mm-yyyy hh:nn:ss', Now )+' --' ) ;
    {$IF DEFINED(iOS)}
      Memo.Lines.Add(AData.APS.Alert) ;
      Memo.Lines.Add(AData.APS.Badge) ;
   {$ENDIF}
   {$IF DEFINED (ANDROID)}
      If( AData.GCM.Title <> '') Then
         Memo.Lines.Add('- '+AData.GCM.Title+' -') ;
      Memo.Lines.Add(AData.GCM.Msg) ;
   {$ENDIF}
   Memo.Lines.Add('') ;
end;

Thanks for any clue.

Steve J

FireDac: any way to get SQL data as an object?

$
0
0

Hi,
I was wondering whether it's possible to actually get the result of an SQL statement as an object?
Did anybody typecast a result into an object?

Something like:
The class TProduct has a idProduct: integer, idName:String, idPrice:integer and equivalent fields in a Database, is it possible to get the select from the DB and avoid the idProduct := sql.FieldByName("idProduct").AsInteger, etc... ? A kind of auto field matching, filling the variables automatically (besides blobs)?

The example here is simple, but when you have 20+ fields it's more cumbersome: you need to manually assign each field.
That would be convenient too to write data into the DB.
I'd like to avoid storing the class as a BLOB so we can still query the values.

Thanks for any guidance.

Steve

TDSRestConnection and string parameters

$
0
0

Hi all,

We have a small 3-tier application with a DataSnap-server and a windows-client
using a TDSRestConnection component to connect to this datasnap server over HTTP/REST.
We have several server-methods with string parameters.
In Delphi 10.1 Berlin the spaces in these string parameters are replaced by plus-signs (+)

One can easily reproduce this effect.
Create a basic datasnap server with sample methods using the datasnap server wizard.
(VCL Forms application, protocol HTTP, include sample methods and use a TDSServerModule as ancestor type for the server methods)

Create a windows VCL-client with a TDSRestConnection component to make the connection with the server.
Call the sample ReverseString method with for instance "Hello   world" as parameter. (3 spaces between the words)
The server will return "Hello+++world"

This effect is only visible with Delphi 10.1 Berlin, not with Seattle.
Anyone an idea how to avoid this or is this a bug ?

Regards
Freddy

RTTI over DLL boundaries

$
0
0

Hello,

I'm trying to migrate a project from our old borland to the latest XE 10.1, using trial. 

I ran into a problem while compiling ICU : while compiling the second dll (icuin), which depends on the first one (icuuc), there is a link error :

[ilink64 Error] Error: Unresolved external 'typeinfo for icu_53::UMemory' referenced from E:\DEV\COMPONENTS\ICU\WINDOWS\WIN64\RELEASE\COLLATIONKEYS.O

With UMemory defined (in icuuc) as this (comments stripped)

class U_COMMON_API UMemory {
public:
    static void * U_EXPORT2 operator new(size_t size) U_NO_THROW;
    static void * U_EXPORT2 operator new[](size_t size) U_NO_THROW;
    static void U_EXPORT2 operator delete(void *p) U_NO_THROW;
    static void U_EXPORT2 operator delete[](void *p) U_NO_THROW;
    static inline void * U_EXPORT2 operator new(size_t, void *ptr) U_NO_THROW { return ptr; }
    static inline void U_EXPORT2 operator delete(void *, void *) U_NO_THROW {}
};

U_COMMON_API is defined as __declspec( dllexport ) in icuuc and as __declspec( dllimport ) in icuin ; U_EXPORT_2 is __cdecl

I can't figure why it needs this information as there is no virtual methods in UMemory, nor than I figure how to make this to compile :(

I've put the cbproj files in a gist, if needed on undertand anything: https://gist.github.com/BastienDurel/6d7971d2379629c922d7ae9b76df510f

Thanks,

 

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


TeeChart for RAD Studio 10.1

$
0
0

The feature list for RAD Studio 10.1 indicates it includes TeeChart but it is not installed in the Tool Palette and I cannot find a design time package to install.  The GetIt Manager doesn't list TeeChart as an option.  What do I need to do to install TeeChart in RAD Stuation 10.1?

adv manager

$
0
0

Hello all I'm Very new to Android app development.

I've installed my fresh new copy of Berlin and I have tried to compile and execute in the ADV the AdapterBindSourceSampler, but even if I have installed the android SDK in the windows 10 menu, I can't find where to set up my Android emulator because under Samples I have not found the android SDK menu where i can find the Android avd manager and the Android tools application as shown in the help file. 

What's wrong in my installation? 

thenk you for your help

 

franz

Search for Usages tabs

$
0
0

New searches no longer generate a new tab?  In XE7, a new search always generated a new tab, as the documentation says:

Note that each new Search for Usages command adds its own tab to the Search for Usages window.

But, now that I've upgraded to Delphi 10, search results always replace the existing tab.  Is there a setting in the IDE so I can get this functionality back?

DirectShow9.hpp problem

$
0
0

Dir Sir:

I include  DirectShow9.hpp in my project and run

1.Get message as below

[bcc32 Error] amvideo.h(389): E2015 Ambiguity between 'std::abs(long double)' and 'std::abs(double)'
  Full parser context
    Main.cpp(5): #include c:\program files (x86)\embarcadero\studio\17.0\include\windows\rtl\DirectShow9.hpp
    DirectShow9.hpp(11): #include c:\program files (x86)\embarcadero\studio\17.0\include\windows\rtl\Winapi.DirectShow9.hpp
    Winapi.DirectShow9.hpp(50): #include c:\program files (x86)\embarcadero\studio\17.0\include\windows\sdk\amvideo.h
    amvideo.h(396): decision to instantiate: long SAFE_DIBSIZE(const tagBITMAPINFOHEADER *,unsigned long *)
    --- Resetting parser context for instantiation...
    amvideo.h(378): parsing: long SAFE_DIBSIZE(const tagBITMAPINFOHEADER *,unsigned long *)

2.I modify dw = abs(pbi->biHeight); --> dw = abs((double)pbi->biHeight); and run again

3.Get message as below

[bcc32 Error] Winapi.DirectShow9.hpp(237): E2451 Undefined symbol 'IDirectShowStream'
  Full parser context
    Main.cpp(5): #include c:\program files (x86)\embarcadero\studio\17.0\include\windows\rtl\DirectShow9.hpp
    DirectShow9.hpp(11): #include c:\program files (x86)\embarcadero\studio\17.0\include\windows\rtl\Winapi.DirectShow9.hpp

I try to ask for help and get answer as:

We've examined the issue you faced and it does not relate to our controls. You can replicate it even without them - just create a new project, add the "#include " string to an *.h file and try to recompile the application.

So, the problem is related to the IDE and we've created a corresponding ticket in Embarcadero Quality Center - RSP-15280.

 

Please advise.

 

Safe to upgrade to Xcode 7.3 ?

$
0
0

Hi All,
Did anyone upgrade to Xcode 7.3 on the Mac? Does it break anything with iOS and OS X dev on Seattle 10?
Thanks 

ADT no longer developed by Google?

$
0
0

Hello,   Since Google stopped maintenance of ADT: how will this affect Android development with Delphi? Are there any suggestions how to continues Android development   Kind regards G.

Bad behaviour changing the device orientation

$
0
0

Hello,

I'm trying the C++ Builder for mobile development, but at the first samples that I've run, or even making a project from the scratch and adding to it any control with the Align = Client (I've tried to use the controls inside layouts, tabs, etc. as well), it does not realign the screen when you tilt the device at times. The width of the screen remains the same and sometimes the center changes as well. When the center changes the touch position have it's correct center, in this case it's a visual offset only. Is it a known issue? There is a workaround?

Correct image Bad image Uncentered client

(The number on the bottom button is the width of the Form)

 

Also, I can't fit the Client content with the status bar, the Client always uses all the screen and the status bar cover its content... Any tip to adjust it?

Status bar over the client

 

I don't know if it occurs only because I'm using the C++Builder instead Delphi... My current environment for the project:
Embarcadero® C++Builder 10.1 Berlin
Android SDK: Android N (API 24), SDK Tools 24.3.3
Devices: Asus ZenFone 2 with Android 5.0, Moto Maxx with Android 5.0.2

Thanks!


PS.: as I wrote to much, the TL;DR is marked in bold :)


WINXCTRLS.RES

$
0
0

Hi,

I get this, is there anything I can do?

[ilink32 Error] Error: RLINK32: Unsupported 16bit resource in file "C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\18.0\LIB\WIN32\RELEASE\WINXCTRLS.RES"

Steve

Code Insight not working with Android target

$
0
0

I am developing an Android app - when the target is 32-bit Windows, Code Insight works just fine, but when I set the Target to be an Android device, Code Insight does not work at all. Is there a fix please?

PAServer can't work

$
0
0

Hi, I has C++ builer Berlin installed in my computer. This days, I update C++ builder to RAD Studio because I need Delphi. But after installed RAD Studio the PAServer can't connect any more. I get "ElnvalidPointer:Invalid pointer operation" message when I press "Test Connection" Button. I can't connect to Win64 PC or MAC OSX. All I get is ElnvalidPointer. How can I solve this issue? Thanks Eric  

Custom Cursor on Firemonky

$
0
0

I'm trying to determine if there is anyway in firemonkey to use a custom cursor on an object. I'd like to be able to use a flat hand cursor when over an image that can be panned, but cannot find anyway to use a cursor outside the standard set provide. Thanks in advance for any information.

How to simulate key down under Delphi FMX

$
0
0

 how to simulate key down

  var Key: Word;  KeyChar: Char;

 begin

   // under FMX how to simulate key down

    // input '-' to Edit1

    Edit1.SetFocus;

    key:=0;

    KeyChar:='-';

    if Assigned(Focused) then

       Focused.KeyDown(Key, KeyChar, []);

 

    // input '-' to TNumberBox

    NumberBox1.SetFocus;

    key:=0;

    KeyChar:='-';

    NumberBox1.SelectAll;  // in order to replace current value 0

    if Assigned(Focused) then

       Focused.KeyDown(Key, KeyChar, []);

//    // Click / press CornerButton3

//    CornerButton3.SetFocus;

//    key:=vkReturn;

//    KeyChar:=#0;

//    if Assigned(Focused) then

//       Focused.KeyDown(Key, KeyChar, []);

 

Viewing all 1963 articles
Browse latest View live


Latest Images

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