Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Media Encoder (From VBS)

Status
Not open for further replies.

MoonchildHK

Programmer
Jun 5, 2001
22
HK
Hi All,

I am trying to figure out how to use Windows Media Encoder in a BCB application. I have some VBS code that does what I need, but I want to do it in C++. Here is a snipit of the VBS code:

Code:
 ' Create Encoder Object
 Dim encoder
 Set encoder = WScript.CreateObject("WMEncEng.WMEncoder")

 'Create Source Object
 Dim srcgrpcoll
 Dim srcgrp
 Set srcgrpcoll = encoder.SourceGroupCollection
 Set srcgrp = srcgrpcoll.Add("SG_1")

 ' Add sources to source groups
 Dim vidsrc
 Dim audsrc
 Set vidsrc = srcgrp.AddSource(2)
 Set audsrc = srcgrp.AddSource(1)
[\code]

I have no idea where to start... as my C++ is not as good as it should be, and I don't know any VBS at all! I guess the first part creates a new object? I'm lost.

If anyone could point me in the right direction I'd really appreciate it :-)

Thanks,

    MoonchildHK
 
Look at dbpoweramp.com There you find an excellent converter that you can script with c++builder (it is explained on the website) . It is free and it works very fine. Wim Vanherp
Wim.Vanherp@myself.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top