Hi Guys!
Does anybody know if it's possible to set up MSSQL 2008 to use Windows Authentication but users would still have to enter their windows password to log on (this would have to be accomplished by using Delphi 7+ADO)?
[Edit]: Just to clarify, the sql-server and the clients are all within the same Windows Domain.
[Edit 2]: I don...
this is a code snippet taken from https://forums.embarcadero.com/message.jspa?messageID=219481
if FileExists(dstFile) then
begin
Fs := TFileStream.Create(dstFile, fmOpenReadWrite);
try
Fs.Seek(Max(0, Fs.Size-1024), soFromBeginning);
// alternatively:
// Fs.Seek(-1024, soFromEnd);
Http.Request.Range := IntToStr(Fs.Pos...
I need to remove accents from strings, is there a Delphi (2009+) function for this?
I want that my string contains only A-Z a-z 0-9 chars, so I want to remove accents automatically
Like:
RemoveAccents(àèÃÜÿñ)
that gives
aeAUyn
etc....
...
To detect and prevent shutdown the computer I use very simple program. It has only one form and one private procedure like below:
TForm3 = class(TForm)
private
procedure WMQueryEndSession(var Msg : TWMQueryEndSession) ;
message WM_QueryEndSession;
end;
and the implementation
procedure TForm3.WMQueryEndSession(var Msg: TWM...
At the MSDN website it says, "Connecting to SQL Azure by using OLE DB is not supported."
There are other places on the web where folks report that it works fine for them after tweaking the server name in the connection string, such as here and here. Even SQL Server's Analysis Services uses OLE DB to connect to SQL Azure!
I develop a n...
I have problems in a following code:
program Project4;
{$APPTYPE CONSOLE}
uses
SysUtils, RTTI;
type
TRecord2 = record
c: integer;
d: integer;
end;
TClass1 = class
public
FRecord: record
a: integer;
b: integer;
end;
FRecord2: TRecord2;
FPointRecord3: ^TRecord2;
constructor Create;
...
How do i get the address of the variable holding an event handler?
e.g.
TExample = class(TObject)
private
FOnChange: TNotifyEvent;
end;
i want the address of the FOnChange private member, event handler, variable.
Why?
i'm trying to figure out who is overwriting my FOnChange handler variable with junk.
i am stepping through c...
I am writing a test app for a larger project and cant seem to retrieve Unicode CSV data from the Windows Clipboard, I am successful at retrieving CF_UNICODETEXT, using the built in GetClipboardData api call, however when I place Unicode CSV on the clipboard in MSExcel and try to retrieve with CSV format, I get bad data. Here is some code...
I got the following error in Delphi 2007. What does it mean?
[DCC Error] uMyUnit.pas(9614): F2084 Internal Error: AV21B66E31-R0000000F-0
I did some recently added code removing, line insertions/deletions, changing compiler options, but nothing worked.
I was able to solve this by switching the 'Typed pointer @ operation' option off. In...
I have been able to implement a preview handler for most file types, except outlook msg files. How can I achieve this? The code doesnt seem to be able to open either in stream or file mode.
var
ACLSID: String;
AGUID: TGUID;
ARect: TRect;
FileInit: IInitializeWithFile;
StreamInit : IInitializeWithStream;
begin
FPreviewHandl...
My outlook MailItem objects are only returning limited HTML formatting. I need to be able to get the complete HTML formatting... I get the following message:
<!-- Converted from text/plain format -->
Below is a snippet of the stripped down HTML, followed by the correct HTML
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>...
How can I show another cursor for multiple mice?
I have two TMemos, two keyboards which can type into their respective TMemo, 2 mice and I need 2 cursors those.
If hypothetically, I can already detect which mouse is which. How can I make my own cursor to go along with it. (using Delphi)
Possibly along the lines of Multipoint
as an alte...
I'm a Delphi programmer and wish to create my own code to directly connect to the .NET Development Server.
Do you know of any reference material that is very much up to date that I can use please
Best regards,
j Lex Dean.
...
I have a Windows 32 bit app written in Delphi that is giving problems when running under Windows Server 2008 64-bit.
Details are sketchy ("having all kinds of printing issues" was the best report I could get so far) and the app behaves fine on all the Win64 platforms I have access to, but aside from that, I would have thought that an ap...
I have two region say rgn1 and rgn2. I wanted to combine both of them using CombineRgn function. So I write -
if CombineRgn(rgnMain,rgn1,rgn2,RGN_OR) = error then
ShowMessage('error');
Its giving return value as ERROR.
I have tested that rgn1 and rgn2 are correct region.
Thank You.
...
I cannot load icons which contain Vista sized icons when using the 'Load icon' in the application tab of Delphi 7.
Does someone knows how to display icons bigger than 48x48 in Vista and Windows 7 using an application developed in Delphi 7?
...
Hello To All:
is it possible in Delphi Datasnap 2010 to transfer treeview from Datasnap 2010 server to DataSnap Client?
thanks
...
Context
I am drawing to a canvas, this is updated regularly and it flashes.
Logically thinking I assumed this is because my redraw method clears the Canvas then draws one element at a time to the canvas. so my idea was to write to a Timage then set the picture to the Timage.
Information
here is my code
procedure Tmainwindow.Button3...
suppose i write a button1click event handler which when called(ie when button1 clicked) keeps on adding 1 to variable counter:
var
i : counter;
begin
while 1 = 1 do
inc(i);
end;
now i want to add another button on my form and name it ''stop'' which will abruptly exit
button1click(after its called) or stop it from adding 1 to counter...
I would like to dump the fields and offsets of structures in the same way as windbg's dt command. Let's say for example I would like to dump the _PEB structure which is in the Microsoft Public symbols (since windbg's DT command works).
From MSDN documentation I understood that the SymFromName function should be able to do this, below th...