Try this
New|Other|ActiveX|ActiveX Library
then
New|Other|ActiveX|Automation Object
A dialog will popup. Give your COM object a name eg. MyWidget. Tip, don't put a T in front of it. Select the Instance and Threading Model. If you need Event Support, click the check box.
The dialog will close...
Regarding your text resources, I'm not sure exactly where they go in the EXE but if the location is not at the end of the EXE file then I doubt that you can just go in modify them.
Modifying them externally may require you to change offset values in the load tables at the start of the EXE...
It sounds like a memory problem. The following notes are directly out of Delphi's help and may be of assistance to you.
"On Windows, if a DLL exports routines that pass long strings or dynamic arrays as parameters or function results (whether directly or nested in records or objects)...
You can't do what you want with a text file. The functions that you need are Seek, GetSize and GetPos and these are available with TFileStream and also the Delphi file functions that work with a handle.
Roger Fedyk
I've also experienced similar problems. EarlRainer's approach works very well because it uses a buffer and does not do any string allocation in the subroutine.
I think that you will find that your creeping memory problem would also go away if you put
SLine:='';
SFileName:='';
at the end...
Hi San,
I know it seems like a simple question but you've actually opened up a "can'o'worms".
Firstly, what defines a paragraph? Common usage, that is what we visually know as a paragraph, comes from our usage of manual typewriters. In this case, a paragraph referred to a block of...
Not a direct answer to your question but Delphi 4,5,6 & 7 Standard Edition have been free give aways in a number of PC magazines both in Australia and the UK over the last 12-24 months. If nothing else, it will give you access to Indy.
Contact the publishers of PC Plus in the UK to see what...
I have 2 different PDF sources that are being merged into a single PDF. The first source is a group of TIFF files that have been converted into PDF. The second source is a PDF file containing accounting information.
I am using the Acrobat IAC OLE Automation Server and specifically I use the...
I have 2 different PDF sources that are being merged into a single PDF. The first source is a group of TIFF files that have been converted into PDF. The second source is a PDF file containing accounting information.
I am using the Acrobat IAC OLE Automation Server and specifically I use the...
I have 2 different PDF sources that are being merged into a single PDF. The first source is a group of TIFF files that have been converted into PDF. The second source is a PDF file containing accounting information.
I am using the Acrobat IAC OLE Automation Server and specifically I use the...
PDF files that have been indexed create a .PDX file which is just the starting point in the indexing info chain. The real info is held in the .DDD and .DID files that are saved in the "parts" subdirectory.
I have a project which would work much better if I could read those files...
Thanks for that. Problem solved.
I had a look at your web site. Very interesting. Do a lot of people collect bottle caps, or am I missing something
Roger
I have inherited a FoxPro program that has been working fine. However, it has now developed a strange behaviour. It does not update some crucial fields in a temporary table.
This is the code fragment
select mth && table alias
go top
sum val(bnf) to tbnf && sum the BENEFIT AMOUNT fields...
Hi wilsona
I am using Delphi 5 and have no problems with clearing the value in TSpinEdit. However, I think that your problem may be related to something else.
OnChange is called every time a change happens to the Value or Text property. If you change either property from inside the OnChange...
Try using TPrintDialog to actually select the active printer first and then use the synatx that is in Delphi Help for AssignPRN. This should work.
Roger
How have you declared your array? If your using pointers and write a pointer without dereferencing it you will get the problem that you outlining.
Roger
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.