[Qt-interest] How to use coclassalias
Santhosh Y
santhosh at softjin.com
Tue Aug 3 11:16:59 CEST 2010
Hi,
Please see the attached file (/*aera2gui.idl*/) with this e-mail.
Following is the build error, while using a namespace class exported as
QaxType.
Please tell me how to solve this issue:
================Build
Error=================================================================================
1>msxml.idl
*1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(55) : error MIDL2025 :
syntax error : expecting ; or { near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(90) : error MIDL2025 :
syntax error : expecting ; or { near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(104) : error MIDL2025 :
syntax error : expecting ; or { near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(106) : error MIDL2025 :
syntax error : expecting ; near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(121) : error MIDL2025 :
syntax error : expecting a declarator or * near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(121) : error MIDL2025 :
syntax error : expecting ; near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(121) : error MIDL2026 :
cannot recover from earlier syntax errors; aborting compilation *
1>Couldn't open ..\..\obj_dbg\..\..\..\bin_dbg\aera2gui.tlb for read
1>Failed to register server!
1>Project : error PRJ0019: A tool returned an error code from
"C:\Qt\4.5.2\bin\idc.exe
c:\cygwin\home\JNK\aera2GUI\bin_dbg\Aera2GUI.exe /idl
..\..\obj_dbg\../../../bin_dbg/Aera2GUI.idl -version 1.0
1>Processing ..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl
1>Aera2GUI.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\ocidl.idl
1>ocidl.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\oleidl.idl
1>oleidl.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\objidl.idl
1>objidl.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\unknwn.idl
1>unknwn.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\wtypes.idl
1>wtypes.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\basetsd.h
1>basetsd.h
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\guiddef.h
1>guiddef.h
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\oaidl.idl
1>oaidl.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\servprov.idl
1>servprov.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\urlmon.idl
1>urlmon.idl
1>Processing C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\include\msxml.idl
1>msxml.idl
*1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(55) : error MIDL2025 :
syntax error : expecting ; or { near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(90) : error MIDL2025 :
syntax error : expecting ; or { near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(104) : error MIDL2025 :
syntax error : expecting ; or { near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(106) : error MIDL2025 :
syntax error : expecting ; near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(121) : error MIDL2025 :
syntax error : expecting a declarator or * near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(121) : error MIDL2025 :
syntax error : expecting ; near ":"
1>..\..\obj_dbg\..\..\..\bin_dbg\Aera2GUI.idl(121) : error MIDL2026 :
cannot recover from earlier syntax errors; aborting compilation *
1>Couldn't open ..\..\obj_dbg\..\..\..\bin_dbg\aera2gui.tlb for read
1>Failed to register server!
1>Build log was saved at
"file://c:\cygwin\home\JNK\aera2GUI\obj_dbg\BuildLog.htm"
1>Aera2GUI - 15 error(s), 48 warning(s)
========== Build: 0 succeeded, 1 failed, 9 up-to-date, 0 skipped ==========
On 8/3/2010 2:22 PM, Santhosh Y wrote:
> Hi,
>
> I read CoClassAlias in qaxserver, when there is a namespace issue.
>
>
> namespace YYY {
> class A
> {
> //How to declare this as a CoClass
> Q_CLASSINFO ("CoClassAlias", "YYY::A"); //*Please tell me is
> this the correct way to do it
> *};
>
> }
>
>
> // No namespace for class B
> // This is the active x class.
> class B {};
>
> QAXFACTORY_BEGIN("{740BCD44-3F69-4287-A7C5-369BC7966530}",
> "{ED4E37DD-BD72-4cb4-A148-AF2FEFA7B9E2}")
> QAXCLASS(B)
> QAXTYPE(YYY::A) *// It is not writing properly in to IDL file*; *Is
> it needed if I write CoClassAlias in the YYY::A*
> QAXFACTORY_END()
>
>
>
>
> --
> ----------------------------------------------------
> Y Santhosh Kumar -
> Senior Software Engineer,
> SoftJin Technologies Pvt Ltd,
> www.softjin.com
> ----------------------------------------------------
>
> Business Disclaimer
> ____________________________________________________________
> This e-mail message and any files transmitted with it are intended solely
> for the use of the individual or entity to which they are addressed. It
> may contain confidential, proprietary or legally privileged information.
> If you are not the intended recipient please be advised that you have
> received this message in error and any use is strictly prohibited. Please
> immediately delete it and all copies of it from your system, destroy any
> hard copies of it and notify the sender by return mail. You must not,
> directly or indirectly, use, disclose, distribute, print, or copy any part of
> this message if you are not the intended recipient.
> ___________________________________________________________
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
----------------------------------------------------
Y Santhosh Kumar -
Senior Software Engineer,
SoftJin Technologies Pvt Ltd,
www.softjin.com
----------------------------------------------------
Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for the use of the individual or entity to which they are addressed. It
may contain confidential, proprietary or legally privileged information.
If you are not the intended recipient please be advised that you have
received this message in error and any use is strictly prohibited. Please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender by return mail. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100803/4a3fc675/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aera2gui.idl
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100803/4a3fc675/attachment.pl
More information about the Qt-interest-old
mailing list