Hi
Im writing a program for my school in which users have to enter a code given to them by a teacher to access the internet.
My Question is how can i from delphi check if the current user is part of the teacher security group in active directory or not before it runs my code generating program.
Thanks
Erik
...
I have a Delphi application that communicates with web servers on the Internet using the Indy components. Most users of the application have direct Internet connections but some are behind a proxy server of a local network. I don't want to have to ask the users to lookup their proxy server in the Internet Options / Connections / LAN Set...
I've got a pretty big setup form which I'd like to populate with data from a class. so I'm doing a lot of
Edt1.text := ASettings.FirstThing;
I'd like to avoid
Edt1.onchange := nil;
Edt1.text := ASettings.FirstThing;
Edt1.onchange := edt1Onchange;
How do I change the text in a text box and sidestep the onchange event.
...
Hi, I have a console application that I launch from a GUI applicaiton. The console application takes parameters for filenames to parse and process. Currently I am able to capture its output and display it in the GUI application but I would like to be able to send commands to it so as to control or even halt its execution.
How can I sen...
I have a custom TListView descendant that I originally created in D2007 and am now using in D2010. The control worked fine in D2007 without a problem, but in D2010 I'm experiencing sporadic but frequent instances in which the DFM cannot be loaded by the executable and throws an EReadError with message:
'Error reading lvPremiums.Items.I...
Hi all,
I have a Delphi Windows app that dies horribly under Wine - doesn't even get to creating the main form. Porting to Free Pascal is not an option for various reasons.
Can I debug under Wine using Delphi's native means? If not, can I debug under Wine using gdb, and if so, how do I feed the debug info in Delphi format (Turbo Debugg...
Hi! Could you help me please to solve this problem. Here is my code. I Store (in this example) 10000 strings and when I try to delete them only some amount of memory is freed the rest leaks.
type
PMyData = ^TMyData;
TMyData = record
Name: string;
end;
////////
var
XList:Tlist;
//////////
// Here is how I add//
var
MyData: PM...
Microsoft's User Experience Interaction Guidelines give some UI guidelines for when to use a menu button:
How do I create one of these menu buttons? I've found information on
how to create a split button in Vista and above
how to create a toolbar button with a dropdown menu
how to create a regular pushbutton and manually wire up a...
Hi there,
With Delphi 7 trying to change the color of the title bar of the software from the window theme. I have seen code which allows you to change ALL the title bars of all programs, but I am just wanting to change my program.
Anyone seen/done anything like this? Don't mind paying for a component if needed.
...
being a dbExpress newbie I wonder if there is a dbExpress driver for Microsoft Access?
...
Hi
can you recommend an open source Delphi crypto library that works with
Delphi 2006, Delphi 2009 & Delphi 2010
Algorithms need: DES, MD5, SHA-1
...
I'm developing a application in Lazarus, that need to check if there is a new version of a XML file on every Form_Create.
How can I do this?
...
I just got a new laptop with Windows 7 (32-bit) and I have to install the following things:
SQL Server 2005 (Dev edition)
SQL Server 2008 (Dev edition)
Visual Studio 2008 Prof.
Delphi 2007
Delphi 2010
In addition I need the usual suspects such as Office 2007 etc.
I was thinking of doing it in the order listed above but would like to...
When we select Help / CodeGear Help from the Delphi 2007 for Win32 (Enterprise) menu, we get the error 'Access violation at address 02E85FC7 in module 'htmlhelp2100.bpl'. Read of address FB300182.'.
Then when we exit Delphi we get the Windows dialog 'CodeGear RAD Studio for Windows has stopped working'.
Selecting a keyword in the edi...
I'm building a program that needs to on Form_Create, populate a TListView called FileList, the directory that I want to populate is where the compiled program is + \Files, as I never used a TListView I want to know how to do this?
...
where is this funtion in Delphi 2010
function Null: Variant;
begin
_VarNull(TVarData(Result));
end;
in Delphi 6 it was in Variants
...
I have a variable vBit which is an unsigned int64. I know there is exactly one bit set, and I need to figure out which one it is. Currently I do it like this (in Delphi):
vPos := -1;
repeat
vBit := vBit shr 1;
inc(vPos);
until vBit = 0;
Is there a faster way? All bit positions are equally likely, so on average the algorithm needs ...
I want to upgrade my application from Indy 9 to 10 with Delphi 2007.
There is a lot of issues in this, I have read the indy doc about changes but I still need advise. This won't compile as ReadString is not found.
vCmdHead := FTCPClient.ReadString(16);
where FTCPClient is of type TIdTCPClient. vCmdHead is a structure that contains a ...
Is there a difference between Move and CopyMemory in Delphi(specifically versions 2007 and up)?
If so, what are the differences?
...
Since at least D2007 a project file can have a main source file with differing base name. The DevExpress demos make use of this: E.g. there is a single dpr file UnboundListDemo.dpr which serves as the main source for both UnboundListDemoD11.dproj and UnboundListDemoD12.dproj.
Now if I have a Project: IOTAProject then Project.FileName re...