X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=activex%2Futils.h;h=327225d98e37f8bc589995a8a395c4a8011cce4a;hb=d1d351f89f0be4368c5b854a50b85b76a115f5d2;hp=f63c387aaae1fda7522128046aa03a57ae0ee0df;hpb=1b75d79ed2680352f5ed1f67d57e9c205dd73162;p=vlc diff --git a/activex/utils.h b/activex/utils.h index f63c387aaa..327225d98e 100644 --- a/activex/utils.h +++ b/activex/utils.h @@ -1,7 +1,7 @@ /***************************************************************************** * utils.h: ActiveX control for VLC ***************************************************************************** - * Copyright (C) 2005 VideoLAN + * Copyright (C) 2005 the VideoLAN team * * Authors: Damien Fouilleul * @@ -28,14 +28,17 @@ #include // utilities -extern char *CStrFromBSTR(int codePage, BSTR bstr); -extern BSTR BSTRFromCStr(int codePage, const char *s); +extern char *CStrFromBSTR(UINT codePage, BSTR bstr); +extern BSTR BSTRFromCStr(UINT codePage, LPCSTR s); // properties extern HRESULT GetObjectProperty(LPUNKNOWN object, DISPID dispID, VARIANT& v); // properties extern HDC CreateDevDC(DVTARGETDEVICE *ptd); +extern void DPFromHimetric(HDC hdc, LPPOINT pt, int count); +extern void HimetricFromDP(HDC hdc, LPPOINT pt, int count); + // enumeration template class VLCEnum : IUnknown @@ -60,7 +63,6 @@ public: STDMETHODIMP Reset(void); // cloning is implemented by subclasses and must use copy constructor //STDMETHODIMP Clone(VLCEnum **); - // cloning is implemented by subclasses and must use copy constructor typedef void (*retainer)(T); @@ -100,6 +102,7 @@ VLCEnum& VLCEnum::operator=(const VLCEnum &e) this->_riid = e._riid; this->_v = e._v; this->_i = e._i; + return this; }; template