I've got a framegrabber card that will let me grab frames from a video source. The API gives me a handle to a DIB when I grab an image. Is there any easy way of saving this to a JPEG with C++Builder 5?
I've looked at TJPEGImage and TImage::Bitmap, but I can't figure out how to get those from a...
I know there's a good webpage that describes it, but the site seems to be down.
http://www.bcbdev.com/articles/vcdll2.htm
^ That's where it was, but I think it's gone now.
Can anyone point me to another resource on how to do this?
It's kind of dumb, but it seems to work. All I did was set up a loop that calls CreateFile with dwShareMode set to 0 (ie. do not share). If it returns INVALID_HANDLE_VALUE then you know that some other process is still writing it. Seems to work for me.
Does anyone know how to get around Windows' cached writes without turning off caching for the entire hard drive? In Linux I can use select() or poll() to wait until the file is ready for reading or writing. It looks like Windows has select() for sockets, but will it work for files? Or is there...
Yeah, printing stuff out can be interesting. I had to do something similar for one of my apps. Glad to see you're making a resource that everyone else can use.
Brian Rivers
Does anyone know how I can get a progress bar in a status bar? I've got a panel made for it, but I'm not sure how to get it to be a progress bar instead of a text display.
Thanks in advance for any help.
Brian Rivers
I created an app that uses a custom file extension (.md5). I got it to open my app and load the file just fine, but I can't figure out how to associate the icon with the file type (so that it shows up correctly in Explorer). Anyone know how to do this?
Thanks.
Okay, I made an app with a "custom" file type and I need to know how to make it so that when I double-click a file of my type (.md5) it kicks off my app and loads the file.
I know how to make Windows kick off my app, but I'm not sure how to (in my program) get the name of the file from the OS...
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.