I need to write a program in C (on Linux) that tells a webcam when to take a photo. Can anyone give me some resources or tips for how to get started with this? I don't really know how to go about doing this.
I am using a Logitech webcam, so I looked at their website, and they suggest I use DirectShow, but that seems to be available only for Windows. Like I said, a few nudges in the right direction would be greatly appreciated.
I'm maintaining an application that has a number of fairly simple reports displayed in a CScrollView, that use MFC's print/ print preview facilities, writing to a CDC (device context). I'd like to add some bar charts to the reports, to graph information (generally, how much of something occurred in a specified time period). It would be particularly useful if I could use "stacked" barcharts, where the bar is comprised of more than one type of record, grouped together.
I've had excellent results with Cedric Moonen's high speed charting control when I needed this sort of functionality in dialogs (without the "stacked" charts, though). However, even after searching codeproject I'm not aware of any free or commercially available licence that is suitable for the task I've described. It wouldn't have to be explicitly an MFC library, just something that will get the job done.
It would be particularly useful if I could use "stacked" barcharts, where the bar is comprised of more than one type of record, grouped together.
I'm not very familiar with stacked bars but if you wish, we can discuss that over mail and see if this is feasible to implement them in the charting control. If I have time and if it is not too long I can add that functionality, otherwise I could still guide you a bit on how to implement them.
I plan to add some features to the control, so this could be a nice improvement.
I have a very simple application for testing purposes with a dialog and an Edit field, this Edit field has Customers Info, Like Address.. How can I display the text enetered in the edit field in chinese language assuming I have the translated Text.
I know how to use a a Satellite DLL, but I was wondering if it is possible to just change the text without going thru all the resources.
I am not using Unicode. How can I read and write Chinese strings, say I had to read chinese strings from a file and display them on a dialog, will I be able to do that in a non-Unicode MFC application?
Switching to Unicode would be the last thing I want to do since I link to non-unicode Libraries.
I have solved this in non-wizard generated applications by creating a virtual window in CMAinWin::CMainWin just after Create() is called using CDC and CBitmap. I use CClientDC to dreate the device context. However when I try to add this code to the wizard generated code in what I think is the same part of the code it compiles and links fine but I an assertion error at run-time. I hope this makes sense, I have been pounding my head for 3 days now. I could just settle for what I have but I would really like to use the new stuff. this is in MFC single document.
Is CClientDC the proper class to use for getting the device context for the main window?
If so, where in the new project do I create my virtual window?
I've tried every where I could think of with the same results.