Calling Microsoft c++ class from a Delphi app [Edit]Hello all !
I'm trying to call a class written under Microsoft Visual C++ 2003 by a Delphi app, but there is something wrong with the stack.
Here is the Microsoft Visual C++ 2003 class
----------------------------------------------------
class CPlugIn
{
public:
virtual void GetArraySize (
int &XSize, // Number of array columns (X)
int &YSize // Number of array rows (Y)
) = 0;
....
----------------------------------------------------
and many other methods in there that I have removed for more clarity.
This class translate in to Delphi i...
Delphi 7 app to web app conversion [Edit]My company has an old Windows engineering application that we would like to convert to a web application so that we can offer it as a software as a service. The application is written primarily in Delphi 7 with the heavy number crunching done in Fortran (I did say it was old!). We would like to reuse as much of the existing Delphi code as possible and only modify the Fortran enough so that it will run in the background on the web server.
We have never developed a web application so we're looking for guidance on the best way to make this conversion.
Our questions at this point:
...
Java app calling a Delphi DLLHello
I have a Java application that must call functions inside a large D7 dll.
For that, I used JNI calls. That part is OK and the delphi dll is receiving
the function parameters smoothly.
The Delphi dll has a couple Forms in it. And these Forms are unresponsive.
Timers don't work. Buttons will not invoke OnClick handlers.
Most important, the assync sockets in the forms, which the
dll uses to deliver its work, are not functioning either.
It seems that the dll is not receiving Windows messages.
I tried to simulate the application loop, but failed.
The same DLL works fine i...
How to Change Tablet App to Phone app in Delphi XE8? [Edit]Hi, i've created an app more specifically for tablets. So if the screen is smaller than 7 inch not everything fits. I do work with layouts and Align properties so everything gets scaled accordingly to the screen size.
I know a few options to make the app useable for phones ass well. But not sure what the best way is.
Option1:
Create multiple Views for each size screen.
Option2:
Use ScaledLayout to make everything smaller or bigger.
Option3:
Use scrollBox.
Option4:
Edit component sizes in FormCreate after checking screen size.
Option5:
Devide in more Forms.
*So what&...
Passing array from delphi app to C++ dllHi
I need to develop a C++ DLL to use with my Delphi application (The DLL must
be in C++ because we are going to use a lot of objects from OpenCV library).
In my DLL I need to create a routine that will receive an array of the
following delphi record:
TMyRecord = record
Origin: HRGN;
Destination: HRGN;
end;
I have an array of this record type:
var
MyArray: array of TMyRecord;
begin
SetLength(MyArray, 4);
// Fill the array
..
..
// Pass the data to my dll function
MyCPPDll(MyArray, 4);
end;
This is how it should work, I need to pass My...
How to build enterprise-grade Delphi appHi
It would be nice to build enterprise-grade appl with Delphi, but are the options or third party software (like in J2EE) to do this?
e.g.
1) there is J2EE middleware for hosting components - developer is not required to handle all the issues that are connected with session handling and different contexts in which the components can be stored (like application, session, request context, etc.). I understand that some of this can be done in DataSnap or in Web Services (can be even PHP, Java or .NET) and Delphi client - but in both cases there are some drawbacks:
- for DataSnap - much shou...
Calling C++ DLL call from DelphiHi All
I have C++ DLL setup that exports the following function:
bool ApplyRule(HANDLE DriverDevice, std::string *Path, PROTECTION_TYPE Type, PROTECTION_ACTION Action, bool Architecture64, bool AddRule)
I am not sure how to convert it properly to delphi, inparticular the std::string parameter.
ApplyRule : function (DriverDevice : THandle; Path : ????; Kind : PROTECTION_TYPE; Action : PROTECTION_ACTION; Architecture64 : Boolean; AddRule : Boolean) : boolean; stdcall;
Thanks for the help.
Chris Nillissen wrote:
> I am not sure how to convert it properly to delphi,...
How to use Delphi object embeded in a DLL in a C++Builder appHi all,
I've written a small DLL in Delphi and a test program in Delphi too and everything works fine but I need to write a C++Builder app that will use the DLL too and I don't know / understand how to get access to the object defined in the DLL.
MyDLL.dpr
{code}
library MyDLL;
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies ...
What advantages have to build one delphi xe7 app vs hybrid app as html5 bu? [Edit]I need to know which mobile advanced hardware characteristics differences has delphi xe7 vs html5 builder for example.
I need this characteristics:
TEXT EDITING
Text in different directions
Changing Color
On a picture
Copy and paste
Change Font
delete
uppercase lowercase
Save phrases
Select a saved phrase
Bank of personal texts
PHOTOS OR IMAGES
Pulling photos or images already created
cut
paste
Change in size
turn
Bank of personal images
Drawings
predefined Figures
Lines or free strokes
Change color and thickness
Fillings
Copy and paste
delete
Personal bank ...
Import C or C++ DLL in Delphi [Edit]Hello,
usually I can import a dll written in C in Delhi. To do that I write a unit (wrapper.pas) to link the dll with my VCL project.
example:
{code}
function UCC_OpenCamera(CamId: LongWord; SpeedLimit: integer): UNI_RETURN_TYPE; stdcall external 'UniControl.DLL';
{code}
This way works fine for me but it requires writing a lot of code to translate all calls and types in delphi.
There isn't another way to "convert/import automaticcally" the .dll?
1) Can I create a package inside C++ Builder and use it inside Delphi?
2) The command line tools IMPLIB.EXE (for ...
VCL app occasionally not exiting upon closing the main form [Edit]Hello:
I have to maintain an existing app, and I noticed during development that sometimes the application doesn't exit when I close its main form. It's VCL a app that uses dbexpress and the devart oracle driver. In the form close event it closes the connection to the database.
I didn't find anything on the quality central site related to this...
Do you guys have any idea what could it be? Have you seen this before?
Thanks
Update:
I found this post: https://groups.google.com/forum/#!topic/borland.public.delphi.nativeapi.win32/QDOdG1sDQNE. It seems similar to what...
Need info about calling managed C# Win app from unmanaged Delphi code
Hello experts!
I've recently learned enough C# & ASP.NET to be dangerous, and I need some help with an integration project. My shop is moving from Delphi 6 to Visual Studio 2005. I have no Delphi background, but I'm the lead dot Net guy because of my alleged expertise.
I have written a Windows app in C# which prints a Crystal Reports form. This app has to be called from an existing Delphi application. My app just needs a string from the calling app, and a boolean is returned to the caller, indicating success or failure.
My app has a public boolean method which takes an input stri...
[SOLVED] Delphi XE5Hello,
I have a very simple program that works perfectly.
But if I add a TIdTcpClient component on my form, with no change in the properties or event, just add it, then application crash when exiting with the hardware return button.
What is wrong ?
thank you
Franck
{code}
unit FormTestModbusXE;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.TabControl, FMX.StdCtrls, FMX.Edit, FMX.Layouts,
FMX.ListBox, IdBaseComponent, IdComponent, IdTCPConnection, Id...
Re: calling a c++ function from Delphi [Edit] [Edit]costa basil wrote:
> Sorry, I posted it here because different people read different lists
> and c++ guys might not read the delphi lists and vice-versa and I
> want to pick-up all brains...
And yet, it is not allowed.
--
Rudy Velthuis (TeamB) http://www.teamb.com
"This isn't right, this isn't even wrong."
-- Wolfgang Pauli (1900-1958), upon reading a young physicist's
paper
ok, understood.
...