msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Runtime Error 31027 in Window XP Home

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
JamesW



Joined: 04 Oct 2007
Posts: 5

PostPosted: Mon Aug 22, 2005 5:44 am    Post subject: Runtime Error 31027 in Window XP Home Reply with quote

I have written a program that plays some .wav files when a command button is
pressed. It has been successfully installed on a Windows ME, 2 Windows XP
Pro, and 1 Windows XP Home pc's. However I installed it on another Windows
XP Home pc and got the Runtime Error 31027. The Class of the OLE was set as
SoundRec initially so I changed it to mplayer, and then installed again, to
see if this made any difference, which it didn't. The .wav files run fine if
I play then straight from the directory that they are located in. Any
help/advice in resolving this issue would be appreciated.

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Jan Hyde



Joined: 04 Oct 2007
Posts: 1211

PostPosted: Mon Aug 22, 2005 4:40 pm    Post subject: Re: Runtime Error 31027 in Window XP Home Reply with quote

JamesW 's wild thoughts
were released on Mon, 22 Aug 2005 01:44:04 -0700 bearing the
following fruit:

>I have written a program that plays some .wav files when a command button is
>pressed. It has been successfully installed on a Windows ME, 2 Windows XP
>Pro, and 1 Windows XP Home pc's. However I installed it on another Windows
>XP Home pc and got the Runtime Error 31027.

The error message is..?

J

>The Class of the OLE was set as
>SoundRec initially so I changed it to mplayer, and then installed again, to
>see if this made any difference, which it didn't. The .wav files run fine if
>I play then straight from the directory that they are located in. Any
>help/advice in resolving this issue would be appreciated.





Jan Hyde (VB MVP)

--
'I hate quotations.' -- Ralph Waldo Emerson

