Click here to Skip to main content
16,005,734 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralMFC to ATL ActiveX port troubles Pin
greekgoddj27-Dec-04 22:06
greekgoddj27-Dec-04 22:06 
GeneralIHTMLWindow2::execScript() reports error "Invalid class string" Pin
Paul_buaa27-Dec-04 20:11
Paul_buaa27-Dec-04 20:11 
GeneralRe: IHTMLWindow2::execScript() reports error "Invalid class string" Pin
Vi229-Dec-04 22:12
Vi229-Dec-04 22:12 
GeneralIE Add-on and translate page Pin
Samsung24-Dec-04 16:15
Samsung24-Dec-04 16:15 
GeneralHelp me with OLE error ( RPC_E_CANTCALLOUT_ININPUTSYNCCALL ) Pin
User 21559723-Dec-04 5:12
User 21559723-Dec-04 5:12 
GeneralRe: Help me with OLE error ( RPC_E_CANTCALLOUT_ININPUTSYNCCALL ) Pin
Jörgen Sigvardsson23-Dec-04 7:00
Jörgen Sigvardsson23-Dec-04 7:00 
GeneralRe: Help me with OLE error ( RPC_E_CANTCALLOUT_ININPUTSYNCCALL ) Pin
User 21559723-Dec-04 22:22
User 21559723-Dec-04 22:22 
GeneralWrong vector ctor used with iterator Pin
Johann Gerell21-Dec-04 20:03
Johann Gerell21-Dec-04 20:03 
I have this iterator:
class CFileIterator : 
    public std::iterator<std::input_iterator_tag, const std::wstring>
{
public:
    CFileIterator(const std::wstring& pathWithWildcard);
    ...
};
which I instantiate like this:
CFileIterator it(SomePathWithWildcard), end;
I was hoping to be able to fill a vector using the iterator, like this:
std::vector<std::wstring> filenames(it, end);
but the compiler spits this into my face:
error C2664:
    'std::vector<_Ty>::vector(std::vector<_Ty>::size_type,const _Ty &,const _A &)'
    : cannot convert parameter 1 from 'CFileIterator' to 'std::vector<_Ty>::size_type'
Apparently, the compiler believes I want to call the vector ctor
vector(size_type, const Type&, const Allocator&);
instead of
template<class InputIterator>
vector(InputIterator, InputIterator, const Allocator&);
I use the aged and all but standards compliant Dinkumware STL bundled with Platform Builder 5 - it's probably the same that shipped with old Visual C++ 6.

Any ideas what I might try to get resolve the ctor call correctly?

--
The Blog: Bits and Pieces
GeneralRe: Wrong vector ctor used with iterator Pin
Stuart Dootson21-Dec-04 22:19
professionalStuart Dootson21-Dec-04 22:19 
GeneralRe: Wrong vector ctor used with iterator Pin
Johann Gerell22-Dec-04 0:32
Johann Gerell22-Dec-04 0:32 
GeneralRe: Wrong vector ctor used with iterator Pin
Stuart Dootson22-Dec-04 0:38
professionalStuart Dootson22-Dec-04 0:38 
GeneralRe: Wrong vector ctor used with iterator Pin
Johann Gerell22-Dec-04 0:49
Johann Gerell22-Dec-04 0:49 
Generalabout parameter of BSTR Pin
yingkou21-Dec-04 0:44
yingkou21-Dec-04 0:44 
GeneralRe: about parameter of BSTR Pin
Vi222-Dec-04 4:20
Vi222-Dec-04 4:20 
GeneralRe: about parameter of BSTR Pin
yingkou22-Dec-04 15:21
yingkou22-Dec-04 15:21 
GeneralRe: about parameter of BSTR Pin
yingkou22-Dec-04 15:28
yingkou22-Dec-04 15:28 
GeneralRe: about parameter of BSTR Pin
ThatsAlok22-Dec-04 17:21
ThatsAlok22-Dec-04 17:21 
GeneralRe: about parameter of BSTR Pin
yingkou22-Dec-04 18:34
yingkou22-Dec-04 18:34 
GeneralRe: about parameter of BSTR Pin
Vi223-Dec-04 2:34
Vi223-Dec-04 2:34 
GeneralRe: about parameter of BSTR Pin
yingkou23-Dec-04 12:22
yingkou23-Dec-04 12:22 
GeneralATL, WTL , CTL, MFC...whatever Pin
Mridang Agarwalla16-Dec-04 22:03
Mridang Agarwalla16-Dec-04 22:03 
GeneralRe: ATL, WTL , CTL, MFC...whatever Pin
ThatsAlok16-Dec-04 23:12
ThatsAlok16-Dec-04 23:12 
GeneralRe: ATL, WTL , CTL, MFC...whatever Pin
Alex Korchemniy17-Dec-04 13:31
Alex Korchemniy17-Dec-04 13:31 
GeneralRe: ATL, WTL , CTL, MFC...whatever Pin
Jörgen Sigvardsson18-Dec-04 14:25
Jörgen Sigvardsson18-Dec-04 14:25 
GeneralWTL / Why the associated window is not destroyed Pin
million6016-Dec-04 21:02
million6016-Dec-04 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.