Yes, but this article is talking about to host ActiveX controls rather than make ActiveX controls by WTL. ;P
|-|3llo Wo|2ld
Yes, but this article is talking about to host ActiveX controls rather than make ActiveX controls by WTL. ;P
|-|3llo Wo|2ld
Thanks a lot. Yes, I've got all the headers and libs that needed to build ATL/WTL projects, what I want to know is how to set up a project quickly... If there is no convenient way to auto generate an ActiveX project, I'm afraid I have to do this painstaking work...
|-|3llo Wo|2ld
Hi, I'am new to WTL, I want to make an ActiveX control for applications.. Since I am use VC2008 express in personal and I set up the environment for using WTL/ATL, which is now working, there is no ATL app wizard for making ActiveX controls. What should I do now? And I do love WTL, it's beautiful, is it possible to make ActiveX controls by WTL? How? Thanks a lot!
|-|3llo Wo|2ld
Sending WM_DROPFILES seems not work. Is it possible to 'Simulate' the Drag and Drop operation to a target application? Or, is it possible to get the IDropTarget interface of the target application? Thanks in advance.
|-|3llo Wo|2ld
well, the code int j = object->value; could lead an unexpected result. sometimes exceptions like AV(Access Violation) could be thrown out, but not always.
|-|3llo Wo|2ld
CImage::GetBits is just what you need.
|-|3llo Wo|2ld
try{ int j = object->value; } catch(...){ // handling here }
|-|3llo Wo|2ld
How to set the text color of a toolbar, in a Win32 SDK project? Thanks in advance.
|-|3llo Wo|2ld
I wrappered a class to play video using DirectShow, almost following the sample "playwnd", but i found it cannot destroy the media window by the destructor, unless I destroy the parent window. I checked the state of the player window, it was stopped, but I could still saw it was running after the destructor invoked...:( Following list the destructor, what is the problem? CMediaPlay::~CMediaPlay(void) { HRESULT hr; if (m_pMediaControl) { LIF( m_pMediaControl->Stop()); OAFilterState fs; LIF( m_pMediaControl->GetState(200L, &fs)); if (fs == State_Stopped) Msg(_T("Successfully stopped the filter run")); } // Relinquish ownership (IMPORTANT!) after hiding video window if(m_pVideoWindow) { LIF(m_pVideoWindow->put_Visible(OAFALSE)); LIF(m_pVideoWindow->put_Owner(NULL)); } // Disable event callbacks if (m_pMediaEventEx) LIF(m_pMediaEventEx->SetNotifyWindow((OAHWND)NULL, 0, 0)); #ifdef REGISTER_FILTERGRAPH if (g_dwGraphRegister) { RemoveGraphFromRot(g_dwGraphRegister); g_dwGraphRegister = 0; } #endif SAFE_RELEASE(m_pFileSource ); SAFE_RELEASE(m_pVideoDecoder ); SAFE_RELEASE(m_pAVISplitter ); SAFE_RELEASE(m_pSourceReader ); SAFE_RELEASE(m_pMediaEventEx ); SAFE_RELEASE(m_pMediaSeeking ); SAFE_RELEASE(m_pVideoFrameStep ); SAFE_RELEASE(m_pMediaControl ); SAFE_RELEASE(m_pBasicAudio ); SAFE_RELEASE(m_pBasicVideo ); SAFE_RELEASE(m_pVideoWindow ); SAFE_RELEASE(m_pGraphBuilder ); }
|-|3llo Wo|2ld
Is it possible to get a snapshot of my window and copy a part of it to temporary image object, just like what Bitblt does? How can I copy the content of a Graphics object to one another?
|-|3llo Wo|2ld
Anybody helps?
|-|3llo Wo|2ld
I am working with VC++ 5.0 and want to add DirectX support of playing AVI files. DirectX 9.0 SDK has already been installed and the directory options of VC++ have been correctly set. However, when i add #include "dshow.h" to the project and compile the source, I get this error: E:\DXSDK\INCLUDE\strmif.h(28) : fatal error C1189: #error : this stub requires an updated version of Can anyone solve this?
|-|3llo Wo|2ld
Anybody that can help me?
|-|3llo Wo|2ld
By the way, i had added gdiplus.lib to the project
|-|3llo Wo|2ld
i installed the Platform SDK downloaded from microsoft.com, set the directories of Visual C++. Then made an empty MFC Dialog-based Project, added #include "basetsd.h" #include "gdiplus.h" in stdafx.h after all includes and before #endif and built the project. 6 errors were reported: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'MIDL_INTERFACE' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2440: 'initializing' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2146: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'IImageBytes' : F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2239: F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2059: (I removed the rest of error information of each line because i am using a Japanese version of Visual C++ and it was difficult to display those characters)
|-|3llo Wo|2ld
Is the ICONINFO struct at the front of the memory block?
|-|3llo Wo|2ld
If I know a block of memory is just the data of an icon, how can I get the handle of this icon?
|-|3llo Wo|2ld
Thx. But what i want is to change spin button contro's size. I know CSpinButtonCtrl::Create can do, see: BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID ); ... Parameters ... rect Specifies the spin button contro's size and position. It can be either a CRect object or a RECT structure Thus, I want to know when I can call CSpinButtonCtrl::Create. Or, do you have any idea to change the spin button contro's size?
|-|3llo Wo|2ld
Yes, with an Edit Control.
|-|3llo Wo|2ld
To change the buttons' size of a SpinButton, I need to use CSpinButtonCtrl::Create() function. Now I added a SpinButton control on my dialog, what shall I do next?
|-|3llo Wo|2ld