realbasic-nug
[Top] [All Lists]

Re: OLEAutomation + ServiceApplication

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: OLEAutomation + ServiceApplication
From: "Alex Cassol" <alexcassol at gmail dot com>
Date: Thu, 28 Sep 2006 13:10:53 -0300
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Fb2hlTfGZ6Rj1HR7GBumnBAUkfJ6O+OrUNJTJcn8P82ORealyczdlNmwM6sTVcouRmfZE9zfG+VhatUrJcjc5IuARzPIfillpiTFvaX1hLL+drSWbDjNRj5o+To8OOi7FXbUoJIKtrWazKl9XYiCkEwQfmgf1Kt8eqIogFnvD/k=
References: <a82417ea0609271158q6cb3d3b9w7c59a50cc984dbb7 at mail dot gmail dot com> <bb01ce98d235209fcd306c42d00650cd at realsoftware dot com> <a82417ea0609271342y199d42cat8f48bd30764e0ca8 at mail dot gmail dot com> <a82417ea0609280747h25f5c927ke7901d65a8e53878 at mail dot gmail dot com> <da814bce670dffcd3898db10c313d4d9 at realsoftware dot com>
That's it!
Work's fine!

2006/9/28, William Yu <william at realsoftware dot com>:

Interesting... well, we need to fix that, but in the mean time, you can
declare against ole32.dll and call the function yourself:

Declare Sub CoInitialize lib "ole32" (unused As Integer)

CoInitialize(0)

~William


On Sep 28, 2006, at 9:47 AM, Alex Cassol wrote:

> When I start with admin user, the error message change to: Unknown
> error:
> -2147221008.
>
> In WINERROR.H this error is: -2147221008 (800401F0)    CoInitialize
> has not
> been called.
>
>
>
>
> 2006/9/27, Alex Cassol <alexcassol at gmail dot com>:
>>
>> Yes, I think the same, but the user is administrator.
>>
>> 2006/9/27, William Yu <william at realsoftware dot com>:
>> >
>> > Are you executing the process as super user (admin)?  If not, then
>> it's
>> > possible that the service may not have access to that part of
>> registry.
>> >   I'm no expert on this, but MS recommends service apps avoid using
>> OLE
>> > Automation (among other things).
>> >
>> > ~William
>> >
>> >
>> > On Sep 27, 2006, at 1:58 PM, Alex Cassol wrote:
>> >
>> > > Sorry about my english...
>> > >
>> > > Well... I have an app that run as a service application.
>> > > I have de follow lines on run method:
>> > >  dim rs As OLEObject
>> > >  rs = new OLEObject( "ADODB.RecordSet" )
>> > >
>> > > If I run app via console, runs pretty. If I start the service,
>> occurs
>> > > the
>> > > error:"Invalid class string" in line rs = new OLEObject(
>> > > "ADODB.RecordSet"
>> > > ).
>> > >
>> > > Thank's.
>> > > _______________________________________________
>> > > Unsubscribe or switch delivery mode:
>> > > <http://www.realsoftware.com/support/listmanager/>
>> > >
>> > > Search the archives of this list here:
>> > > < http://support.realsoftware.com/listarchives/lists.html>
>> > >
>> >
>> > _______________________________________________
>> > Unsubscribe or switch delivery mode:
>> > < http://www.realsoftware.com/support/listmanager/>
>> >
>> > Search the archives of this list here:
>> > <http://support.realsoftware.com/listarchives/lists.html >
>> >
>>
>>
>>
>> --
>>   Alex Cassol de Vasconcelos
>>   alexcassol at gmail.com
>>   MCSD
>>
>
>
>
> --
>  Alex Cassol de Vasconcelos
>  alexcassol at gmail.com
>  MCSD
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>




--
 Alex Cassol de Vasconcelos
 alexcassol at gmail.com
 MCSD
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>