????? MIDL ?????? ???? ?? ????? ????? ???? ?? ??????

?????? ????????? ?????? ?????????
???? ???????: 220137 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

?? ???? ?????? ????? ??????? ??? ?? ?????? ??? ????? ?????? ????? ?????? ??? ???? ?????? ??????.

?????

????? IDL ?????? ???? ????? ????? ?????? ??? ???????. ?????? ????????? ???????? Ole ??????? ???? ???? MIDL ?????? ????? ????? ??? ??????? ????? ?? ??? ? ?? ??????? ??????? ???? ????? ?? IDL ? ??? ??? ??? ?? ???? ?????? ????.

????

???? ??? ???? ????? ??????? ????? ??? ???????:
  • ?? ???? ???? ??????? ????? IDL ???? ??? ???, ???????? ???? ??? ????. ????? ?? ??????? ??????? IDL ??? IDL ???, ??????? ????? ??? ???????.
  • ???? ?? ?? ??? ????? ??? ?????? ?????? ?? ????? IDL ??? ????? ???? ????.
  • ????? ???? ?? ??????? ?? ????? ????? ?? ????? ????????. ??? ??? ????? ???? ???? ??? ?? ??????? ??????? ??? ?? ???? ???? ?? ???? ?????? ??? ????? ? ??? ??????? ? ???? ???. ????? ??? ??? ???? ??????? ?? ????? ???????.

?????

????? ??? ?????? ??? ???????.

??????? ????

??? ??? ??? IDL ????? ?????? ?????? ???? ????? ???? ????? ??? ?? ?????? ??? ????? MIDL Type Library ???? ????? ???? ?????? ??? ???? ?????? ????? ?????.

????? ????? ????? ???????

  1. ????? ??? IDL (name.idl). ???? ?????? ??????:
    // Test program to demonstrate capitalization bugs in MIDL 5.02.0235
    import "oaidl.idl";
    import "ocidl.idl";
    
       [
          uuid(DB9DDB0D-8834-11D1-8278-00A024A41CC8),
          dual,
          oleautomation,
       ]
       interface Interface1 : IDispatch {
          [ id(4), helpstring("") ]
          HRESULT OtherMethod (
             // This parm name will affect the case of the subsequent method name.
             [in] VARIANT_BOOL mYnAme );
       };
    
    
       [
          uuid(DB9DDB0C-8834-11D1-8278-00A024A41CC8),
          dual,
          oleautomation,
       ]
       interface Interface2 : IDispatch {
          [ id(5), helpstring("") ]
          // The method name gets changed.
          HRESULT MyName ();
       };
    
    
    [  uuid(2A216780-BC52-11D2-B94F-00C04F81B63A), version(1.0),
    ]
    library MIDLTST
    {
       importlib("stdole32.tlb");
    
       [
          uuid(65B5C950-883D-11D1-8278-00A024A41CC8),
          helpstring("Exercise various supported types.")
       ]
       coclass MIDLTest {
          [default] interface Interface1;
          interface Interface2;
       };
    };
    						
  2. ??????? ?????? ??????? ??????? MIDL ?????? "????? ???". ??????? name.idl MIDL ?????
  3. ???? ????? ??????? ???? ?? ??????? ?? OLEVIEW. ???? ?? ??? ????? OLEVIEW.
    // Generated .IDL file (by the OLE/COM Object Viewer)
    // 
    // typelib filename: <could not determine filename>
    
    [
      uuid(2A216780-BC52-11D2-B94F-00C04F81B63A),
      version(1.0)
    ]
    library MIDLTST
    {
        // TLib :     // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
        importlib("STDOLE2.TLB");
    
        // Forward declare all types defined in this typelib
        interface Interface1;
        interface Interface2;
    
        [
          uuid(65B5C950-883D-11D1-8278-00A024A41CC8),
          helpstring("Exercise various supported types.")
        ]
        coclass MIDLTest {
            [default] interface Interface1;
            interface Interface2;
        };
    
        [
          odl,
          uuid(DB9DDB0D-8834-11D1-8278-00A024A41CC8),
          dual,
          oleautomation
        ]
        interface Interface1 : IDispatch {
            [id(0x00000004)]
            HRESULT OtherMethod([in] VARIANT_BOOL mYnAme);
        };
    
        [
          odl,
          uuid(DB9DDB0C-8834-11D1-8278-00A024A41CC8),
          dual,
          oleautomation
        ]
        interface Interface2 : IDispatch {
            [id(0x00000005)]
            HRESULT mYnAme();
        };
    };
    
    						
  4. ?? ????? ??? ??????? MyName ?? Interface2 ??? ??? mYnAme.

???????

???? ???????: 220137 - ????? ??? ??????: 06/?????/1427 - ??????: 2.3
????? ???
  • Microsoft Platform Software Development Kit-January 2000 Edition, ????? ?????? ??:
    • Microsoft Windows NT Server 4.0 Standard Edition
    • Microsoft Windows NT Workstation 4.0 Developer Edition
????? ??????: 
kbmt kbbug kbpending KB220137 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????220137

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com