Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetTimer doesn't work Pin
Dmitriy2-Jun-00 4:14
Dmitriy2-Jun-00 4:14 
GeneralRe: SetTimer doesn't work Pin
Member 117662572-Jun-00 6:12
Member 117662572-Jun-00 6:12 
GeneralRe: SetTimer doesn't work Pin
Dmitriy2-Jun-00 4:15
Dmitriy2-Jun-00 4:15 
GeneralRe: SetTimer doesn't work Pin
Andy Bantly2-Jun-00 8:54
Andy Bantly2-Jun-00 8:54 
GeneralRe: SetTimer doesn't work Pin
Member 117662572-Jun-00 9:35
Member 117662572-Jun-00 9:35 
GeneralRe: SetTimer doesn't work Pin
Paul Hooper6-Jun-00 18:10
Paul Hooper6-Jun-00 18:10 
GeneralRe: SetTimer doesn't work Pin
Stephen Kellett15-Jun-00 8:15
Stephen Kellett15-Jun-00 8:15 
QuestionWhy do enums vanish when my tlb file is imported using ClassWizard? Pin
yaku1-Jun-00 6:21
yaku1-Jun-00 6:21 
I have a VC 6.0 SP3 App Wizard generated dll. In the dll's type library I added an enum. The enumerated type is used as an argument in a ClassWizard Generated method. I just changed the return value to be my enum. The basic layout of the odl is below.

[
uuid(...),
helpstring(...),
version(1.0)
]
library MyLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");

typedef [uuid(...), v1_enum, helpstring(...)]
enum MyEnum
{
[helpstring(...)] val1 = 1,
[helpstring(...)] val2
}MyEnum;

[ uuid(...) ]
dispinterface MyInterface
{
properties:
//{{AFX_ODL_PROP(CMyInterface)
[id(1)] MyEnum TheType;
//}}AFX_ODL_PROP

methods:
//{{AFX_ODL_METHOD(CMyInterface)
//}}AFX_ODL_METHOD
};

//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};


When I compile the dll it compiles cleanly and I can see my enum using the OLE-COM object viewer, and if I use the dll in VB I also can see the enumeration, and if I #import the tlb file the enumerations are properly declared. The problem is when I try importing the dll into another appwizard generated exe using ClassWizard. When I do this all my interfaces are imported but ClassWizard ignores the enums I have declared. Is there anyway to get my enums to be declared in the ClassWizard generated class files or do I have to do it myself. Simply importing the tlb is not an option at this point because I would have to rewrite too much of the existing application I am using my dll in.

GeneralBuilding a DLL Pin
kaine1-Jun-00 6:11
kaine1-Jun-00 6:11 
GeneralRe: Building a DLL Pin
Chris Losinger6-Jun-00 5:12
professionalChris Losinger6-Jun-00 5:12 
QuestionHow to access an Explorer Bar from HTML? Pin
mahesh1-Jun-00 2:53
mahesh1-Jun-00 2:53 
GeneralPlease help with "A required resource" error Pin
Joep1-Jun-00 0:03
Joep1-Jun-00 0:03 
GeneralRe: Please help with Pin
Dmitriy1-Jun-00 6:27
Dmitriy1-Jun-00 6:27 
GeneralRe: Please help with Pin
Tim Deveaux1-Jun-00 6:58
Tim Deveaux1-Jun-00 6:58 
GeneralThanks, that's it! Pin
Joep1-Jun-00 9:04
Joep1-Jun-00 9:04 
GeneralRe: Thanks, that's it! Pin
Dmitriy1-Jun-00 9:42
Dmitriy1-Jun-00 9:42 
GeneralRe: Thanks, that's it! Pin
Tim Deveaux1-Jun-00 14:21
Tim Deveaux1-Jun-00 14:21 
GeneralMulti/Single selection in a ListBox Pin
magesh31-May-00 19:50
magesh31-May-00 19:50 
GeneralRe: Multi/Single selection in a ListBox Pin
Dmitriy1-Jun-00 6:32
Dmitriy1-Jun-00 6:32 
GeneralRe: Multi/Single selection in a ListBox Pin
magesh2-Jun-00 4:32
magesh2-Jun-00 4:32 
GeneralRe: Multi/Single selection in a ListBox Pin
Dmitriy2-Jun-00 5:36
Dmitriy2-Jun-00 5:36 
GeneralTLB and RGS Pin
rajendra31-May-00 19:45
rajendra31-May-00 19:45 
GeneralRe: TLB and RGS Pin
Alex Gorev1-Jun-00 5:45
Alex Gorev1-Jun-00 5:45 
Generaltab order within a CControlBar or CDialogbar Pin
nickinchina31-May-00 9:53
nickinchina31-May-00 9:53 
QuestionScroll bars in an Explorer Bar? Pin
mahesh31-May-00 5:30
mahesh31-May-00 5:30 

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.