How does one go about exposing a class written in Prism via COM Interop? For example, given the following interface:
TYPE
IFoo = public interface
property bar: string; read;
end;
FooImpl = class( IFoo )
private
function GetBar : string;
public
property bar: string; read GetBar;
end;
In this example, assume I...
New one for you. Im getting ready to help another programmer port his program from C# to Delphi. I cant truly read C# nor has he sent me actual source at this point so from discussion i think im going to be tackling most of this from a one function at a time standpoint.
I need to be able to get the IO Port Numbers for all SATA devices...
In my previous question about the expected features in the new D2010 one of the highest rated answers was 'Multi-Core Support'.
Well, as we all know Delphi support thread programming since D2 (IIRC) and is used heavily in some areas. More specifically which is, in your opinion, the perfect way to support parallel programming in Delphi?...
Hi, I have a problem using a third-party component in Delphi 2006 (also Delphi 7), in which I get an "Unspecified Error" when executing a function call to that component. Do you have example code that utilises GetLastError and FormatMessage in Delphi, that would allow me to access more information about the error ? TIA :)
...
Hi
I have a TClientDataset that is managed in Thread 1.
In a different thread I have a cloned Image of the TClientDataset.
Will I run into threading problems?
Edit
The cloned image is used in a read only mode.
...
I am looking for a Threading framework to use in my Delphi application.
Currently I am evaluating ‘OmniThreadLibrary’ - so far it looks good and does everything I need.
Is there any other ‘Threading framework’ for Delphi ?
(I am using D2006 & D2009)
...
Hi
I am parsing an XML file and storing the results in a record, but am having some trouble.
Im trying to store the results (content of my XML tags) into the fields of my record..
My record (at the moment there is only 1 set of XML elements). I think that the Parser.curconten is causing the problem...
Type
TXMLAlert=Record
alert...
Has anybody out there used Delphi for programming a Virtual Studio Technology plugin?
...
Is there a way of finding out which row is current in a TDBGrid?
...
I am looking for a code documentation tool like PasDoc that supports the Delphi 2007 syntax, in particular nested types.
I checked PasDoc and DelphiDoc but they do not support it.
I don't like the syntax of the builtin XMLDoc but would prefer something more JavaDoc like (that is: Shorter tag syntax, not quite as verbose as
<summary>
....
At the moment we are using MAPI to send a plain text email from our application. We specify the dialog flag when the user invokes this function, so that the email will appear in their email client and they can then modify it and send it.
We would like to embelish the email and send it in an HTML format.
According to this link MSDN link...
The XMLDoc tool for API documentation is explained here:
http://edn.embarcadero.com/article/32770
Are there any free or commercial tools which can be used to create documentation based on Delphi's XML doc format?
Is there a newer version of the 'getting started' documentation? This page refers to Delphi 2005 and third party tools, som...
I have a routine that returns the number of cursors or icons in a group but how do you know which cursors or icons are associated with a specific group and how can you get the index of each icon in the group.
Any help would be appreciated.
...
As far as I know there is no way to do this, but I am going to ask just in case someone else knows how to do this. How can I declare a date as a const in Delphi?
The only solution I have found is to use the numeric equivalent, which is kind of a pain to maintain because it is not human readable.
const
Expire : TDateTime = 39895;...
I've done a brief Google around and found nothing but I feel I ought to ask. I'm not really expecting there to be anything, but would rather ask a question with no answers now than ask the question when it's all going wrong and discover that EVERYONE knew about a 'gotcha'...!
To make overall support/development life easier (and to bring...
Hi there,
I have upcoming project where we need application to send data on compressed into database and to other application. The compression can use algorithm such as GZIP or ZLIB.
Can somebody point me some help, especially for VCL component (or ActiveX) that can compress data traffic between communicating application and database?
...
How can I get source code of page thru WebBrowser Control (ActiveX InternetExplorer)?
I have an xml document "foo.xml".
var
Web: TWebBrowser;
begin
...
Web.Navigate("foo.xml");
// How can I get source code thru WebBrower control<----
...
end;
...
I have a Delphi 7 dll that exports the following function:
function StringTest(var StringOut : pchar) : boolean; stdcall;
begin
GetMem(StringOut, 100);
StrPCopy(StringOut, 'Test output string.');
result := true;
end;
This function is imported in C# as follows:
[DllImport(@"C:\\Test\\DelphiTest.dll")]
public static extern...
I need to run an application or service on a remote computer. I have had success with psexec from SysInternals, but I am investigating and would like to compre alternatives.
Ultimately the command will be run from within a Delphi application. Thanks, Pieter.
...
TObject.InstanceSize returns 8, yet TObject doesn't declare any data members. According to the implementation of TObject.ClassType, the first 4 bytes can be explained as a pointer to the object's TClass metadata. Anyone know what the other 4 bytes of overhead are there for?
EDIT: Apparently this is specific to D2009. In older versions...