delphi

How can I read values' names and data from the registry?

I have stored a list of items from gridView into the registry as below: frmPOSConfigSet.tblCatItems.First; while not frmPOSConfigSet.tblCatItems.Eof do begin RegItemSetting.WriteString('stk Group\Candy', frmPOSConfigSet.tblCatItemsCODE.Text, frmPOSConfigSet.tblCatItemsSPHOTO.Text); frmPOSConfigSet.tblCatItems.Next; end...

delphi app freezes whole win7 system

Hello i have a simple program that sorts a text file according to length of words per line this program works without problems in my xp based old machine now i run this program on my new win7/intel core i5 machine, it freezes whole system and back normal after it finishes it's work. i'v invastigated the code and found the line causing ...

Delphi 2010: how to stamp file version in *.pas and increment it on each save w/o CVS/SVN tools?

Hello. How do I have in each *.pas file it's version, incrementing on each save in some comment line? I have plenty of files on three PCs and I need to have a possibility to quickly check their versions against each other. This problem is easily solved by some centralized version control, but some sources I have cannot be trusted to e...

How do I produce a .SRM file containing string resources?

The example I am looking at is in the TurboPower FlashFiler database. It has, for example, a file ffclcnst.rc which contains FF_CLIENT_STRINGS RCDATA FFCLCNST.SRM and I can run BRCC32 ffclcnst.rc at the command prompt which seems to compile the .SRM file into a .RES file, but I cannot see how to change the information in...

Which are the RDBMS that minimize the server roundtrips? Which RDBMS are better (in this area) than MS SQL?

IMPORTANT NOTE: I recieved many answers and I thank you all. But all the answers are more comments than answers. My question is related on the number of roundtrips per RDBMS. An experienced person told me that MySQL has less roundtrips than Firebird. I would like that the answer stays in the same area. I agree that this is not the first ...

Do not use IE browser settings when using a proxy with Indy

Hi At one of our customer sites, we have a Delphi 2007 application that makes a number of HTTPS requests using indy components. All requests are made using the proxy settings the client provides. For this to work, in IE we have to put the URL's in the trusted zones section. After a month due to security settings the trusted zones are cl...

Delphi Prism 2011 and Sharepoint

Hi, can i create webparts controls for Sharepoint 2007 in Delphi Prism? If yes, how? Thank you. ...

Enumerated types with specified values do not have TypeInfo, why?

Using Delphi 2007 I can write the following code: interface TTestType = (ttTest1, ttTest2); procedure enumName; var EnumName: String; begin EnumName := GetEnumName(TypeInfo(TTestType), Ord(ttTest1)); end; This compiles and works, EnumName contains 'ttTest1' at the end of the function. However, when I change my TTestType to somet...

Delphi Search files and directories fastest alghorithm

Hi, I'm using Delphi7 and i need a solution to a big problem.Can someone provide me a faster way for searching through files and folders than using findnext and findfirst? because i also process the data for each file/folder (creation date/author/size/etc) and it takes a lot of time...I've searched a lot under WinApi but probably I hav...

Delphi Compiler Directive to Evaluate Arguments in Reverse

I was really impressed with this delphi two liner using the IFThen function from Math.pas. However, it evaluates the DB.ReturnFieldI first, which is unfortunate because I need to call DB.first to get the first record. DB.RunQuery('select awesomedata1 from awesometable where awesometableid = "great"'); result := IfThen(DB.First = 0, DB...

Delphi JavaDoc Parser

I need to parse JavaDoc (documentation) comment syntax with Delphi 7. It is well known in the java world as "JavaDoc", but I'm actually doing this for PHP, ie, parsing JavaDoc in some PHP code. Call it PHPDoc if you want to. To see how these comments work, you can see RAD IDEs like NetBeans etc. Example of JavaDoc for addition function:...

Delphi Imagelist: Load icons with ResourceLoad from a .res

Hi guys, I', trying to load an icon from a res file into an image list. I created the res file with the delphi ImageEditor. And this way I'm trying to load the icon: //if ImageList1.ResourceLoad(rtIcon, 'TEXT_BOLD', clWhite) then if imagelist1.GetResource(rtIcon, 'TEXT_BOLD', 0, [lrDefaultColor], clRed) then showmessage('loade...

Delphi - Populate an imagelist with icons at runtime 'destroys' transparency

Hi again, I've spended hours for this (simple) one and don't find a solution :/ I'm using D7 and the TImageList. The ImageList is assigned to a toolbar. When I populate the ImageList at designtime, the icons (with partial transparency) are looking fine. But I need to populate it at runtime, and when I do this the icons are looking pret...

how send data record using SendMessage(..) in separate process

i use to send a data on two separate process but it fails. it works only under same process... this is concept. //----------------------------------------------------------------------------------- MainApps //----------------------------------------------------------------------------------- Type PMyrec = ^TMyrec; TMyrec = Recor...

display the item in tdbmemo from combobox

i have combobox that have value category1 and category2...the category1 have items like pencil,food,magazine,newspaper... when i choose category1, i want to retrieve the items in tdbmemo.then the same items in tdbmemo i want to display in checklistbox...i dont know how to do...i use clcat.items.add to display the item but the items is no...

How to print Fastreport directly without showing Print Dialog

I use Fastreport 4. I need to print directly to the printer without showing Print Dialog. I've unchecked the ShowDialog in the Print Options, but it keep showing a print dialog. Any help would be very appreciated. ...

Delphi 7 and Excel 2007 Open File Error

I am having difficulty opening a EXCEL 2007 in Delphi 7 It works for Office 2003 and below but the wonderful people at microsoft have sent an update or something and the delphi app fell over just earlier this month. oE := GetActiveOleObject('Excel.Application'); oE.Workbooks.Open(Filename:=sFilename, UpdateLinks:=false, ReadOnly:=tr...

How do I solve "Two different CRTLDLLs are loaded" when using packages in C++ Builder 2010?

Hi, We are trying to split up our monolithic EXE into a combination of an EXE and several packages. So far, we have one package that we're trying to use, and when running the EXE Codeguard shows the following error on startup: CG Error Two different CRTLDLLs are loaded. CG might report false errors (C:\Windows\system32\CC32100MT.DLL)...

How does one detect the action of adding/removing of a UNC share with Delphi? (Prev D7)

Hi How does one detect the action of adding/removing a UNC share? I basically just need to know if a share has been added/removed not details about the share itself. A working example would be greatly appreciated. Thanks SB ...

Upgrading a win32 VCL application to cross platform

Delphi 2011 will allow to compile applications that will run also on Mac OS. (Note: I wrote this sentence before Delphi-XE preview was out, and at that time everybody was speaking of ProjectX). Is it realistic to think that it will be possible to "migrate to cross platform" a win32 application? Will 3rd party component vendors make the...