Article View: alt.comp.programming
Article #9Passing UDT in Visual Studio 7
From: Satya Das
Date: Fri, 25 Feb 2005 09:34
Date: Fri, 25 Feb 2005 09:34
17 lines
1549 bytes
1549 bytes
Hi,
I noticed that no IDL file is created in a COM project in Visual Studio
7 (VS 2003). All IDL constructs go into .h and .cpp files and when the
program is compiled an IDL is generated on the fly and compiled and that
creates the .TLB file. I want to know how you can define any UDT (such as
struct, enum, etc.) in the COM library. In earlier versions the syntax was:
#include "UDT.h" /* pretend that UDT.h defines struct _tagUDT. */
typedef [uuid(7C2997C6-C28D-479a-AF1C-27E96E9FD0CC)] struct _tagUDT UDT;
I tried many possible ways to do this in VS 2003 but failed to see the
defined struct in .TLB.
Any pointer is welcome.
Thanks,
satya
Technical Details
Message-ID:
<3889p1F5klmldU1@individual.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10dce5,b73db5c2703683d5,start X-Google-Thread: fcea4,b73db5c2703683d5,start X-Google-Thread: 1076d4,b73db5c2703683d5,start X-Google-Attributes: gid10dce5,gidfcea4,gid1076d4,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Satya Das" <satyaranjandas77@yahoo.com> Newsgroups: alt.comp.programming,be.comp.programming,comp.windows.misc Subject: Passing UDT in Visual Studio 7 Date: Fri, 25 Feb 2005 15:04:23 +0530 Lines: 19 Message-ID: <3889p1F5klmldU1@individual.net> Reply-To: "Satya Das" <satyaranjandas77@yahoo.com> X-Trace: individual.net kpPR9EC/TbDZbiMHEIIMxwzkKwXdwtMaCgvcmFoTIrA1nLZwom X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441