Kevin,

you should first create a COM class by using the menu:
tools/visual C++/COM/new ATL object
This will create all three classes in one step. 
(+ two new instantiated classes for your COM class)

Second,
you select the new interface class' context menu:
COM/New method, or COM/New property
By doing this, the attributes in your <<atlobject>> class
will be created automatically.

The way you've choosen is usually the 'workaround' to
convert a normal class into a COM class.

Best regards,
Volker

-----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 23:18
An: [EMAIL PROTECTED]
Betreff: (ROSE) Generating MIDL and COM C++ code all at once




From: Kevin Jiang

I need to generate Microsoft IDL code and COM C++ code from a logical
model. But what I have found so far is quite tedious. I can select a
logical class and create a new ATL class. This causes Rose to generate a
coclass (COM class) and an interface element in Rose. I need to do this one
class at a time.

But IDL element generated above is empty. I then need to click on each
attribute in the logical class, expose it as a COM property. Then Rose adds
a pair of get/put methods to the interface. I need to do this one attribute
at a time.

Is there a way in which I can select all classes and generate code all at
once? Or at least I can select all attributes in a class and have get/put
methods for them generated all at once?

Thanks for the help!

Kevin

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to