|
I have a picture control on a dialog app.
Anybody know how to play a video inside that picture control.
I can play video using a default player like media player no problem, but i would like that video to be played from my app on my picture control.
Is there some sort of plugin or active x control that i can use?
|
|
|
|
|
directshow better
Kuphryn
|
|
|
|
|
can you expand on how i would use this in C++?
|
|
|
|
|
better msdn
directshow directdraw
IGraphBuilder
IMediaControl
IVideoWindow
IDirectDraw
Kuphryn
|
|
|
|
|
there are articles here on CodeGuru that are pretty good regarding DirectShow - you can also find some sample applications with the DirectX SDK
|
|
|
|
|
Hey guys,
I am trying to study how functions with POINTER PARAMETER WORKS. Does anyone know any link where I can study how Functions with pointer parameters work.
Thanks
void ObjectRoot::classInit( RTI::RTIambassador* rtiAmb, const char* classIdStr )<br />
{<br />
ObjectRoot::ms_rtiAmb = rtiAmb;<br />
ObjectRoot::ms_classIdStr = classIdStr;<br />
<br />
if ( ms_rtiAmb )<br />
{<br />
ms_classId = ms_rtiAmb->getObjectClassHandle( ms_classIdStr );<br />
}<br />
}
|
|
|
|
|
|
I am trying to study how functions with POINTER PARAMETER WORKS. Do you know any good links which will provide me with the details of FUNCTIONS WITH POINTER PARAMETERS
|
|
|
|
|
|
I'm wondering if you're going to again delete your post after getting the answer. For your reference, here is the link[^].
Best,
Jun
|
|
|
|
|
Hey Jun,
Im new to this thing so im just messing around .. hahaha
|
|
|
|
|
It's Ok. Hope you enjoy here.
Best,
Jun
|
|
|
|
|
|
Jay03 wrote: ...how Functions with pointer parameters work.
They work just the same as any other function does. When calling them, simply pass the variable's address instead of its actual value.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Has anyone written any code to expand a string with embedded environment variables in it, e.g.
%systemroot%\system32\drivers\etc\hosts
.. to form a literal string (as required by functions such as CreateFile()):
c:\windows\system32\drivers\etc\hosts
?
Many thanks.......
cheers,
Neil
|
|
|
|
|
|
Thanks. I thought there had to be something, just couldn't spot it.
You the man!
cheers,
Neil
|
|
|
|
|
Anyone know how to place an HBITMAP into a PDF File? or Save a CDC as a PDF File?
Chris
|
|
|
|
|
|
|
I am using a CMSChart. When I want to save this thing as a file I have to copy the chart into the clipboard as a bitmap and then I can bring it out of the clipboard into an HBITMAP. From there I can save it as a bmp or a jpg. But then the user can easily go into paint and try to change the contents. If I could put the HBITMAP into a pdf then the average user will not be able to change or manipulate the picture.
Chris
|
|
|
|
|
Hi,
I am having an application written in vc++ in which it is having multiple threads (to say 2 threads) running parallel. These threads are created by the user at the same time, but ofcourse one after the other. I want them to be syncronized with each other so that they wont be off even by 33.3msec. Actuallly these two threads generate waveform signals through 2 waveform generator boards which finally generates images. So, the framerate will be at 30Hz. The problem is each thread generates two differnt images at the same frame rate, but while I replay the images they are "sometimes" off by one frame(33.3msec).
thanks,
-Pavan
|
|
|
|
|
Have you implemented any synchronization mechanism between the two threads, or just created them and let them go?
Best,
Jun
|
|
|
|
|
mswin does not provide us with much control of threads. They do not even give us a simple control to temporarily disable switching of threads. Just imagine if we could disable switching momentarily so that we could execute a couple of lines of code and guarantee that no other threads were run in between. It could prevent a mess of control flags.
Anyway, I always suggest... DO it in one thread! Then you do not have these problem!
Just livin a dream.. dont wake me!
|
|
|
|
|
mikeorama12345 wrote: Just imagine if we could disable switching momentarily so that we could execute a couple of lines of code and guarantee that no other threads were run in between.
Isn't this what a critical section does?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|