calling a c++ function from Delphi [Edit]
Could someone please point me to an article (web, documentation) that shows how to implement a c/c++ function that takes a string and returns a string as output parameter. I want to call this method from delphi.
So far I tried:
__declspec( dllexport ) __fastcall int method(const System::String inputString, System::String& outputString)
int rc = -1;
outputString += <some value>;
function method(inputString: String; var outputString: String): integer; external 'method.dll' name '@method$qqrx20System@UnicodeString...Data transfer from a C++ calling function to Pascal called function [Edit]
In a C++Builder 2010 project I have a function calling another function in a pascal unit. This pascal unit is included in my project.
The problem I cannot solve is that the one of the parameters in the calling function is not transferred correctly to the called function.
Calling C++ function:
ID3v2Tag->SetUnicodeComment("COMM", FComment, FLanguageID, FDescription);
TID3v2Tag *ID3v2Tag; // type defined in pascal unit
TLanguageID FLanguageID; // type defined in pascal unit
...Re: Delphi for the Mac [Edit] [Edit]
Rudy Velthuis (TeamB) wrote:
> > <hides under desk as fire storm about TeamB editing other people's
> > posts re-ignites>
> I was thinking the same.
Technosoft Systems Ltd
...Re: Maybe is a new life for Delphi? [Edit] [Edit]
Cesar Romero wrote:
> > This is not ad. Sparta is not commercial product.
> Any product announcement should be in 3rd party group, comercial or
> not, that is part of newsgroup guidelines.
Craig Stuntz · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz/
...Re: compile problem c++ 2009 [Edit] [Edit]
Antonio Estevez <email@example.com> wrote:
>> Again a bit further, but now the next errors:
>> static unsigned int nr_of_links = ((sizeof( log_link_array )) /
>> [BCC32 Warning] PatsupFunctionelelaag.h(405): W8058 Cannot create
>> pre-compiled header: initialized data in header
>That's a warning, not an error.
Agreed, but it's probably worth trying to clear up, just for build
times. In this case, (and bearing in mind I don't have CB2009, so I'm
unsure quite how fussy...Edit but no edit
I've Created a custom module and reuse the survey.dnn file to help with the install here it is.
<?xml version="1.0" encoding="utf-8" ?>
<dotnetnuke version="2.0" type="Module">
<name>CompanyName - Photos</name>
<description>Photos allows you to add photo albums</description>
<friendlyname>CompanyName - Photos</friendlyname>
<c...To edit or no to edit
Can I edit, whatever I've written so far, so that it doesn't look like
I wrote utterly crap?-)
"Linux is like living in a teepee. No Windows, no Gates, Apache
in house." -- Usenet signature
Pieter Zijlstra wrote:
> Can I edit, whatever I've written so far, so that it doesn't look like
> I wrote utterly crap?-)
Oh boy, the edit button vanished from the web-forum ...
"Humor is also a way of saying something serious."
-- T. S. Eliot (1888 - 1965)
Pieter Zijlstra wrote:
I have some webform(.aspx page) in which i have some controls (for input) and i would like to make that screen editable/not editable based on some condition. how can i do that.
the whole intent is user can read the information but can't change.
If you want to make the controls editable/non-editable, you can set their ReadOnly property to true or false accordingly. What exactly do you imply by making the screen editable/non-editable?Thanks,MaxLet Me Google That For You!
i mean to say i would like to show the current values but user should not mod...c# function conevrt to Delphi Win32 [Edit]
public static System.Drawing.Image GetFromOZJ(string FilePath)
System.Drawing.Image image1 = null;
System.IO.FileStream fileStream1 = null;
System.IO.MemoryStream memoryStream1 = null;
byte bArr1 = new byte;
fileStream1 = new System.IO.FileStream(FilePath, System.IO.FileMode.Open, System.IO.FileAccess.Read);
int i1 = (int)fileStream1.Length - 24;
byte bArr2 = new byte[i1];
fileStream1.Read...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
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...Import C or C++ DLL in Delphi [Edit]
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.
function UCC_OpenCamera(CamId: LongWord; SpeedLimit: integer): UNI_RETURN_TYPE; stdcall external 'UniControl.DLL';
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 ...[To Help a Newbie]: Example of calling Today() function in C++Builder XE5 [Edit]
I am a C++Builder newbie. Can anybody indicate me suitable URLs to study and learn (better by example) how to call "Today()" function (included in System.DateUtils) from a simple event handler f.i. checking a TCalendar component at OnChange?
Thanks in advance and Happy 2014++! Aldo
Edited by: Aldo Ceccarelli on Jan 7, 2014 3:02 AM
In practice I would like to learn where I need to declare (unfrtunately I am brand new to both language and IDE, sorry)
extern DELPHI_PACKAGE System::TDateTime __fastcall Today(void);
in order to be able to build ok without fol...calling a c++ dll from a delphi vcl app crashes the app upon exit [Edit]
I am using RAD Studio 2010 and I downloaded the latest updates. Since I can't see how I can attach a file to the message, I included in this message the source code for each file:
To reproduce this problem follow these steps:
Create a project group with two projects, one c++ dll project and one a Delphi VCL forms project. Save all the files in the same folder.
1. Use the wizard to create the c++ dll project, select c++ & Use VCL checkboxes. Make sure Project Options->C++ Linker->Dynamic RTL is set to true. I also added memmgr.lib and sharemem.obj to the project but I bel...A call to an OS function failed when DSK file is loaded (Delphi 7, XP 64) [Edit]
I got a new computer with Windows XP 64:
OS Name Microsoft(R) Windows(R) XP Professional x64 Edition
Version 5.2.3790 Service Pack 2 Build 3790
I installed Delphi 7 (Build 8.1)
It looks like everything is working: I can compile and debug my projects. But when I turn on Autosave option->Project desktop, and then try to load a project (which has its DSK file), I get the following error:
A call to an OS function failed.
Sometimes I get error: Class does not exist (1411).
I had no this problem with XP 32.
Could you please help me with this?