You need to make sure you're using a newer Windows Media Player, like ver 6 or 7. Surpisingly, when you update these, the problem will go away. Also check the version of DirectX, most of the time, it will be updated when you download WMP. Don't use the one that came with Win95/98. I've also...
I would like to implement one of the sample applications in the VB DirectX8 sdk but without loading the whole wave into memory first. There are no examples of how to do this. Also they don't show how to set up a codec to play MP3s or other formats in the sdk. Preferably I need to do a...
I would like to implement one of the sample applications in the VB DirectX8 sdk but without loading the whole wave into memory first. There are no examples of how to do this. Also they don't show how to set up a codec to play MP3s or other formats in the sdk. Preferably I need to do a...
I would check your system clock about once a minute and determine if the time has changed and use this to trigger the event. The VB timer is very variable when it comes to counting hours.
Ex:
'general declarations'
Public CurrentHour as Integer
Private Sub Timer1_Timer()
' The hour part is...
You can use the Dir list box example in the VB docs if you just want to know if a file exists, alternately you can open any file, no matter what it is as a binary file. Use "On Error Goto" if it raises an error "file not found" then it doesn't exist. If no error is raised...
IF EVERYTHING HERE FAILS, TRY SETTING THE MSGBOX TO MODAL, I think you set the last argument to vbModal Ive ran into this if you have a label, textbox or something being changed while the msgbox is up on the screen. I've even went so far to circumvent this that I rarely use a msgbox unless I'm...
Dump all that, and use Activemovie player:
Add the Activemovie object to your form, don't worry about how it looks, you can control everything in the properties dialog or upon form.load
Explore the properties box to turn off sliders, controls, adjust border types and window size. You can right...
I would suggest using long or even varaint when evaluating a currency value adding it to something else, unless you really know the numeric range of the result.
Labor = LaborRate * Val(flexDA.TextMatrix(flexDA.Row, 2))
Labor should by Dim'ed as something that can handle the range of numbers...
If you want to make a downloadable version, you should explore the idea of creating an interactive web site to accept a randomly generated hash code that is generated the first time the program is run. The web site would require the buyer to supply the installation (random hash) code during the...
It'll work good until your database gets real big. You'll want to export this data to a file at the end of the month so you don't fill up a grid that much. I've put up to about 1000 items like this and you'll have to wait about 1 to 2 sec between entries using a PII-400. I'd put off adjusting...
Yes, use the ActiveX control called Activemovie. You can do a lot more with it and it bypasses all the old software and uses DirectX directly. However, I think that your problem is arising out of the creation and killing of an object under program control. You will find that windows, by...
You can skip all this stuff and add the activeX component included with Pro and Enterprise Editions called active movie player. Set it to be visible=false in your form.load, and set its filename, Ex:
Activemovie1.filename = "C:\mysong.mp3"
Once the file is open and ready for play...
I need to be able to stream an audio file from hard drive instead of loading the whole file into memory as most of the microsoft directX8 vb dev kit examples show. This takes forever for an entire song and chews up resources. I'd like to be able to open MP3s or any other file, not just WAV and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.