What technologies/libraries/protocols I need to study to develop a video system similar to skype or
MSN messenger? I prefer coding in C++.
To be more specific:
How do I capture the video feed from the webcam? And how do I play it back?
How do I capture sound? And how do I play it back?
How do I stream it over the internet? Do I use sockets?
I have an application that uses a ISA card to control motion of flight simulator. The ISA card is controlled by C++ classes inside MFC Application. I recently decide to package the ISA card C++ control class into it's own DLL. This will enable me to use other manufacture motion cards at a later date. However, After placing the code into a DLL and change the application to load the library DLL and at start up. I find the application is not performing as fast as it use to? How much overhead does a DLL really add? Is it possible that DLL is my problem here? Where does the dll get it's runtime priority? Is it from the calling appication or do i have to sent it myself.
Engineering & Manufacturing
Software, Hardware, & Enclosures
if your program's performance isn't what it used to be, then you must have changed something. Assuming all the functions and data structures remained the same, it must be related to compiler/linker settings, e.g. maybe your EXE was and still is optimized, but your new DLL is not? I suggest you compare the DLL settings with the current or previous EXE settings.
Hello everyone. I come from a Delphi background to VC++ 2008. I have searched the board and articles for my "problem" but to no avail. I hope someone out there can help me with this even tho it may sound like a very dumb question. The entire problem could probably be resolved with a different approach but this is what I have so far so feel free to modify/suggest whatever you feel may help.
1. after a button is clicked, a do ... while loop is started
2. in the middle of the loop, webBrowser is "told" to do a webBrowser->Navigate
3. an url keeping variable is updated by incrementing one of the integers needed to get the right url
4. integer variable is incremented
5. loop keeps going up and webBrowser navigates again (this time to a different address) until the integer variable = user specified number
This loop can, based on user input, be executed 10+ times or so, basically telling the webbrowser to navigate to 10 different urls.
The problem is - the loop will prevent the webbrowser to fully finish loading the site and at the end it manages to navigate to 1 url only.
I understand that I need to use the DocumentCompleted event on the webBrowser.
The question is: how do I combine the loop with the event?
Is there backgroundworker or some other component I should use?
I hope I provided enough info for the answer. Feel free to ask for more details/code if needed.
You're going to be hosting the web browser in some window - a dialog or a view. You'll need a class for that window. Add a method to construct the url and tell the web browser to navigate to the url. Call that method from your dialog's OnInitDialog method (presuming you're using a dialog). Add the counter as a private data member of that class. Increment the counter in the DocumentCompleted event handler and call the navigate method you wrote earlier from there (as well as from OnInitDialog). The while loop is effectively subsumed into the window's message loop.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
and the then kicking of the constructer via myeventptr->MyEvent::MyEvent(....);
is this going to create the object for me ???
You really don't want to do that. Pallini probably has the solution you should use but what you described is covered in C++ with Placement new[^]
As always I strongly recommend novice C++ developers not to make stuff up. There exists an enormous amount of information freely available on the internet. Use it or make up your own stuff, it's your choice.
class Myevent : public CEvent
static Myevent& GetMyEvent();
// Make the constructors and destructor private
Myevent& operator=(Myevent const&);
Thanks for the references, I'm ordering one ASAP. I'm aware that I could explicitly invoke the base class' method beforehand, I was looking for a way to make the invocation implicit, and the base class' method is invoked after the derived class' method. Something like this:
In what way am I heading towards trouble?
FWIW, I wasn't the one who univoted
modified on Saturday, April 25, 2009 10:13 AM
Last Visit: 31-Dec-99 19:00 Last Update: 9-Dec-23 8:03