Click here to Skip to main content
15,891,649 members
Home / Discussions / COM
   

COM

 
QuestionHow to make the ActiveX control full transparent in word Pin
liuguang1-Jun-08 17:01
liuguang1-Jun-08 17:01 
QuestionUsing IFileOpenDialog in C# Pin
jonesap530-May-08 5:49
jonesap530-May-08 5:49 
AnswerRe: Using IFileOpenDialog in C# Pin
Mike Dimmick2-Jun-08 7:09
Mike Dimmick2-Jun-08 7:09 
AnswerRe: Using IFileOpenDialog in C# Pin
capcom92319-Jul-11 22:25
capcom92319-Jul-11 22:25 
QuestionProblem with COM objects used to replicate data from lotus notes to SQL Pin
madhuGM29-May-08 6:06
madhuGM29-May-08 6:06 
Questionhow selective loading BHO in Chtmlview environment Pin
ftbk27-May-08 16:29
ftbk27-May-08 16:29 
Answer[Cross Post]Re: how selective loading BHO in Chtmlview environment Pin
Scott Dorman27-May-08 17:24
professionalScott Dorman27-May-08 17:24 
QuestionCompiling a VC++ 6.0 project with VC++ 7.1 problem: Error C2664 with CComPtr. Please help. Pin
Arris7426-May-08 3:19
Arris7426-May-08 3:19 
Hello dear COM 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 IDispatchConfused | :confused:
Indeed the project works fine with visual c++ 6.0.

I thank you very much for your help.
AnswerRe: Compiling a VC++ 6.0 project with VC++ 7.1 problem: Error C2664 with CComPtr. Please help. Pin
Mike Dimmick28-May-08 7:20
Mike Dimmick28-May-08 7:20 
QuestionOLE Compound Document - File Drag Drop Pin
sunil_963125-May-08 23:36
sunil_963125-May-08 23:36 
QuestionL"" Pin
bulg23-May-08 12:35
bulg23-May-08 12:35 
AnswerRe: L"" Pin
Indivara23-May-08 13:18
professionalIndivara23-May-08 13:18 
GeneralRe: L"" Pin
bulg23-May-08 13:49
bulg23-May-08 13:49 
AnswerRe: L"" Pin
Tony Richards23-May-08 13:22
Tony Richards23-May-08 13:22 
AnswerRe: L"" Pin
prasad_som24-May-08 23:52
prasad_som24-May-08 23:52 
AnswerRe: L"" Pin
Mike Dimmick28-May-08 7:21
Mike Dimmick28-May-08 7:21 
QuestionGetting linker problems with COleDispatchDriver Pin
swati1123-May-08 4:21
swati1123-May-08 4:21 
AnswerRe: Getting linker problems with COleDispatchDriver Pin
prasad_som25-May-08 0:06
prasad_som25-May-08 0:06 
AnswerRe: Getting linker problems with COleDispatchDriver Pin
Stephen Hewitt26-May-08 15:05
Stephen Hewitt26-May-08 15:05 
QuestionDrag & drop works in XP, fails in Vista - help? Pin
pauljlucas22-May-08 18:18
pauljlucas22-May-08 18:18 
Question[Message Deleted] Pin
pra84veen22-May-08 1:54
pra84veen22-May-08 1:54 
QuestionRe: COM PORT Pin
CPallini22-May-08 2:55
mveCPallini22-May-08 2:55 
Questionactivex control printing Pin
subramanyeswari20-May-08 20:23
subramanyeswari20-May-08 20:23 
Questionactivex control printing Pin
subramanyeswari20-May-08 0:16
subramanyeswari20-May-08 0:16 
AnswerRe: activex control printing Pin
subramanyeswari22-May-08 18:21
subramanyeswari22-May-08 18:21 

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.