i came across a compatibility issue today, as a customer upgraded from Windows XP to Windows 7.
The (12 year old code) is calling a stored procedure on the SQL Server called
ai_nextid
Except that when it calls the stored procedure it is using the name:
ai_nextid;1
Yes, with a ";1" appended. Apparently the SQL Server driver in Win...
How can I extract a hyperlink from some cell in excel table using Delphi?
...
Hi,
We want to restrict files being saved to the virtual store in Vista/Windows 7 if the user tries to save files from our application to a protected folder such as "Program files" - we want an "Access Denied" message displayed if the user tries to do this. Is there a way to do this from our Delphi 2009 app similarly to what MS Word et...
I found on internet but I didn't got how can I use ManagementObjectSearcher in delphi. My main question which file I have to add in 'uses'.
I found one code but can't make it run in my system.
...
Hi.
I have to check if I have duplicate paths in a FileListBox (FileListBox has the role of some kind of job list or play list).
Using Delphi's SameText, CompareStr, CompareText, takes 6 seconds. So I came with my own compare function which is (just) a bit faster but not fast enough. Any ideas how to improve it?
function SameFile(CONST...
I'm creating an in-memory dataset using a TClientDataset to use as a receive buffer. Adding data is great, but once I go to process it I want to be able to remove the row from the dataset. Calling delete works - sort of - the row/index is still accessible but now contains no valid information.
This makes things a bit difficult since whe...
I've read and successfully tried the answer to How can I pass a Delphi string to a Prism DLL?, but wondered if it was possible to use a similar method to pass a Delphi array of integers (static or dynamic) to a Prism DLL.
...
I am looking for hints on how to debugging a crash in an application that uses the MS XML wrappers in the Delphi VCL. I suspect memory corruption, or some kind of obscure evil thing happening between objects and interfaces, such as reference counting bugs, or heap corruption. The question is, in effect: how do I debug such a crash?
T...
I am learning Devart's mydac Data Access Components and I have few question I have not been able to resolve through online searches and the documentations. In the code examples, I see invocation of TMyTable.Open but I could not find the description in TMyTable class or its inheritance path. I would like to as if anyone can point me to th...
I am writing an editor in Delphi (2009) using a TRichEdit component. The editor is append-only, in the sense that the caret must be at the end at all times, while maintaining the ability to copy using the mouse from elsewhere in the component.
The way it is working at the moment is by moving the caret to the end whenever something is wr...
I have TWebBrowser embedded in a TForm.
Whenever I press Alt button the browser window becomes white. If I drag the form around it repaints correctly.
What I am doing wrong?
I have DevExpress Bars and Quantum Grid if that matters?
I use Delphi 2010 and Windows 7 and XP SP2. IE version is 7 and 8. Reproducible on all.
Before pressing ...
I recieved a crash report from MadExcept from a user. The Exception was Invalid floating point operation.
The odd part though is that the callstack dies at @FSafeDivide.
I did a google and found out that this was a check for certain pentium chips which didn't do division correctly. If the test failed all the divisions would be done i...
IWFile is broken in the current release of Rad Studio XE. To fix it, Delphi users are asked to delete the UTF8ContentParser line. http://www.atozed.com/intraweb/blog/20100524.EN.aspx
c++ Builder has a line that #includes UTF8ContentParser.hpp. Commenting out this line does not fix the issue.
Has anybody figured a way around this for ...
Hi,
I'm looking for a delphi component or ActiveX which can access to GSM devices through serial port.
I need to send and receive binary data sms (8-bit coding).
...
This is a Delphi question on the usage of the ReportBuilder component by Digital Metaphors.
I have a Report (created by the end userm using RAP and DADE) with autosearch Parameters. Anyway I am using "modify SQL" in the dataviews, so to pass the parameter I use the :Parameter syntax. (instead of using the query designer Search condition...
I want to distribute only a single .exe, however, at run time I would like it to extract some embedded image resources to the users hard drive.
Can I, and, if so, how?
...
I have a WideString variable containing some data but when the string was assigned some extra nulls where added at more or less random places in the data. I now need to strip these nulls out of the variable. If it had been a string I would have checked each Char to see if Char(x) = 0 but as this is a WideString I dont think this work? Ho...
Using RDO 4.8.0.1184 with Delphi 2006 on Exchange 2007 SP3
I have the following code (abbreviated):
Msg := MailSession.GetMessageFromMsgFile(sTempFile, false);
Msg.UnRead := true;
Msg.Save;
Msg.Move(some_folder);
ShowMessage('EntryID: ' +Msg.EntryID);
The resulting dialogue shows an empty EntryID. I've tried printing the EntryID at ...
I have the following code for executing a sql stored procedure that returns multiple resultsets, then reads this result from stream. For background info: it returns xml blocks as strings and then transforms it into complete xml.
It has worked well over a year but now i have a case that results in error message: Operation cancelled. Debug...
I have found that on Windows 7 64 bit, on a machine with a domain name, GetUserNameEx( 3, .... ) which should get the extended name format DisplayName (==3), into a buffer, works fine.
However, it does not work on Windows 7 32 bit, vm that is on a workgroup, rather than on a domain, it returns ERROR_NONE_MAPPED.
How do you read the per...