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