Click here to Skip to main content
15,915,328 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problem Inserting Blob Datatype image into MySQL Pin
Dave Kreskowiak3-Aug-09 8:11
mveDave Kreskowiak3-Aug-09 8:11 
AnswerRe: Problem Inserting Blob Datatype image into MySQL Pin
Johan Hakkesteegt4-Aug-09 2:51
Johan Hakkesteegt4-Aug-09 2:51 
GeneralRe: Problem Inserting Blob Datatype image into MySQL Pin
wr30286-Aug-09 7:26
wr30286-Aug-09 7:26 
GeneralRe: Problem Inserting Blob Datatype image into MySQL Pin
Johan Hakkesteegt9-Aug-09 21:06
Johan Hakkesteegt9-Aug-09 21:06 
QuestionDatecs electronic cash register Pin
ivo753-Aug-09 6:56
ivo753-Aug-09 6:56 
AnswerRe: Datecs electronic cash register Pin
Luc Pattyn3-Aug-09 7:13
sitebuilderLuc Pattyn3-Aug-09 7:13 
AnswerRe: Datecs electronic cash register Pin
C Liv26-Oct-09 8:55
C Liv26-Oct-09 8:55 
QuestionComposite video or s-video in VB6 using msvidctl Pin
ant9998883-Aug-09 3:26
ant9998883-Aug-09 3:26 
Hi there

I almost have no hair left after tearing it all out to try get composite or s-video input playing on a VB6 form, using the MSVidCtl.dll. I am using the msvidctl quite happily with digital television, and am able to get a fine picture. However, it seems that composite or s-video should be even easier to play, but it is simply not working for me. I have scoured the web to try find out how to do it properly but can't get it to work.

I am starting with a simple VB6 application (has to stay in VB6 for compatibility reasons, preferably using the msvidctl.dll as it is already in use elsewhere in my program). Program also uses Quicktime and Windows Media Player activex controls, but neither of these 2 can play composite or s-video input.
You will require a TV tuner card with a composite or s-video input. You may not actually need the tuner part, so even just a USB capture device should work. I plug an external DVD player into this USB capture device, and I can view DVDs from either composite or s-video inputs using TV Tuner software (Blaze TV), so I know the connection is working.

Anyways, do this:

1. Ensure at least DirectX 9 is installed (run dxdiag from Run and check DirectX version).
2. Create a new VB6 application.
3. Add a Reference to MS Video Control 1.0 Type Library
4. Add MS Video Control 1.0 Type Library as a Component. You will see the blue TV screen with a red circle in the in components window.
5. Add a MSVidCtl object to your form, name it VidControl.
6. Add this code to the Form_Load event:

Dim objTSContainer
Dim objTuningSpace
Dim objTuneRequest
Set objTSContainer = CreateObject("BDATuner.SystemTuningSpaces")
Set objTuningSpace = objTSContainer("AuxIn1")
objTuningSpace.CountryCode = 61 'australia - not really required but may determine PAL/NTSC etc.
Set objTuneRequest = objTuningSpace.CreateTuneRequest
objTuneRequest.Channel = 0   ' 0 = s-video (4-pin connector), 1=composite video (yellow RCA connector)
VidControl.View objTuneRequest
VidControl.Run


7. Run the program.
8. I always get the error "Run time error -1073478249 (c0040597). Method Run of object IMSVidCtl failed" on the VidControl.Run line.

I have tried multiple combinations of tuning spaces like AuxInTuningSpace, trying to find different input devices (which shouldn't be necessary to manually select since I have selected "AuxIn1" tuning space.

Any advice or sample code would be welcomed.

Anthony Sacker
Software Developer, with less and less hair.
AnswerRe: Composite video or s-video in VB6 using msvidctl Pin
Mycroft Holmes3-Aug-09 3:36
professionalMycroft Holmes3-Aug-09 3:36 
GeneralRe: Composite video or s-video in VB6 using msvidctl Pin
ant9998883-Aug-09 12:48
ant9998883-Aug-09 12:48 
GeneralRe: Composite video or s-video in VB6 using msvidctl Pin
Mycroft Holmes3-Aug-09 13:51
professionalMycroft Holmes3-Aug-09 13:51 
AnswerRe: Composite video or s-video in VB6 using msvidctl Pin
Dave Kreskowiak3-Aug-09 8:08
mveDave Kreskowiak3-Aug-09 8:08 
GeneralRe: Composite video or s-video in VB6 using msvidctl Pin
ant9998883-Aug-09 12:52
ant9998883-Aug-09 12:52 
GeneralRe: Composite video or s-video in VB6 using msvidctl Pin
Dave Kreskowiak3-Aug-09 16:24
mveDave Kreskowiak3-Aug-09 16:24 
AnswerRe: Composite video or s-video in VB6 using msvidctl Pin
THEBAULT Jacques5-Aug-23 6:23
THEBAULT Jacques5-Aug-23 6:23 
GeneralRe: Composite video or s-video in VB6 using msvidctl Pin
Richard Deeming6-Aug-23 22:17
mveRichard Deeming6-Aug-23 22:17 
QuestionRe: Composite video or s-video in VB6 using msvidctl Pin
THEBAULT Jacques10-Aug-23 0:43
THEBAULT Jacques10-Aug-23 0:43 
QuestionDeployment project problem Pin
cstrader2323-Aug-09 2:57
cstrader2323-Aug-09 2:57 
AnswerRe: Deployment project problem Pin
Dave Kreskowiak3-Aug-09 3:24
mveDave Kreskowiak3-Aug-09 3:24 
GeneralRe: Deployment project problem Pin
cstrader2323-Aug-09 7:13
cstrader2323-Aug-09 7:13 
GeneralRe: Deployment project problem Pin
Kschuler3-Aug-09 7:56
Kschuler3-Aug-09 7:56 
Questionshort message texts(sms) Pin
sikadiwe3-Aug-09 2:17
sikadiwe3-Aug-09 2:17 
AnswerRe: short message texts(sms) Pin
Dave Kreskowiak3-Aug-09 3:20
mveDave Kreskowiak3-Aug-09 3:20 
AnswerRe: short message texts(sms) Pin
Mycroft Holmes3-Aug-09 3:37
professionalMycroft Holmes3-Aug-09 3:37 
AnswerRe: short message texts(sms) Pin
Christian Graus3-Aug-09 10:45
protectorChristian Graus3-Aug-09 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.