Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. MIDL crazy behaviour

MIDL crazy behaviour

Scheduled Pinned Locked Moved The Lounge
debuggingsalesquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    obr
    wrote on last edited by
    #1

    I have IDL with 18interfaces and about 500 methods.(No one interface has more then 30 methods) Now if I add any new method to any of this interfaces, MIDL generate this in .tlh: #pragma start_map_region("y:\3r_appn\customer\manager\debug\custsrv3.tli") __declspec(implementation_key(1)) VARIANT_BOOL ITSSCustomerServer::GetError ( BSTR * pErrorText ); . . instead of this from previous ver: #include "y:\3r_appn\customer\manager\debug\custsrv3.tli" In .tli then #pragma implementation_key(1) inline VARIANT_BOOL ITSSCustomerServer::GetError ( BSTR * pErrorText ) { VARIANT_BOOL _result; HRESULT _hr = raw_GetError(pErrorText, &_result); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); return _result; } . . Instead of inline VARIANT_BOOL ITSSCustomerServer::GetError ( BSTR * pErrorText ) { VARIANT_BOOL _result; HRESULT _hr = raw_GetError(pErrorText, &_result); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); return _result; } . . OK, but now linker doesn know any of theese methods. Does anybody know why and how solve this? Thank You Jirka

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups