Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Delphi Programming


Old program, compile error  

Hi, i'm attempting to update an older program i wrote about 10 years ago using Delphi 3 at the time. i'm currently using Delphi 2007 for Win32 running on an XP machine. The error i get is the following: "[DCC ... Continue Reading
Views : 41
Sunday 25th of November 2012

Annoying D2007  

Upgrade 2 is installed. I have (unfortunately) converted all my Applications from D7 to D2007, living through all the annoyances, such as 1) opening a form, and clicking on a component which is on a Certain Tabsheet shows the same ... Continue Reading
Views : 49
Sunday 25th of November 2012

Stream offset WRT file size  

Hi I want to use a filestream to copy a file from Src to Dst but only the amount thats missing in the Dst file. How do i work out the offset amount ? Would it be simply the Dst ... Continue Reading
Views : 55
Sunday 25th of November 2012

AstaClientDataSet Problem  

Dear all, We have a AstaClientDataSet sharing by few queries, and we would like to lock the application when user has issued the first query (mean open one of the module), this is to avoid user has the chance to ... Continue Reading
Views : 62
Sunday 25th of November 2012

Getting Keycode text  

Is there a way to get a propper string for VK_LEFT..VK_DOWN? Using ToAscii from WinAPI and GetSpecialName from Menus.pas always returns (for example) 'Num4' for both VK_LEFT and VK_NUMPAD4. I need to tell the difference between those. I am able ... Continue Reading
Views : 66
Sunday 25th of November 2012

DLL used in thread  

