Click here to Skip to main content
15,909,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEditBox & Dialog size Pin
Member 43482-Jun-00 7:10
Member 43482-Jun-00 7:10 
GeneralRe: EditBox & Dialog size Pin
Erik Thompson2-Jun-00 8:07
sitebuilderErik Thompson2-Jun-00 8:07 
GeneralObject Browser Implementation Pin
Chris2-Jun-00 6:21
Chris2-Jun-00 6:21 
GeneralResizing text to fit in rect Pin
Jason Phillips2-Jun-00 5:58
Jason Phillips2-Jun-00 5:58 
GeneralRe: Resizing text to fit in rect Pin
Mike Dunn2-Jun-00 15:32
Mike Dunn2-Jun-00 15:32 
GeneralSerial COM on MOXA cards when > COM9 and using Win32 API on NT Pin
GBO2-Jun-00 5:14
GBO2-Jun-00 5:14 
GeneralRe: Serial COM on MOXA cards when > COM9 and using Win32 API on NT Pin
GBO4-Jun-00 22:30
GBO4-Jun-00 22:30 
QuestionMonikers?? Pin
mahesh2-Jun-00 2:32
mahesh2-Jun-00 2:32 
General"Pluggable Protocols"?? Pin
mahesh1-Jun-00 10:50
mahesh1-Jun-00 10:50 
GeneralSetTimer doesn't work Pin
Member 117662571-Jun-00 7:03
Member 117662571-Jun-00 7:03 
GeneralRe: SetTimer doesn't work Pin
Dmitriy1-Jun-00 9:54
Dmitriy1-Jun-00 9:54 
GeneralRe: SetTimer doesn't work Pin
Member 117662571-Jun-00 11:52
Member 117662571-Jun-00 11:52 
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 

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.