Re: Const from IDL-File



On 30 июн, 12:17, babak.pou...@xxxxxx wrote:
Hallo,

I have defined a "const int" in an idl file( const int
DISPID_WAITINGFORTRG = 1;).
I Would like to use it in a c++ file, but this Sympol is not available
in the tlh file which was build after import of the com dll.


There is no room (except TKIND_ENUM) to storage "const"s in TLB file.
Use "enum" instead "const". OR use "inject_statement" of #import to
bring this constant into C++ files.
.



Relevant Pages

  • Const from IDL-File
    ... I have defined a "const int" in an idl file(const int ... in the tlh file which was build after import of the com dll. ...
    (microsoft.public.vc.atl)
  • Re: Are there any 8051 C++ compilers ?
    ... Bjarne Stroustrup wrote: ... >>would support it) remove the instance of storage if the address isn't taken. ... From this input file: ... const int seven = 7; ...
    (comp.arch.embedded)
  • Re: declaration vs. defintion
    ... > identifier being defined ?, ... You shouldn't think of it in terms of storage being allocated. ... const int Five = 5; ... I believe the one-definition rule goes something like this: ...
    (alt.comp.lang.learn.c-cpp)