Ignore:
Timestamp:
Nov 16, 2005, 8:36:46 PM (20 years ago)
Author:
dmik
Message:

Transferred Qt for OS/2 version 3.3.1-rc5 sources from the CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tools/qlibrary.cpp

    r7 r8  
    1 //depot/qt/3/src/tools/qlibrary.cpp#9 - edit change 123005 (text)
    21/****************************************************************************
    32** $Id$
     
    123122    QLibrary lib( "mylib.dll" );
    124123    \endcode
    125     on Windows, and
     124    on Windows and OS/2, and
    126125    \code
    127126    QLibrary lib( "libmylib.so" );
     
    178177    with a C++ compiler. On Windows you also have to explicitly export
    179178    the function from the DLL using the \c {__declspec(dllexport)}
    180     compiler directive.
     179    compiler directive. 
    181180
    182181    \code
     
    197196    \endcode
    198197
     198    On OS/2 you should create a .DEF file that describes what functions are
     199    exported and use it when linking your DLL (@@TODO: add more info and an
     200    example).
     201   
    199202    On Darwin and Mac OS X this function uses code from dlcompat, part of the
    200203    OpenDarwin project.
     
    385388    QString str = lib.library();
    386389    \endcode
    387     will set \e str to "mylib.dll" on Windows, and "libmylib.so" on Linux.
     390    will set \e str to "mylib.dll" on Windows and OS/2, and "libmylib.so" on Linux.
    388391*/
    389392QString QLibrary::library() const
     
    394397    QString filename = libfile;
    395398
    396 #if defined(Q_WS_WIN)
     399#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
    397400    if ( filename.findRev( '.' ) <= filename.findRev( '/' ) )
    398401        filename += ".dll";
Note: See TracChangeset for help on using the changeset viewer.