Click here to Skip to main content
15,897,891 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: std::find_if and std::equal_to Pin
Michael Dunn12-Jun-08 14:54
sitebuilderMichael Dunn12-Jun-08 14:54 
GeneralRe: std::find_if and std::equal_to Pin
Stephen Hewitt12-Jun-08 18:16
Stephen Hewitt12-Jun-08 18:16 
GeneralRe: std::find_if and std::equal_to Pin
Member 469523115-Jun-08 23:19
Member 469523115-Jun-08 23:19 
QuestionHow to make the ActiveX control full transparent int word Pin
liuguang1-Jun-08 16:55
liuguang1-Jun-08 16:55 
AnswerRe: How to make the ActiveX control full transparent int word Pin
Ju@ncho4-Jul-08 4:28
Ju@ncho4-Jul-08 4:28 
GeneralRe: How to make the ActiveX control full transparent int word Pin
liuguang6-Jul-08 15:18
liuguang6-Jul-08 15:18 
QuestionMFC-STL Pin
Yokeldj29-May-08 0:41
Yokeldj29-May-08 0:41 
QuestionCompiling a VC++ 6.0 project with VC++ 7.1 problem: Error C2664 with CComPtr. Please help. Pin
Arris7426-May-08 6:33
Arris7426-May-08 6:33 
Hello dear ATL experts,

While trying to compile a VC++ 6.0 project with VC++ 7.1, I have got the following error :

d:\TESTINGONLY\dbstudio\DSIFormat.h(58) : error C2664: '_com_ptr_t<_IIID>::_com_ptr_t(int)' : cannot convert parameter 1 from 'ATL::CComPtr<T>' to 'int'
with
[
_IIID=_com_IIID<StdFormat::IStdDataFormatDisp,& _GUID_6c51b910_900b_11d0_9484_00a0c91110ed>
]
and
[
T=StdFormat::IStdDataFormatDisp
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

This error is caused by the following instanciation

CComPtr<StdFormat::IStdDataFormatDisp> m_fmtBinary;

StdFormat::IStdDataFormatDisp is located in a .tlh file.
I am a newbee with COM and I guess it is an interface generated by the compiler.

Here is its definition

struct __declspec(uuid("6c51b910-900b-11d0-9484-00a0c91110ed"))
IStdDataFormatDisp : IDataFormatDisp
{
//
// Property data
//

__declspec(property(get=GetType,put=PutType))
enum FormatType Type;
__declspec(property(get=GetFormat,put=PutFormat))
_bstr_t Format;
}

It derives from

struct __declspec(uuid("e675f3f0-91b5-11d0-9484-00a0c91110ed"))
IDataFormatDisp : IDispatch
{};

IDataFormatDisp does nothing so I wonder why not deriving IStdDataFormatDisp direcly from IDispatch
Indeed the project works fine with visual c++ 6.0.

I thank you very much for your help.
QuestionMaking use of an STL reducer application Pin
malte de moll24-May-08 6:24
malte de moll24-May-08 6:24 
AnswerRe: Making use of an STL reducer application Pin
Stuart Dootson29-May-08 21:37
professionalStuart Dootson29-May-08 21:37 
QuestionUsing events of JScript in ATL COM DLL? Pin
ritz123422-May-08 0:30
ritz123422-May-08 0:30 
QuestionCheckbox and Listbox question Pin
monsieur_jj21-May-08 22:32
monsieur_jj21-May-08 22:32 
AnswerRe: Checkbox and Listbox question Pin
monsieur_jj22-May-08 16:24
monsieur_jj22-May-08 16:24 
GeneralRe: Checkbox and Listbox question Pin
Stuart Dootson22-May-08 22:22
professionalStuart Dootson22-May-08 22:22 
GeneralRe: Checkbox and Listbox question Pin
monsieur_jj25-May-08 16:39
monsieur_jj25-May-08 16:39 
GeneralRe: Checkbox and Listbox question Pin
Stuart Dootson26-May-08 12:30
professionalStuart Dootson26-May-08 12:30 
QuestionCButton question Pin
monsieur_jj20-May-08 19:43
monsieur_jj20-May-08 19:43 
AnswerRe: CButton question Pin
Stuart Dootson20-May-08 20:27
professionalStuart Dootson20-May-08 20:27 
GeneralRe: CButton question Pin
monsieur_jj21-May-08 15:43
monsieur_jj21-May-08 15:43 
GeneralRe: CButton question Pin
Stuart Dootson21-May-08 20:53
professionalStuart Dootson21-May-08 20:53 
GeneralRe: CButton question Pin
monsieur_jj21-May-08 22:25
monsieur_jj21-May-08 22:25 
QuestionAbout DLL files and Comm control Pin
savitri19-May-08 23:10
savitri19-May-08 23:10 
AnswerRe: About DLL files and Comm control Pin
Cedric Moonen19-May-08 23:24
Cedric Moonen19-May-08 23:24 
GeneralRe: About DLL files and Comm control Pin
savitri20-May-08 0:15
savitri20-May-08 0:15 
GeneralRe: About DLL files and Comm control Pin
Cedric Moonen20-May-08 0:54
Cedric Moonen20-May-08 0:54 

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.