I'm writing a DLL which talks to Excel via its IDispatch interface. From VBA I pass in a Variant containing Application.Caller from which I draw the IDispatch pointer via .pDispVal.
What I'd like to know is how to query the interface via that IDispatch pointer. I want to set up a connection point container, and from there find a connec...
Title says it all, I need to send PUT and DELETE along with POST, GET to a REST API how can I do it?
...
Hello,
If I try to use a closure on an event handler the compiler complains with :
Incompatible types: "method pointer and regular procedure"
which I understand.. but is there a way to use a clouser on method pointers? and how to define if can?
eg :
Button1.Onclick = procedure( sender : tobject ) begin ... end;
Thanks!
...
Hi a have a multithread application (MIDAS) that makes uses of windows messages to communicate with it self
MAIN FORM
The main form receives windows messages sent by the RDM
LogData(‘DataToLog’)
Because windows messages are used they have the following attributes
1) Received messages are Indivisible
2) Received messages are Queued ...
Hi,
How can I write a semi transparent text on an Image (Jpg,Bmp), or a transparent text (color as same background Image) but with a shadow, something I want to do to watermark the images.
I want to accomplish that using Delphi win32.
...
I have a class hierarchy, this one:
type
TMatrix = class
protected
//...
public
constructor Create(Rows, Cols: Byte);
//...
type
TMinMatrix = class(TMatrix)
private
procedure Allocate;
procedure DeAllocate;
public
constructor Create(Rows, Cols: Byte);
constructor CreateCopy(var t...
Say I've got a generic vertical market application and I want to package it as two separate programs aaa.exe and bbb.exe. Is there any way to use the Delphi linker to create an EXE/DLL file that doesn't have the same name as the DPR?
I can't just rename the file because I get this error
bbb.exe - Unable to to locate component
...
In this question, I asked about breaking a dataset into subsets, and got a good response. Now I have the opposite problem. I've got two different datasets, representing objects of two different subclasses of a common ancestor, and I need to have the same TDBLookupComboBox search both of them at the same time, using two properties, ID #...
I need to deploy a Delphi app in an environment that needs centralized data and file storage system (for document imaging) but has multiple branch offices with relatively poor inter connectivity. I believe a 3 tier database application is the best way to go so I can provide a rich desktop experience with relatively light-weight data tra...
I have found many posts and examples of using LINQ-syntax in Delphi Prism (Oxygene), but I have never found anything on LINQ to SQL or Entity Framework.
Is it possible to use LINQ to SQL or Entity Framework together with Prism? Where can I found such an example?
Update:
Olaf is giving an answer through his blog
The question is now if...
I'm replacing several components in one of my forms with data-enabled versions, and it was a bit of a surprise when my new TDBRadioGroup didn't link up with the numeric field it was assigned to. Turns out that instead of going by the ItemIndex property, TDBRadioGroup's "value" is stored in a TStrings that you have to populate manually. ...
I'd like to have revision number of source code to Delphi's source code and exe version. What is the best way to do this automatically?
I'd like to display the revision number in "About" screen and in the version info of the project.
I'm using currently Delphi IDE (2006/2007) and Tortoise SVN.
...
In my Delphi7 this code
var MStr: TMemoryStream;
...
FreeAndNil(MStr);
MStr.Size:=0;
generates an AV: Access violation at address 0041D6D1 in module 'Project1.exe'. Read of address 00000000.
But somebody insists that it should not raise any exception, no matter what. He also says that his Delphi 5 indeed raises no exceptions. He call...
I have a Windows CGI created with Delphi 2007 using CGIExpert that I need to debug.
Is there any simply way to run it from within the IDE while passing parameters to it? I tried setting the Host Application to iexplore.exe (Run|Parameters) and entering some text on the Parameters field but it just can't seem to pass any parameters at ru...
I am looking to add the capability for users to write plugins to the program I have developed in Delphi. The program is a single executable with no DLLs used.
This would allow the user community to write extensions to my program to access the internal data and add capabilities that they may find useful.
I've seen the post at: http://...
How can I send a DELETE request with delphi 7 and the ICS component so that I can access a REST api?
...
Why can't Delphi variants hold objects? More importantly, what's the reason behind this limitation?
...
I've got a custom TObjectList descendant in Delphi 2009, and I'd like to play with its enumerator a bit and add some filtering functionality to the MoveNext method, to cause it to skip certain objects. MoveNext is called by DoMoveNext, which is a virtual method, so this shouldn't be difficult to override... except for one thing. The TEn...
Hi guys!
I want create a Playlist control. I have a lot of information to display into a TStringList. I want to assign a record to TStringList.Objects instead of an object because so many objects may take a while to create/destroy. It also take a lot of RAM.
A record will be much faster and slim.
How can I do that?
TYPE
AMyRec= pack...
This is a question I intend to answer myself, but please feel free to add other ways to accomplish this.
I was packaging an application for use on a wide variety of configurations, and I determined that the most reliable way to perform custom logic within my MSI would be to write my own custom action DLL that would be able to read/writ...