Despite the name, Visual C++ .NET is not just for .NET. It still has the classic C compiler, and when you compile an ordinary C application it will be just that - an ordinary application. It won't be translated or run under the .NET CLR.
If you pass NULL for the first argument to GetSafeOwner, the function finds the parent window by calling AfxGetMainWnd(), which returns the m_pMainWnd from the application object.
The thing is, the DLL has its own application object that is separate from the main program's application object...
How about setting up the combo box to be owner-drawn? You would have to implement the WM_DRAWITEM message in the combo box's owner window. Then you get to display whatever you want within the bounds of the combo box, including icons and such. The down side is that you have to do all the...
Programs use ActiveX controls through automation interfaces exposed by the controls. Programs use Windows controls through messages posted to the control's message queue.
So in order to make an ActiveX control from a Windows control, just create an ActiveX control class with an automation...
You can have a CWinApp in your service, just the same as in an ordinary program. You just need cache the pointer to your CWinApp-based object and call StartServiceCtrlDispatcher in the InitInstance of your CWinApp-based class to register a ServiceMain function. Then when the service control...
What error code are you getting when you try to connect the file source to MPEG2-Demux?
Did you make sure to turn off "Connect Intelligent" under the "Graph" menu first? Sometimes if it is turned on, and you have a buggy filter installed, it can interfere with the connection process of two...
There is no standard way. It's up to the filter designer to dictate how properties of a filter are set. Many filters expose a COM interface for getting and setting properties, and the property page is just a nice GUI front-end to this interface. Check to see what interfaces the Vorbis decoder...
To install the components, you first need to figure out what DLL the components reside in. Then you can run the command "regsvr32 <name.dll>" where "name.dll" is the name of the DLL that has the component.
To find out what DLL a component resides in is a little tricky. If you know the CLSID...
For the first button in the group, and the first control after the last button in the window, set the style bit WS_GROUP. For all the other buttons, make sure the style bit WS_GROUP is _not_ set.
COM objects don't run as services. Executables do. You can have COM objects in executables, and you can also use MFC in executables. So... what's the problem exactly?
It depends on what is mixing the videos together. You can either stretch the videos like you're doing now (probably your best bet), or blt the smaller one into a rectangular sub-area inside the larger one. I think it's up to you, what kind of effect you want.
Unless your RAM is physically soldered to the motherboard, it is easily replaceable. RAM usually comes on small cards that plug into the motherboard. Also, RAM is still cheap, less than 50 cents US per megabyte.
The code you posted will definitely not work on any operating system that uses...
In DirectShow, the video size is part of the media type negotiated when your filters connect. Look in the format type, the VIDEOINFOHEADER or VIDEOINFOHEADER2 structure, depending on the media subtype. Both these have a field of type BITMAPINFOHEADER called "bmiHeader". In this structure, the...
It doesn't have to do with C++. The language itself doesn't define how one program calls another. On Windows, the way it's done is the operating system loads the second program and starts executing it when the first program calls a special function defined in the operating system's API. There...
Yes, but I can tell you right now, VC++ .NET 2003 does not install on Windows 98SE. Here is the list of system requirements. You'll need to upgrade to at least Windows 2000.
Does the test report any problems? My guess is that it's not a big deal if it spins fast.
DirectX cannot be uninstalled in the traditional way. There are lots of web sites which claim to have tools or instructions on how to do it though. Do a Google search for "DirectX uninstall", or start...
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.