Hi all I am trying
to use an activeX dll that I got that checks NT Users to see if they exist (and
log them on if the exist).
It works fine
under VB and VBScript, but when I run it in Delphi, I get the error
"CoInitialize can not been Called"
What does this mean
!!! I have seen the error before, but not sure what the error
means.
Heres my
code
var
fLogonObject:
OLEVariant;
begin
fLogonObject:=
CreateOLEObject('NTAccess.User.1');
{my other code goes here but the line above is the offending line}
{my other code goes here but the line above is the offending line}
fLogonObject:=Unassigned;
thanks,
Jeremy Coulter (chief software engineer)
Visual
Software Solutions
Christchurch, New Zealand
PH 03-3521595
FAX
03-3521596
MOBILE 021-2150435
www.vss.co.nz