#924 missing include somewhere in objbase.h dependencies

WSL
closed
nobody
None
works-for-me
No_User_Response
2013-01-31
2006-04-03
No

If you include "objbase.h" in MSVC6 you can use the
function "CreateILockBytesOnHGlobal", that is declared
in ole2.h. In MinGW you have to explicitly include
"ole2.h" to use it.

Discussion

  • Danny Smith

    Danny Smith - 2006-09-05

    Logged In: YES
    user_id=11494

    #include <objbase.h>
    void foo()
    {
    HGLOBAL arg1;
    BOOL arg2;
    LPLOCKBYTES* arg3;
    CreateILockBytesOnHGlobal(arg1, arg2, arg3);
    }

    > gcc -H -S objbase_tst.c

    C:\develop\cvs\src\winsup\w32api>gcc -H -S objbase_tst.c
    .
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    bjbase.h
    ..
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pc.h
    ...
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    indows.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/s
    tdarg.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/_
    mingw.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/include/stdarg.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    indef.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    innt.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    inerror.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/s
    tring.h
    .......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/s
    tddef.h
    ........
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/include/stddef.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/b
    asetsd.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/p
    shpack4.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/p
    oppack.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    incon.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    inbase.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    ingdi.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    inuser.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    innls.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    inver.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    innetwk.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    inreg.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    insvc.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/c
    derr.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/d
    de.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/d
    deml.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/d
    lgs.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/i
    mm.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/l
    zexpand.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/m
    msystem.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/n
    b30.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pc.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    indows.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pcdce.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/b
    asetyps.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pcdcep.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pcnsi.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pcnterr.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/s
    hellapi.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/p
    shpack2.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/p
    oppack.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    inperf.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/c
    ommdlg.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    inspool.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    insock2.h
    ....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    le2.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    bjbase.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pc.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pcndr.h
    .......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pcnsip.h
    .......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    bjfwd.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/s
    tdlib.h
    .......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/s
    tddef.h
    ........
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/include/stddef.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    types.h
    .......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pc.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/u
    nknwn.h
    .......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/w
    types.h
    ........
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/r
    pc.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    bjidl.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/c
    guid.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    lectlid.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    leauto.h
    ......
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    aidl.h
    .....
    c:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../include/o
    leidl.h

     
  • Danny Smith

    Danny Smith - 2006-09-05
    • status: open --> pending-works-for-me
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-works-for-me --> closed-works-for-me
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-31
    • status: closed-works-for-me --> closed
    • resolution: --> works-for-me
    • category: --> No_User_Response
    • milestone: --> WSL
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks