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

RAD Server Install Problem - stuck at license - by: Scott

$
0
0
Having problems installing RAD Server.
I get to the licensing screen and fill it out, no error, but it loops back to the type of license screen with three radio buttons every time. The information is valid. I filled it out manually, and I also downloaded and installed the license in case there was a problem with the registration server. Same result every time. Windows 2012 R2 with IIS 8.
Any thoughts?
Thanks,
Scott

D2007 - EditorLineEnds.ttr problem - by: Alan

$
0
0
I have this problem since 1 month ago:
Cannot create file
C:\Users\johns\AppData\Local\Temp\EditorLineEnds.ttr

I used to open 2 instances of Delphi 2007 for years but I got this error since last month.
I googled people say the result of Windows update in 2014. But I only came across this error in April.

Anyway to solve it?

What is a best way to convert STL vector to DynamicArray and vice versa - by: Alex

$
0
0
Hi all,
We are considering getting C++Builder with Delphi to use some legacy logic code (written for Delphi 2009) along with C++ libraries on Mac, and so far, except for unfortunate lack of C11 support with BCCOSX and small STL issues with BCC64, it looks like this way may work.
But could anybody please let me know if there any good way to convert vectors<> to something readable on the Delphi side – like DynamicArray? C++ libs we want to link to legacy code mostly use vectors, but legacy Delphi code uses only arrays/TList, and due to big size of data that will have to be passed between Delphi and C++, I thought that writing own functions that create new vector or array inside "for" loops is bad idea. Under VS C++/C# we used vector.data() (C++11 standard) and/or code like "std::vector<double> v; double* a = &v[0];", but I have not found how to pass a vector's inside data to DynamicArray class.
Thanks for any suggestion!

XMPP Digest-MD5 Auth (Delphi 10.2.3 + Indy) - by: Oleg

$
0
0
Hi to everyone! First of all, sorry for my English :)

It's need to port XMPP-client from Delphi 7 + Synapse on Delphi 10.2.3 + Indy. Some code was ported, but when I try to auth via Digest-MD5, server send <failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-authorized/></failure>

Please, help to fix it!





Transparent TListbox or Similar component - by: matrix

$
0
0
I would like to know if there is any component that looks like TListbox, but totally transparent and invisible

Is there a possibility to do this in delphi?









creating a visual studio C++ DLL accessable from Delphi - by: dwight

$
0
0
I need to create a DLL in visual studio c++ that I can access in delphi
I have had no problems getting functon calls and data returned to delphi
I cannot get the data passed from delphi to the c++ dll function

calling fnooprng returns the correct value

calling getooprng returns a incorrect value - no matter what value is sent

I have attached the cpp source for the DLL and the pas for the delphi routine trying to call it as txt files

thanks

passing parameters from delphi to c++ DLL - by: dwight

$
0
0
I have a visual studio C++ DLL that I need to access from Delphi xe2 and rad 10

I can call functions and get back correct data. (fnooprng)
but when calling a function and passing a parameter I get a bad value back no matter what value is sent (getooprng)

I am missing something - but what?

C++ DLL code
// ooprng.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include "ooprng.h"



// This is an example of an exported variable
OOPRNG_API int nooprng=0;

// This is an example of an exported function.
OOPRNG_API int fnooprng(void)
{
return 142;
}

// get an rng value from ooprng
OOPRNG_API int getooprng(int v)
{

rngvalue = v;

return rngvalue;
}


// This is the constructor of a class that has been exported.
// see ooprng.h for the class definition
Cooprng::Cooprng()
{
return;
}

Delphi code
unit glirng1;

{

}

interface

uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Web.Win.Sockets, Data.DB,
Datasnap.DBClient, Datasnap.Win.MConnect, Datasnap.Win.SConnect,
IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP;

type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Label3: TLabel;
Label4: TLabel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);


private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
maxodds: integer;
rng: integer;
xfer: integer;
reqs,resp: widestring;

function getooprng(y: integer):integer; external 'ooprng.dll';
function fnooprng():integer; external 'ooprng.dll';

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
close;
end;



procedure TForm1.Button2Click(Sender: TObject);
begin
maxodds := strtoint(edit1.Text);
rng := getooprng(maxodds);
label1.Caption := inttostr(rng);

xfer := fnooprng();
label2.Caption := inttostr(xfer);


end;

end.


I am missing something

Android can't find dir.h - by: andrew

$
0
0
if I add
#include <dir.h>
then compile to Android fails with file not found. My distribution only includes dir.h for osx and windows. What is the workaround?

How to pack SoapServer into a Windows Service? - by: Andrew

$
0
0
How to create a SoapServer Application an complile it into a Windows Service?

Where does one get a serial number? - by: Mark

$
0
0
Hi,

I just bought another year of maintenance and Delphi 10.2.3 is listed in my registered downloads list. However - I cannot find the serial number that is demanded by the installer. I'd expect it to be listed in the registered downloads list - but, nope - that would be too easy, I guess. Also, as I have to enter my ID and password - the installer could simply check online... like Office 365 does. Nope - does not work either.

So - where did you find your serial numbers? Where has embarcadero hidden these numbers?

Best

Mark

when building an app on fmx tokyo for android it closes if release configuration - by: antonio

$
0
0
hello,
i have a serious problem.

any app i make for android (using the tokyo fmx) it works fine on my phone if in debug mode... but once in release mode it shows the splash screen and then closes without any error .

please help .. how can i fix this ?

Service Application Issue - by: ALEXANDRE TAKASHI

$
0
0
Hello people, I did a service application in Delphi 10, but it´s not installing with the prompt command
<name> /install /silent
The executable is opening inside a new IDE instance, totally weird.
Anybody can help me?

Thanks a lot!!

IBDatabase component not accessible. - by: Robert

$
0
0
Have existing app. Added dm with IBDatabase, IBSQL. IBTranaction. Design time they are identified. Runtime inaccessible.. To test I created a new project. Put same items on form (not dm) and button to connect. That works with no issue.

Any suggestions as to what to look for appreciated,

Have been stating at this and pondering for hours.

Attached pas/dfm


function TdmImportExport.ExportDelimitedFile(var TableName : String; var FieldList: TStringList; var OutPutFileName : String; var sRowDelimiter : String; var sColumnDelimiter : String): integer;
var
OutPutFile : TIBOutputDelimitedFile;
sqlCore : TStringList;
SQLStatement : TStrings;
i : integer;
testText : String;

begin
if not IBDatabase1.Connected then
IBDatabase1.Connected;
if not IBTransaction1.Active then All the IB components inaccessible
IBTransaction1.StartTransaction;
OutPutFile := TIBOutputDelimitedFile.Create;
IBSQL1.Close;
IBSQL1.SQL.Clear;
sqlCore := TStringList.Create;
sqlCore.Append('select (');
sqlCore.Append(FieldList.CommaText);
sqlCore.Append(') from ');
sqlCore.Append( TableName );
testText := sqlCore.Text;
testText := Trim(testText);
{$IFDEF DEBUG}
if MessageDlg(testText,
mtConfirmation, [mbOk, mbCancel], 0) = mrCancel then
Exit;
{$ENDIF}

IBSQL1.SQL.Text := sqlCore.Text;
try
with OutPutFile do
begin
Filename := OutPutFileName;
ColDelimiter := sColumnDelimiter; //',';
RowDelimiter := sRowDelimiter; //#13#10; // #13 + #10;
OutputTitles := false;
end;
IBSql1.BatchOutput(OutPutFile)
finally
OutPutFile.Free;
if IBTransaction1.Active then
IBTransaction1.Active := false;
if IBDatabase1.Connected then
IBDatabase1.Connected := false;
if sqlCore <> nil then sqlCore.Free;
end; // try-finally
end;

Update .Net Framework version for msbuild - by: Rodrigo

$
0
0
.Net Framework 3.5 is not supported by Microsoft anymore.
Any chance to update the .Net Framework version for msbuild ?

URLEncode in unit IdURI returns the string same as entered - by: Frank

$
0
0
The URLEncode function does nothing except return the string the same way it was sent into it. Is there something else I can use that actually functions?

Traffic lights don't include the polls. I'm not a robot.

duplicate symbols for architecture arm64 (AdMob SDK) - by: Christopher

$
0
0
Hello embarcadero forum members,
I wanted to add interstitial ads (full screen, not just TBannerAds) to my firemonkey application. To do this, I wanted to import the GoogleMobileAds (AdMob) framework for iOS.
I downloaded the most recent version of the SDK (7.34.0) and extracted it to the frameworks path of the iOS 11 SDK. I then generated pascal headers for it using the SDK Transform Assistant. I added the headers to an empty project and added the linker options to fix "Undefined symbol" errors. I also had to copy over a few other frameworks using the SDK Manager (dependencies of GoogleMobileAds).

The project runs fine on iOSDevice32 but when building for iOSDevice64 linking fails with the error

etc.

How can I fix this? I am using Delphi 10.2.3 on Windows 10 and XCode 9 on OSX 10.13.6 (although I also tried it with XCode 9.2 and 9.4.1 and the corresponding iOS versions).

What does "Could not find a match for 'operator MyClass::=(MyClass *)" mean? - by: Gabe

$
0
0
I'm in the middle of creating DUnitX tests for our C++ application in C++ Builder Tokyo 10.2. I'm just wondering if I'm getting because of an incompatibility with Delphi and C++?

I created a new DUnitX project with all the template code following the paradigm of testing classes:


When I try to add 1 I get this error:


And when I add 2 I get this error:


Here's the .h file:


Here is RTables:


Part of me hopes its simple so I can get this done, but part of me hopes its not so that I don't end up embarrassing myself on how easy it might be haha

Turn Bluetooth on/off with Android app - by: Frank

$
0
0
Any complete example of how to do this? I have found incomplete examples like one posted on the old forum that can no longer be replied to. These was something in that example called JBluetoothAdapter. I have not been able to determine the uses for that. The poster left out all the uses statements in his example, apparently assuming we had that knowledge already.

Can we get this link put back? - by: Frank

[solved] Delphi/RadStudio Tokyo crashing after launch - by: Dave

$
0
0
In case anyone else is cursing their computer with this problem...

When I start Delphi 10.2 the splash screen goes through the motions, and shortly after 'installed all IDE modules' or similar, I get a Delphi Exception complaining that the 'notifications are not available', and the stack trace includes TNotification. Delphi then seems stuck in a infinite retry loop of exceptions. Task manager -> End task is required.

It turns out that Avast Anti-virus recently installed a 'Do not disturb' mode, which breaks the windows notification area.
You can confirm this in Windows 10 if the 'Focus assist' tile in the notification area won't change state when pushed, or the Settings->Focus assist window does a force close.

The solution is to remove avast's 'Do Not Disturb mode':
Settings->Apps & Features->Avast anti-virus, Modify, and remove the 'do not disturb' feature. Reboot.

Oh, and for the Delphi/Ide team at Embarcadero to add a new test for QA :)

DaveS
Viewing all 3677 articles
Browse latest View live


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