Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. teriviret

    Question about C programming with .NET platform

    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.
  2. teriviret

    GetSafeOwner

    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...
  3. teriviret

    Draw icon next to edit control in combo box

    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...
  4. teriviret

    How to create an ActiveX control out of a Windows control?

    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...
  5. teriviret

    MFC window in a windows service?

    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...
  6. teriviret

    MS default MPEG-2 demux not working in graphedit

    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...
  7. teriviret

    how to use HWND?

    I think you meant MessageBox. For the HWND, just pass NULL.
  8. teriviret

    directshow filter property problem

    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...
  9. teriviret

    problem with activeX-components

    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...
  10. teriviret

    mfc group radiobuttons

    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.
  11. teriviret

    COM Object that runs as a service with MFC support

    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?
  12. teriviret

    Getting the dimensions of a video?

    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.
  13. teriviret

    Small C program to exclude bad RAM?

    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...
  14. teriviret

    Getting the dimensions of a video?

    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...
  15. teriviret

    Getting the dimensions of a video?

    Timeline of what? Do you mean something like Windows Movie Maker? A DirectShow filter graph?
  16. teriviret

    double

    Right you are, my bad.
  17. teriviret

    show all hash keys in ref

    You forgot the 's' in 'keys'.
  18. teriviret

    as always confused

    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...
  19. teriviret

    is it possible to upgrade the ATL, if running an older ver. of VC++?

    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.
  20. teriviret

    Dxdiag

    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...

Part and Inventory Search

Back
Top