Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Getting OleException using Windows


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 5 - Last Post: Oct 31, 2017 12:54 PM Last Post By: Remy Lebeau (Te... Threads: [ Previous | Next ]
Freddy Holst Ch...

Posts: 15
Registered: 3/20/99
Getting OleException using Windows  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 28, 2017 4:32 AM
HEY

I'm trying to integrate a mediaplayer, using Import Component and IMJport ActiveX.

Creation works fine.

I I set the filenmae static, in the component at design I can play the video, but If I try to do
dynamic by selecting the file at runtime, I ge an EOleException, with the message

OLE error C00D1327

which apparently happens when I try sot set the name of the file to play.

Dowa anybody of you, know wherer to fins, a deeper explenation of this error;

regars
FReddy

Remy Lebeau (Te...


Posts: 8,905
Registered: 12/23/01
Re: Getting OleException using Windows  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 30, 2017 1:44 PM   in response to: Freddy Holst Ch... in response to: Freddy Holst Ch...
Freddy Holst Christensen wrote:

I I set the filenmae static, in the component at design I can play
the video, but If I try to do dynamic by selecting the file at
runtime, I ge an EOleException, with the message

OLE error C00D1327

According to this page:

http://joshpoley.blogspot.com/2011/09/hresults-facilitymediaserver.html

That error is NS_E_CURL_INVALIDPATH, which means you are not passing in
a path that is valid on the system that your code is running on.

--
Remy Lebeau (TeamB)
Freddy Holst Ch...

Posts: 15
Registered: 3/20/99
Re: Getting OleException using Windows  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 31, 2017 5:41 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
HEY

Sory to say it, but that list is wrong. I checked the file path, its's OK, and I still get the erroer

The file name used: D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4
THe code line is: WindowsMediaPlayer1->URL = "D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4";

REgards
Freddy


Remy Lebeau (TeamB) wrote:
Freddy Holst Christensen wrote:

I I set the filenmae static, in the component at design I can play
the video, but If I try to do dynamic by selecting the file at
runtime, I ge an EOleException, with the message

OLE error C00D1327

According to this page:

http://joshpoley.blogspot.com/2011/09/hresults-facilitymediaserver.html

That error is NS_E_CURL_INVALIDPATH, which means you are not passing in
a path that is valid on the system that your code is running on.

--
Remy Lebeau (TeamB)
Alex Belo

Posts: 562
Registered: 10/8/06
Re: Getting OleException using Windows
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 31, 2017 7:52 AM   in response to: Freddy Holst Ch... in response to: Freddy Holst Ch...
Freddy Holst Christensen wrote:

Sory to say it, but that list is wrong. I checked the file path,
its's OK, and I still get the erroer

The file name used: D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4
THe code line is: WindowsMediaPlayer1->URL =
"D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4";

Do you mean
...=L"D:\\TempVideo\\SpisemedPriceiElkHornTVDR.mp4" ?

--
Alex

Edited by: Alex Belo on Oct 31, 2017 8:54 PM

Edited by: Alex Belo on Oct 31, 2017 8:55 PM
Freddy Holst Ch...

Posts: 15
Registered: 3/20/99
Re: Getting OleException using Windows  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 31, 2017 8:05 AM   in response to: Alex Belo in response to: Alex Belo
Thanks Alex

Now I ca get work. Now I just have to make shure, I can get the process to automaticly.

Freddy


Alex Belo wrote:
Freddy Holst Christensen wrote:

Sory to say it, but that list is wrong. I checked the file path,
its's OK, and I still get the erroer

The file name used: D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4
THe code line is: WindowsMediaPlayer1->URL =
"D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4";

Do you mean
...=L"D:\\TempVideo\\SpisemedPriceiElkHornTVDR.mp4" ?

--
Alex

Edited by: Alex Belo on Oct 31, 2017 8:54 PM

Edited by: Alex Belo on Oct 31, 2017 8:55 PM
Remy Lebeau (Te...


Posts: 8,905
Registered: 12/23/01
Re: Getting OleException using Windows  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 31, 2017 12:54 PM   in response to: Freddy Holst Ch... in response to: Freddy Holst Ch...
Freddy Holst Christensen wrote:

Sory to say it, but that list is wrong.

No, it is not, actually. Just because you don't agree with the error
doesn't mean the list is wrong, or that you are specifying the path
correctly.

I checked the file path, its's OK, and I still get the erroer

Then you are not specifying the path correctly.

The file name used: D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4

THe code line is: WindowsMediaPlayer1->URL =
"D:\TempVideo\SpisemedPriceiElkHornTVDR.mp4";

Like Alex said, if you use backslashes in string literals, you must
escape them (by doubling them):

WindowsMediaPlayer1->URL =
"D:\\TempVideo\\SpisemedPriceiElkHornTVDR.mp4";


Escapsing is not needed for forward slashes, or backslashes obtained at
runtime. It only applies to literals at compile-time.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02