Forget it....It suddenly came to me...OLE2 is what i neeed.
 
 
Thanks again
 
Jeremy Coulter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: Friday, April 09, 1999 12:41
To: Multiple recipients of list delphi
Subject: Re: [DUG]: CreateOLEObject Error

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}
  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

 

Reply via email to