[Abolish the TV Licence - http://www.tvlicensing.biz/]
Back to top
View user's profile Send private message
JamesW



Joined: 04 Oct 2007
Posts: 5

PostPosted: Mon Aug 22, 2005 8:52 am    Post subject: Re: Runtime Error 31027 in Window XP Home Reply with quote

The error message message came up as soon as you clicked on one of the
command buttons when the program was running. It just said Runtime Error
31027. This error code apparently means "unable to activate object".
--
James


"Jan Hyde" wrote:

> JamesW 's wild thoughts
> were released on Mon, 22 Aug 2005 01:44:04 -0700 bearing the
> following fruit:
>
> >I have written a program that plays some .wav files when a command button is
> >pressed. It has been successfully installed on a Windows ME, 2 Windows XP
> >Pro, and 1 Windows XP Home pc's. However I installed it on another Windows
> >XP Home pc and got the Runtime Error 31027.
>
> The error message is..?
>
> J
>
> >The Class of the OLE was set as
> >SoundRec initially so I changed it to mplayer, and then installed again, to
> >see if this made any difference, which it didn't. The .wav files run fine if
> >I play then straight from the directory that they are located in. Any
> >help/advice in resolving this issue would be appreciated.
>
>
>
>
>
> Jan Hyde (VB MVP)
>
> --
> 'I hate quotations.' -- Ralph Waldo Emerson
>
> [Abolish the TV Licence - http://www.tvlicensing.biz/]
>
>
Back to top
View user's profile Send private message
Jan Hyde



Joined: 04 Oct 2007
Posts: 1211

PostPosted: Mon Aug 22, 2005 5:13 pm    Post subject: Re: Runtime Error 31027 in Window XP Home Reply with quote

JamesW 's wild thoughts
were released on Mon, 22 Aug 2005 04:52:10 -0700 bearing the
following fruit:

>The error message message came up as soon as you clicked on one of the
>command buttons when the program was running. It just said Runtime Error
>31027. This error code apparently means "unable to activate object".

That was my point really. You can't make any assumptions
about an error number. Any error number can be used by any
component and so without the error message you can only
guess. If you guess wrong then you spend a lot of time
looking in the wrong places.

Your program really needs to log the error message (the
source is useful too)

That aside, can you post the relevant code?




Jan Hyde (VB MVP)

--
Have you heard about the downhill skier who was an exhibitionist?
He was arrested for in-descent exposure. (Richard Lederer)

[Abolish the TV Licence - http://www.tvlicensing.biz/]
Back to top
View user's profile Send private message
JamesW



Joined: 04 Oct 2007
Posts: 5

PostPosted: Tue Aug 23, 2005 4:26 am    Post subject: Re: Runtime Error 31027 in Window XP Home Reply with quote

This is the code I use to run the .wav files:

Private Sub Command1_Click()
OLESoundGreat.DoVerb
End Sub

Private Sub Command10_Click()
OLESoundBoing.DoVerb
End Sub

Private Sub Command11_Click()
OLESoundPugwash.DoVerb
End Sub

Private Sub Command12_Click()
OLESoundLove.DoVerb
End Sub

Private Sub Command13_Click()
OLESoundMessage.DoVerb
End Sub

Private Sub Command14_Click()
OLESoundMessageSample.DoVerb
End Sub

Private Sub Command15_Click()
OLESoundPirateShort.DoVerb
End Sub

Private Sub Command16_Click()
OLESoundSeaside.DoVerb
End Sub

Private Sub Command17_Click()
OLESoundSeasideshort.DoVerb
End Sub

Private Sub Command2_Click()
OLESoundMeasure.DoVerb
End Sub

Private Sub Command3_Click()
OLESoundRace.DoVerb
End Sub

Private Sub Command4_Click()
OLESoundHey.DoVerb
End Sub

Private Sub Command5_Click()
OLESoundLand.DoVerb
End Sub

Private Sub Command6_Click()
OLESoundLand_back.DoVerb
End Sub

Private Sub Command7_Click()
OLESoundTime.DoVerb
End Sub

Private Sub Command8_Click()
OLESoundAce.DoVerb
End Sub

Private Sub Command9_Click()
OLESoundPirate.DoVerb
End Sub

The exact error message that appears on the screen is:

Run-time error '31027':
System Error &H800401E6 (-2147221018)

The OLE's are linked to the .wav files that are stored in a directory on the
root of 'C'.

--
James


"Jan Hyde" wrote:

> JamesW 's wild thoughts
> were released on Mon, 22 Aug 2005 04:52:10 -0700 bearing the
> following fruit:
>
> >The error message message came up as soon as you clicked on one of the
> >command buttons when the program was running. It just said Runtime Error
> >31027. This error code apparently means "unable to activate object".
>
> That was my point really. You can't make any assumptions
> about an error number. Any error number can be used by any
> component and so without the error message you can only
> guess. If you guess wrong then you spend a lot of time
> looking in the wrong places.
>
> Your program really needs to log the error message (the
> source is useful too)
>
> That aside, can you post the relevant code?
>
>
>
>
> Jan Hyde (VB MVP)
>
> --
> Have you heard about the downhill skier who was an exhibitionist?
> He was arrested for in-descent exposure. (Richard Lederer)
>
> [Abolish the TV Licence - http://www.tvlicensing.biz/]
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Please someone; Run-time error 48,Error loading DLL Hi! I am trying to load Word (2002) application from vb6, and I have XPHome Edition OS and Office Pro2002 installed on both of my computers When I load to one my computer, everything works fine. When I load the same application to the second computer,

Window Form I am having a few problems with windowforms. 1. In a combo box when you type 1 character it treats the as changed. 2. In a combo box how do I allow for nulls. 3. In a DataGrid how do i allow a column to be a comboBox. 4. In a DataGrid

moving window by control how to move window [form] by one of the controls [for example image] in this form? for example: i want to move window so i drag and drop image control. please help me! pawel kreis --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Run time error I built a vb program and installed to other workstation for test, the installation is completed and ok. but when i execute the program that the following error occured : Run-time error '-214767259 (80004005) Method '~"

Error seeing the images in VFP 8.0 I need to know how to restore or reinstall the OLE Server to can see the images in VFP 8.0 Aplicattions. The images before I see like images and now I see like icons. Thanks a lot. Javier
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group