Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Dialog and Database Pin
Ravi Bhavnani24-Apr-02 8:09
professionalRavi Bhavnani24-Apr-02 8:09 
GeneralMS FlexGrid Control Pin
jhreich24-Apr-02 7:23
jhreich24-Apr-02 7:23 
GeneralRe: MS FlexGrid Control Pin
Bill Wilson24-Apr-02 10:28
Bill Wilson24-Apr-02 10:28 
GeneralOpen a menu in a menubar Pin
AmarB24-Apr-02 6:01
AmarB24-Apr-02 6:01 
GeneralRe: Open a menu in a menubar Pin
Nish Nishant24-Apr-02 7:10
sitebuilderNish Nishant24-Apr-02 7:10 
GeneralDate & Time For Different timezones Pin
24-Apr-02 5:53
suss24-Apr-02 5:53 
GeneralRe: Date & Time For Different timezones Pin
lucy24-Apr-02 6:06
lucy24-Apr-02 6:06 
GeneralREPOST: Attributed C++: How can I have a custom enum in idl Pin
Le centriste24-Apr-02 5:19
Le centriste24-Apr-02 5:19 
I am very puzzled by this one. Previously, when one wanted to have a custom enum in the typelib, he simply put it in the library section of the idl file:

library SomeLib
{
    typedef enum { someval } MyEnum;
}


and voila.

But with VC.NET, and attributed C++, how do you do that??? I tried the following:

[module .....];

[export, public]
typedef enum { someval } MyEnum;


but the declaration is not part of the typelib, since it is before the library statement in the generated idl file.

Anyone have tried this before? Is it still possible to do it? Do I have to switch back to non-attributed C++???




Michel

It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.

- TreeBeard
QuestionBest way to allocate large char arrays with malloc? Pin
Tommy Svensson24-Apr-02 4:12
Tommy Svensson24-Apr-02 4:12 
AnswerRe: Best way to allocate large char arrays with malloc? Pin
Joaquín M López Muñoz24-Apr-02 4:56
Joaquín M López Muñoz24-Apr-02 4:56 
GeneralRe: Best way to allocate large char arrays with malloc? Pin
Albert Pascual24-Apr-02 7:25
sitebuilderAlbert Pascual24-Apr-02 7:25 
AnswerRe: Best way to allocate large char arrays with malloc? Pin
Tim Smith24-Apr-02 5:12
Tim Smith24-Apr-02 5:12 
AnswerRe: Best way to allocate large char arrays with malloc? Pin
Chris Hafey24-Apr-02 16:55
Chris Hafey24-Apr-02 16:55 
GeneralRe: Best way to allocate large char arrays with malloc? Pin
Tommy Svensson24-Apr-02 22:21
Tommy Svensson24-Apr-02 22:21 
GeneralRe: Best way to allocate large char arrays with malloc? Pin
Chris Hafey27-Apr-02 8:44
Chris Hafey27-Apr-02 8:44 
GeneralVC7 MDE SHTML Syntax Coloring Pin
Jason Hooper24-Apr-02 4:06
Jason Hooper24-Apr-02 4:06 
QuestionHow to generate binary tree from math expression? Pin
ivex24-Apr-02 3:34
ivex24-Apr-02 3:34 
AnswerRe: How to generate binary tree from math expression? Pin
Ravi Bhavnani24-Apr-02 3:53
professionalRavi Bhavnani24-Apr-02 3:53 
AnswerRe: How to generate binary tree from math expression? Pin
Tim Smith24-Apr-02 4:12
Tim Smith24-Apr-02 4:12 
QuestionHow to express empty? Pin
Feng Qin24-Apr-02 3:29
Feng Qin24-Apr-02 3:29 
AnswerRe: How to express empty? Pin
Joaquín M López Muñoz24-Apr-02 4:13
Joaquín M López Muñoz24-Apr-02 4:13 
GeneralUsing CProgressCtrl (an idiot asks...) Pin
24-Apr-02 3:24
suss24-Apr-02 3:24 
GeneralRe: Using CProgressCtrl (an idiot asks...) Pin
Joaquín M López Muñoz24-Apr-02 3:31
Joaquín M López Muñoz24-Apr-02 3:31 
GeneralRe: Using CProgressCtrl (an idiot asks...) Pin
24-Apr-02 11:03
suss24-Apr-02 11:03 
GeneralRe: Using CProgressCtrl (an idiot asks...) Pin
Ravi Bhavnani24-Apr-02 3:35
professionalRavi Bhavnani24-Apr-02 3:35 

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.