I'm back after getting the 3rd party DLL working with Delphi7 (thanks for your help here!). After some tests today I found that it has a behaviour I don't particularly like... There are 4 functions in the DLL: -Connect (basically ... Continue Reading
Views : 67
Sunday 25th of November 2012

Sending email whose body is RTF...  

Hello, I need to send an email whose BODY (i.e. NOT attachment) is RTF... Surely there is away to do this... No editing capability needed. Any help is appreciated. George S... Continue Reading
Views : 76
Sunday 25th of November 2012

initialization usefull   

Debugging my app I have seen that Initialization section of all forms is executed before Project Instruction : Application.Initialize; I set some form variables in this section, and I am asking if doing this in form.Create events it is better ... Continue Reading
Views : 61
Sunday 25th of November 2012

Editor keyboard short cuts  

My editor keyboard shortcuts have mysteriously changed recently. My productivity has plumetted since. e.g. Action Was Now Copy Ctrl-c Ctrl-Ins Paste Ctrl-v Shift-Ins I don't remember chnaging this and I need the old ones back! Help Please Regards Peter Gore... Continue Reading
Views : 39
Sunday 25th of November 2012

Select item of ComboBoxEx  

Hello Everyone, I have a ComboBoxEx populated with 4 choices 1,2,3 or 4 so that the user clicks on the combo box and can choose one of them. I need to be able to set which one is selected when ... Continue Reading
Views : 78
Sunday 25th of November 2012

component palette  

using Delphi 2007 for win32. I just made the december update. Now I dont see the componenet palette. How do i bring it back to the right side of the edit window?... Continue Reading
Views : 109
Sunday 25th of November 2012

Re: Turbo delphi .net  

I'm with this problem also. It's terrible. "Leandro" $PHXLESSlohr@lohr.com.br$PHXGREAT escreveu na mensagem news:4728a92a$1@newsgroups.borland.com... $PHXGREAT Boa tarde $PHXGREAT tenho um problema de utilizacao de memoria com o turbo delphi .net, alguem $PHXGREAT ja passou por isso?... Continue Reading
Views : 121
Sunday 25th of November 2012

TList and Date algorithm  

I want to do a list of tasks to do at a pre-defined time. I have a list of pointers and each pointer is a dynamically allocated struct. In this struct I have the NextExec which is the DateTime when ... Continue Reading
Views : 40
Sunday 25th of November 2012

C++ const char* -> Delphi's String - showing only part of the string  

I have a program which us a DLL, I want this dll to be able to report back errors to Delphi. When an error is found it saves it to a variable and then a flat C++ function returns the ... Continue Reading
Views : 28
Sunday 25th of November 2012

Extended Syntax, BDS 2006  

In Project/Options, selecting the Compiler option displays various options such as Syntax options. In there is Extended Syntax ($X+) which among other things allows us to set the return value of a function using the "result" variable. When you click ... Continue Reading
Views : 97
Sunday 25th of November 2012

Tablet Integration  

Hi, I have an old application designed using Delphi 7. Now I want to integrate tablet support in it. What should I do? thanks... Continue Reading
Views : 42
Sunday 25th of November 2012

Checking bit value from an integer  

How do i get a value of a certain bit from a 32bit integer? For example i want to get the value of the 30th bit from this lParam: lParam [in] Specifies the repeat count, scan code, extended-key flag, context ... Continue Reading
Views : 84
Sunday 25th of November 2012

Are (char * const somename) and (const char* somename )the same  

Dan wrote: $PHXGREAT I'm not too familiar with how C++ handles strings or it's equivalent $PHXGREAT of strings, which I understand to be a pointer to sort of an array of $PHXGREAT characters. I've seen examples using: $PHXGREAT $PHXGREAT char ... Continue Reading
Views : 55
Sunday 25th of November 2012

IDE Tools menu with tool than needs to Run as Admin on Vista  

I am running Delphi 2007 on Vista. I have an older tool that hasn't been updated for Vista and it requires me to always right-click and "Run as Admin". I have modified the Properties of this Tool so that the ... Continue Reading
Views : 49
Sunday 25th of November 2012

How to scroll a memo box  

I've got a TMemo with a vertical scroll bar on a form. I can I automatically scroll up to the top of the memo box whenever its contents are refreshed? Thanks!... Continue Reading
Views : 36
Sunday 25th of November 2012

Strange overload choice  

Hi, I've run into a situation where the compiler (D9) seems to resolve an overload in, IMHO, a strange way. A test case program follows here: _____ PROGRAM BEGIN _____ program Project1; {$APPTYPE CONSOLE} uses SysUtils; function Test(const AStr: WideString; ... Continue Reading
Views : 68
Sunday 25th of November 2012

TActionManager and TSpeedButton misbehaviour- reposted  

Hi All D2007, XP. I have some TSpeedButtons linked to the actions in a TActionManager. I also have a TPopUpActionBar (and just for test purposes, a TActionToolBar). I have AutoCheck set to True and have assigned a GroupIndex on the ... Continue Reading
Views : 57
Sunday 25th of November 2012

COM+ returns empty olevariant if properties was set  

Hi, all, I fetch data from the SQL Server and pass them to client application with TClientDataSet, at the same time I would also like to set the properties of the COM+ interface, but to my surprise, the COM+ would ... Continue Reading
Views : 112
Sunday 25th of November 2012

how to disable ide popup on handled exceptions  

how to disable ide popup on handled exceptions when debbugging (F9)?... Continue Reading
Views : 35
Sunday 25th of November 2012

Does Anyone else have this problem  

Hi All, I recently upgraded? to Delphi 2007 for win32. Now when I am working in a project and excute the applictaion (F9), all of the component icon's names on the data module(s) disappear!. A real pain! This may happen ... Continue Reading
Views : 98
Sunday 25th of November 2012

Re: "Extra" threads running in my app - what's up  

bilm wrote: $PHXGREAT I sometimes use Process Explorer (Mark Russinovich/SysInternals) $PHXGREAT to observe the number of threads running in my app. I know how $PHXGREAT many I create so when I start it up I see the 2 threads I ... Continue Reading
Views : 54
Sunday 25th of November 2012

H2443 Inline function not expanded + Delphi 2007 thoughts  

Porting a Delphi 7 app to Delphi 2007 I encountered the following error: * "H2443 Inline function 'DeleteFile' has not been expanded because unit 'Windows' is not specified in USES list" Ok, so I added Windows to the uses list ... Continue Reading
Views : 68
Sunday 25th of November 2012

Slow compile with Dual Core PC  

I am running identical D5 installations on a Laptop and Desktop. The laptop is a 1.86GHz Pentium (single core) and the Desktop is a 3 GHz Intel Pentium 4 (dual core). I have noticed that compiling or building the same ... Continue Reading
Views : 45
Sunday 25th of November 2012

More robust StringToDate conversion  

I would like to import data files stored in text files and be able to guess what type of fields should be created, regardless of the regional settings used by the user who created the file. My main problem is ... Continue Reading
Views : 51
Sunday 25th of November 2012

Tree View-Hiding Items  

D2007 TreeView ------------- +aaa bbb ccc How can i make visible and invisible aaa (item) & bbb(subitems) in run time ? Thank you.... Continue Reading
Views : 69
Sunday 25th of November 2012