Changeset 104


Ignore:
Timestamp:
Oct 2, 2023, 11:34:35 PM (23 months ago)
Author:
gyoung
Message:

Remaining changes from merge with Lars 2.9 branch

Location:
trunk
Files:
1 deleted
96 edited
20 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/JPGPROC/source/gbmsrc/gbm.def

    r2 r104  
    11LIBRARY GBM INITINSTANCE TERMINSTANCE
    22
    3 DATA MULTIPLE NONSHARED READWRITE
    4 
    5 CODE PRELOAD EXECUTEREAD
     3DATA MULTIPLE NONSHARED
    64
    75EXPORTS
  • trunk/JPGPROC/source/gbmsrc/os2/gbm.def

    r2 r104  
    11LIBRARY GBM INITINSTANCE TERMINSTANCE
    22
    3 DATA MULTIPLE NONSHARED READWRITE
    4 
    5 CODE PRELOAD EXECUTEREAD
     3DATA MULTIPLE NONSHARED
    64
    75EXPORTS
  • trunk/JPGPROC/source/jpegio.def

    r2 r104  
    11;/*
    2 ; * Copyright (c) Chris Wohlgemuth 2002 
     2; * Copyright (c) Chris Wohlgemuth 2002
    33; * All rights reserved.
    44; *
     
    3131; */
    3232LIBRARY JPEGIO INITINSTANCE TERMINSTANCE
    33 DESCRIPTION '$@#(C) C. Wohlgemuth 2002:#@##1## 13.07.2002 15:17:00      My ;-)  : :::0::@@ JPEG IO procedure V0.1.0' 
     33DESCRIPTION '$@#(C) C. Wohlgemuth 2002:#@##1## 13.07.2002 15:17:00      My ;-)  : :::0::@@ JPEG IO procedure V0.1.0'
    3434DATA MULTIPLE NONSHARED
    3535SEGMENTS
    3636   shardata CLASS 'DATA' SHARED
    37 HEAPSIZE 0
    38 BASE = 0x1B130000
    39 IMPORTS
    4037EXPORTS
    41    IOProc_Entry    @1
     38   IOProc_Entry
    4239
  • trunk/JPGPROC/source/jpgfunc.c

    r2 r104  
    11/*
    2  * Copyright (c) Chris Wohlgemuth 2002 
     2 * Copyright (c) Chris Wohlgemuth 2002
    33 * All rights reserved.
    44 *
     
    3535/************************************************************************/
    3636
    37 #define INCL_32                          * force 32 bit compile
     37#define INCL_32                         /* force 32 bit compile */
    3838#define INCL_GPIBITMAPS
    3939#define INCL_DOSFILEMGR
     
    4242#define INCL_WIN
    4343#define INCL_GPI
    44 #define INCL_PM                         /* force 32 bit compile */
     44#define INCL_PM
    4545
    4646/************************************************************************/
     
    6262 * Caller assures that no two instances execute this code
    6363 * at the same time.
    64  * 00) Change name to _DLL_InitTerm and use the linkage pragma.
    6564 *************************************************************************************/
    6665/*************************************************************************************
     
    7170HMODULE hModuleHandle;
    7271
    73 #pragma linkage (_DLL_InitTerm, system)
    74 //#pragma checkout (suspend)       /* Prevent unreferenced parameter messages */
    75 ULONG _DLL_InitTerm (ULONG hModHandle, ULONG fTerm/*, BOOL FirstInstance*/)
     72
     73ULONG APIENTRY _DLL_InitTerm(ULONG modhandle,ULONG flag);
     74int _CRT_init(void);
     75void _CRT_term(void);
     76
     77ULONG APIENTRY _DLL_InitTerm (ULONG hModHandle, ULONG fTerm)
    7678{
    7779   hModuleHandle = hModHandle;  /* Remember for NLS lookup */
     
    8082         return (0L);
    8183   } /* endif */
     84   else {
     85      _CRT_term();
     86   }
    8287
    8388   return (1L);                 /* Success */
    8489} /* DLL_InitTerm */
    85 //#pragma checkout (resume)
    8690
    8791
  • trunk/classes/c/c_audio/cwaudio.c

    r93 r104  
     1
     2/*
     3 *  This file was generated by the SOM Compiler.
     4 *  Generated using:
     5 *     SOM incremental update: 2.47
     6 */
     7
    18
    29/*
     
    664671 * The prototype for cwaudio_cwmmSetTrackInfo was replaced by the following prototype:
    665672 */
     673
     674/*
     675 * SOM_Scope BOOL  SOMLINK cwaudio_cwmmSetTrackInfo(MMAudio *somSelf,
     676 *                                                  char* chrString,
     677 *                                                  ULONG ulValue,
     678 *                                                  int iWhich)
     679 */
     680
     681/*
     682 * The prototype for cwaudio_cwmmSetTrackInfo was replaced by the following prototype:
     683 */
    666684SOM_Scope BOOL  SOMLINK cwaudio_cwmmSetTrackInfo(MMAudio *somSelf,
    667685                                                 char* chrString,
    668686                                                 ULONG ulValue,
    669                                                  int iWhich)
     687                                                 ULONG iWhich)
    670688{
    671689  ULONG ulError;
     
    939957/* successful completion.                                */
    940958/*!!******************************************************/
     959
     960/*
     961 * SOM_Scope ULONG  SOMLINK cwaudio_cwmmQueryTrackInfo(MMAudio *somSelf,
     962 *                                                     PSZ chrString,
     963 *                                                     ULONG ulSize,
     964 *                                                     int iWhich)
     965 */
     966
     967/*
     968 * The prototype for cwaudio_cwmmQueryTrackInfo was replaced by the following prototype:
     969 */
    941970SOM_Scope ULONG  SOMLINK cwaudio_cwmmQueryTrackInfo(MMAudio *somSelf,
    942971                                                    PSZ chrString,
    943972                                                    ULONG ulSize,
    944                                                     int iWhich)
     973                                                    ULONG iWhich)
    945974{
    946975  MMAudioData *somThis = MMAudioGetData(somSelf);
  • trunk/classes/c/c_audio/cwcdtrack.c

    r2 r104  
     1
     2/*
     3 *  This file was generated by the SOM Compiler.
     4 *  Generated using:
     5 *     SOM incremental update: 2.47
     6 */
     7
    18
    29/*
     
    207214    MMCDTrackMethodDebug("MMCDTrack","cwcdtrack_wpFilterPopupMenu");
    208215
    209     return CTXT_SETTINGS | CTXT_HELP;
     216    return CTXT_SETTINGS | CTXT_HELP | CTXT_DELETE;
    210217
    211218    /* We don't want to have XFolder or WPS-Wizard menus here. These are useless
     
    281288 * The prototype for cwcdtrack_cwmmQueryTrackInfo was replaced by the following prototype:
    282289 */
     290
     291/*
     292 * SOM_Scope ULONG  SOMLINK cwcdtrack_cwmmQueryTrackInfo(MMCDTrack *somSelf,
     293 *                                                       PSZ chrString,
     294 *                                                       ULONG ulSize,
     295 *                                                       int iWhich)
     296 */
     297
     298/*
     299 * The prototype for cwcdtrack_cwmmQueryTrackInfo was replaced by the following prototype:
     300 */
    283301SOM_Scope ULONG  SOMLINK cwcdtrack_cwmmQueryTrackInfo(MMCDTrack *somSelf,
    284302                                                      PSZ chrString,
    285303                                                      ULONG ulSize,
    286                                                       int iWhich)
     304                                                      ULONG iWhich)
    287305{
    288306    MMCDTrackData *somThis = MMCDTrackGetData(somSelf);
  • trunk/classes/c/c_audio/cwmp3.c

    r72 r104  
     1
     2/*
     3 *  This file was generated by the SOM Compiler.
     4 *  Generated using:
     5 *     SOM incremental update: 2.47
     6 */
     7
     8
    19/*
    210 * (C) Chris Wohlgemuth 2002-2004
     
    853861 *    cwmmAddTrackNamePage      : override;
    854862 */
     863
     864/*
     865 * SOM_Scope ULONG  SOMLINK cwmp3_cwmmQueryTrackInfo(MMMP3 *somSelf,
     866 *                                                   PSZ chrString,
     867 *                                                   ULONG ulSize,
     868 *                                                   int iWhich)
     869 */
     870
     871/*
     872 * The prototype for cwmp3_cwmmQueryTrackInfo was replaced by the following prototype:
     873 */
    855874SOM_Scope ULONG  SOMLINK cwmp3_cwmmQueryTrackInfo(MMMP3 *somSelf,
    856875                                                  PSZ chrString,
    857876                                                  ULONG ulSize,
    858                                                   int iWhich)
     877                                                  ULONG iWhich)
    859878{
    860879  somId id;
  • trunk/classes/c/c_audio/cwogg.c

    r2 r104  
     1
     2/*
     3 *  This file was generated by the SOM Compiler.
     4 *  Generated using:
     5 *     SOM incremental update: 2.47
     6 */
     7
     8
    19/*
    210 * (C) Chris Wohlgemuth 2002-2004
     
    8896 * The prototype for cwogg_cwmmQueryTrackInfo was replaced by the following prototype:
    8997 */
     98
     99/*
     100 * SOM_Scope ULONG  SOMLINK cwogg_cwmmQueryTrackInfo(MMOGG *somSelf,
     101 *                                                   PSZ chrString,
     102 *                                                   ULONG ulSize,
     103 *                                                   int iWhich)
     104 */
     105
     106/*
     107 * The prototype for cwogg_cwmmQueryTrackInfo was replaced by the following prototype:
     108 */
    90109SOM_Scope ULONG  SOMLINK cwogg_cwmmQueryTrackInfo(MMOGG *somSelf,
    91110                                                  PSZ chrString,
    92111                                                  ULONG ulSize,
    93                                                   int iWhich)
     112                                                  ULONG iWhich)
    94113{
    95114  /*     MMOGGData *somThis = MMOGGGetData(somSelf); */
  • trunk/classes/c/c_common/except.c

    r41 r104  
    130130   USHORT  SS;
    131131} DbgBuf;
    132 /*-------------------------------------*/
    133 APIRET APIENTRY DOSQUERYMODFROMEIP( HMODULE *phMod,
    134                                     ULONG *pObjNum,
    135                                     ULONG BuffLen,
    136                                     PCHAR pBuff,
    137                                     ULONG *pOffset,
    138                                     PVOID Address );
    139 /*APIRET APIENTRY DosQueryModFromEIP( HMODULE *phMod,
    140                                     ULONG *pObjNum,
    141                                     ULONG BuffLen,
    142                                     PCHAR pBuff,
    143                                     ULONG *pOffset,
    144                                     PVOID Address );*/
    145 
    146 /*-------------------------------------*/
     132
    147133/* CW
    148134#define DBG_O_OBJMTE       0x10000000L*/
     
    459445
    460446  return 'c';
    461 } 
     447}
    462448
    463449ULONG _System excHandler(PEXCEPTIONREPORTRECORD pERepRec,
     
    515501{
    516502  ULONG rc = XCPT_CONTINUE_SEARCH;
    517  
     503
    518504  if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND)
    519505    return (XCPT_CONTINUE_SEARCH);
     
    522508  if (pERepRec->fHandlerFlags & EH_NESTED_CALL)
    523509    return (XCPT_CONTINUE_SEARCH);
    524  
     510
    525511  if ((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION)
    526512    {
     
    655641          }
    656642#endif
    657        
     643
    658644        fAlreadyTrapped = TRUE;
    659645        /* end  John Currier's recursion prevention */
     
    663649            (Version[0]>=20) &&
    664650            (Version[1]>=10) ) {
    665           /* version must be over 2.1 for DOSQUERYMODFROMEIP */
     651          /* version must be over 2.1 for DosQueryModFromEIP */
    666652          fprintf(hTrap,"OS/2 Version %d.%d\n",Version[0]/10,Version[1]);
    667           rc=DOSQUERYMODFROMEIP( &hMod, &ObjNum, CCHMAXPATH,
     653          rc=DosQueryModFromEIP( &hMod, &ObjNum, CCHMAXPATH,
    668654                                 Name, &Offset, pERepRec->ExceptionAddress);
    669655            if (rc==0) {
     
    814800     if ((AllocationFlags&PAG_EXECUTE)&&
    815801         (AllocationFlags&PAG_BASE)) {
    816         rc=DOSQUERYMODFROMEIP( &hMod, &ObjNum, CCHMAXPATH,
     802        rc=DosQueryModFromEIP( &hMod, &ObjNum, CCHMAXPATH,
    817803                              Name, &Offset, BaseAddress);
    818804        if (rc==0) {
     
    10381024            break; /* avoid infinite loops */
    10391025         } else {
    1040             rc = DOSQUERYMODFROMEIP(&hMod, &ObjNum, sizeof(Name),
     1026            rc = DosQueryModFromEIP(&hMod, &ObjNum, sizeof(Name),
    10411027                                    Name, &Offset, (PVOID)RetAddr);
    10421028            if (rc == NO_ERROR && ObjNum != -1)
     
    11811167}
    11821168
    1183 #include <exe.h>
    11841169#include <newexe.h>
    11851170#define  FOR_EXEHDR  1  /* avoid define conflicts between newexe.h and exe386.h */
     
    18351820               do {
    18361821                  read(fh,(void *)&FirstLine,sizeof(FirstLine));
    1837    
     1822
    18381823                  if (FirstLine.LineNum!=0) {
    18391824                     fprintf(hTrap,"Missing Line table information\n");
     
    18641849                        }
    18651850                        break;
    1866    
     1851
    18671852                     case 1:
    18681853                        lseek(fh, sizeof(struct linlist_rec), SEEK_CUR);
    18691854                        break;
    1870    
     1855
    18711856                     case 2:
    18721857                        lseek(fh, sizeof(struct linsourcelist_rec), SEEK_CUR);
    18731858                        break;
    1874    
     1859
    18751860                     case 3:
    18761861                        lseek(fh, sizeof(struct filenam_rec), SEEK_CUR);
    18771862                        break;
    1878    
     1863
    18791864                     case 4:
    18801865                        lseek(fh, sizeof(struct pathtab_rec), SEEK_CUR);
    18811866                        break;
    1882    
     1867
    18831868                  }
    18841869               }
  • trunk/classes/c/c_common/helper.c

    r57 r104  
    1919/*
    2020 * If you need another license for your prject/product contact me at
    21  * 
     21 *
    2222 * http://www.os2world.com/cdwriting
    2323 * http://www.geocities.com/SiliconValley/Sector/5785/
    2424 */
     25#define INCL_BASE
    2526#define INCL_WIN
    2627#define INCL_DOS
     
    4142
    4243#ifndef BS_NOTEBOOKBUTTON
    43 #define BS_NOTEBOOKBUTTON 8L   /* Warp 4 notebook style */ 
     44#define BS_NOTEBOOKBUTTON 8L   /* Warp 4 notebook style */
    4445#endif
    4546
     
    6667
    6768
    68   memset(&pDetails, 0, sizeof(pDetails)); 
     69  memset(&pDetails, 0, sizeof(pDetails));
    6970  pDetails.Length          = sizeof(PROGDETAILS);
    7071  pDetails.progt.progc     = PROG_DEFAULT;
     
    8182  }
    8283  pDetails.pszExecutable   = wrapperExe;
    83  
     84
    8485  pDetails.pszEnvironment  = NULLHANDLE;
    8586  pDetails.swpInitial.fl   = SWP_ACTIVATE|SWP_ZORDER; /* window positioning */
     
    9293  //  pDetails.swpInitial.ulReserved1      = 0;
    9394  //  pDetails.swpInitial.ulReserved2      = 0;
    94  
     95
    9596  /* Create an object window which will process the WM_APPTERMINATE message. While processing of this
    9697   message the view item (see below) will be removed from the inuse list thus removing the inuse emphasis. */
     
    150151  if(!hModule)
    151152    {
    152      
     153
    153154      if(queryModuleHandle())
    154155        {
     
    170171              if(NO_ERROR!=DosScanEnv("LANG", &pszLang))
    171172                break;
    172              
     173
    173174              /* Skip leading spaces */
    174175              chrPtr=pszLang;
    175176              while(*chrPtr==' ')
    176177                chrPtr++;
    177              
     178
    178179              /* Check if value seems to be valid. The var must be something like xx_XX thus length is 5 */
    179180              if(strlen(chrPtr)<5)
    180181                break;
    181              
    182               /* Extract the first two chars */       
     182
     183              /* Extract the first two chars */
    183184              sprintf(buf, RESDLLNAME, chrPtr[0], chrPtr[1]);
    184185              strcat(resDLLPath,buf);
     
    187188              //  HlpWriteToTrapLog(resDLLPath);
    188189              //  HlpWriteToTrapLog("\n");
    189        
     190
    190191              rc=DosLoadModule(buf,sizeof(buf), resDLLPath, &hModule);
    191192              if(rc==NO_ERROR)
    192193                break;
    193        
     194
    194195              /* Insert message in Logfile */
    195196              //  writeLog("Ressource-DLL for the current countrycode not found. Trying to load default one (CDFLD001.DLL).\n");
    196        
     197
    197198              /* NLS DLL not found. Try to load default */
    198199              found=strrchr(resDLLPath,'\\');
    199200              if(!found)
    200201                break;
    201              
     202
    202203              *found=0;
    203204
     
    206207              //   HlpWriteToTrapLog(resDLLPath);
    207208              //   HlpWriteToTrapLog("\n");
    208              
     209
    209210              rc=DosLoadModule(buf,sizeof(buf), resDLLPath, &hModule);
    210211              if(rc!=NO_ERROR) {
     
    215216                //writeLog("Ressource DLL loaded.\n");
    216217              }
    217              
     218
    218219              break;
    219220            }while(TRUE);
     
    223224 }
    224225
    225 /*APIRET APIENTRY DosQueryModFromEIP( HMODULE *phMod,
    226                                     ULONG *pObjNum,
    227                                     ULONG BuffLen,
    228                                     PCHAR pBuff,
    229                                     ULONG *pOffset,
    230                                     PVOID Address );*/
    231 
    232226 /* Get the HMODULE of the MM class DLL */
    233227HMODULE queryModuleHandle(void)
     
    242236      ULONG ulObj, ulBufLen, ulOffset;
    243237      char thePath[CCHMAXPATH];
    244      
     238
    245239      if(DosQueryModFromEIP( &hModule,
    246240                             &ulObj,
     
    248242                             thePath,
    249243                             &ulOffset,
    250                              (PVOID)queryModuleHandle )!=NO_ERROR) {
     244                             (ULONG)queryModuleHandle )!=NO_ERROR) {
    251245        SysWriteToTrapLog("Can't get module handle for CWMM class DLL!\n");
    252246        hModule=0;
     
    291285      strncpy(classDLLPath,moduleName, sizeof(classDLLPath));
    292286      classDLLPath[sizeof(classDLLPath)-1]=0;
    293      
     287
    294288      /* Get install dir */
    295289      strncpy(chrInstallDir,moduleName, sizeof(chrInstallDir));
     
    303297        strncpy(classDLLPath,chrInstallDir, sizeof(classDLLPath));
    304298        classDLLPath[sizeof(classDLLPath)-1]=0;
    305        
     299
    306300        /* Get install dir */
    307301        if((chrPtr=strrchr(chrInstallDir,'\\'))!=NULLHANDLE)
     
    352346    HENUM henum;
    353347    HWND hwnd;
    354    
     348
    355349    /* Move the default notebook buttons */
    356350    if((henum=WinBeginEnumWindows(hwndDlg))!=NULLHANDLE) {
     
    396390    {
    397391      snprintf(setup, sizeof(setup), "LOCATOR=%s;%s", chrUrl, "OPEN=DEFAULT");
    398       WinCreateObject("WPUrl","tempUrl", setup, tempDir, 
     392      WinCreateObject("WPUrl","tempUrl", setup, tempDir,
    399393                      CO_UPDATEIFEXISTS);
    400394        /* WinDestroyObject(hObject); Don't use it, blocks PM */
     
    402396}
    403397
    404 /* This function checks if the given file exists */ 
     398/* This function checks if the given file exists */
    405399ULONG checkFileSize(char* chrFileName)
    406400{
     
    410404  if(stat(chrFileName , &statBuf)==-1)
    411405    return 0;
    412  
     406
    413407  return statBuf.st_size;
    414408}
  • trunk/classes/c/c_mm/mmfolder.c

    r71 r104  
    1717 * along with this program; see the file COPYING.  If not, write to
    1818 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    19  */         
     19 */
    2020/*
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    2828/*
    2929 *  This file was generated by the SOM Compiler and Emitter Framework.
    30  *  Generated using: 
     30 *  Generated using:
    3131 *      SOM Emitter emitctm: 2.42
    3232 */
     
    7777  somId mySomId;
    7878  static SOMClass * mWPFolderClass=NULLHANDLE;
    79  
     79
    8080  if(!mWPFolderClass) {
    8181    if((mySomId=somIdFromString("WPFolder"))!=NULLHANDLE) {
     
    107107  somId mySomId;
    108108  static SOMClass *mWPImgClass=NULL;
    109  
     109
    110110  if(!mWPImgClass) {
    111111    if((mySomId=somIdFromString("MMBitmap"))!=NULLHANDLE) {
     
    117117}
    118118
    119 MRESULT EXPENTRY mmFolderContainerProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 
     119MRESULT EXPENTRY mmFolderContainerProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    120120{
    121121  HWND hwndStore;
     
    136136
    137137        if(pCnrInfo) {
    138           //      writeLog("flWindowAttr: 0x%x, Mask: 0x%x, cxTreeIndent: %d, cyLineSpacing: %d\n", 
     138          //      writeLog("flWindowAttr: 0x%x, Mask: 0x%x, cxTreeIndent: %d, cyLineSpacing: %d\n",
    139139          //       pCnrInfo->flWindowAttr, LONGFROMMP(mp2), pCnrInfo->cxTreeIndent, pCnrInfo->cyLineSpacing);
    140140
     
    147147                somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER);
    148148                if(somIsObj(somSelf)) {
    149                   MMFolderData *somThis = MMFolderGetData(somSelf); 
    150                  
     149                  MMFolderData *somThis = MMFolderGetData(somSelf);
     150
    151151                  pCnrInfo->flWindowAttr&=~CA_DRAWICON;
    152152                  pCnrInfo->flWindowAttr|=CA_DRAWBITMAP|CA_OWNERDRAW;
    153153                  pCnrInfo->slBitmapOrIcon.cx=_ulCurrentSize;
    154154                  pCnrInfo->slBitmapOrIcon.cy=_ulCurrentSize;
    155                  
     155
    156156                  mp2=MPFROMLONG(LONGFROMMP(mp2)|CMA_SLBITMAPORICON|CMA_FLWINDOWATTR);
    157157                }
     
    183183          somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER);
    184184          if(somIsObj(somSelf)) {
    185             MMFolderData *somThis = MMFolderGetData(somSelf); 
     185            MMFolderData *somThis = MMFolderGetData(somSelf);
    186186            if(_oldContainerProc)
    187187              return _oldContainerProc(hwnd, msg, mp1, mp2);
    188188          }
    189189        }
    190     }   
     190    }
    191191  return WinDefWindowProc(hwnd, msg, mp1, mp2);
    192192}
     
    239239  HPOINTER hptrTemplate;
    240240  HMODULE hmodTemplate;
    241  
     241
    242242  if(!DosQueryModuleHandle("PMWP",&hmodTemplate))
    243243    {
    244244      ULONG ulIconSize;
    245      
     245
    246246      hptrTemplate=WinLoadPointer(HWND_DESKTOP, hmodTemplate, 20);
    247247      WinDrawPointer(hps, rcl->xLeft, rcl->yBottom, hptrTemplate, (flCnr &  CV_MINI ? DP_MINI:DP_NORMAL));
     
    255255      return DP_MINI;
    256256    }
    257  
     257
    258258  return DP_NORMAL;
    259259}
    260260
    261261
    262 MRESULT EXPENTRY mmFolderFrameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 
     262MRESULT EXPENTRY mmFolderFrameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    263263{
    264264  HWND hwndStore;
     
    273273      {
    274274        POWNERITEM pOwnerItem=(POWNERITEM)PVOIDFROMMP(mp2);
    275  
     275
    276276
    277277        /* We only draw icons not text */
     
    299299            POINTL pointl;
    300300
    301             WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE);           
     301            WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE);
    302302            GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG2);
    303303            pointl.x = rclTemp.xLeft;
     
    307307            pointl.y = rclTemp.yTop - 1;
    308308            GpiSetColor(pOwnerItem->hps, CLR_BLACK);
    309             GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);         
    310            
     309            GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);
     310
    311311          }
    312312          /* Check if record is in use */
     
    314314            POINTL pointl;
    315315
    316             WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE);           
     316            WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE);
    317317            GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG1);
    318318            pointl.x = rclTemp.xLeft;
     
    322322            pointl.y = rclTemp.yTop - 1;
    323323            GpiSetColor(pOwnerItem->hps, CLR_BLACK);
    324             GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);                   
     324            GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);
    325325          }
    326326          /* or is it only selected? */
     
    330330          else
    331331            WinFillRect(pOwnerItem->hps, &rclTemp, CLR_WHITE);
    332           /* Emphasis drawn */         
     332          /* Emphasis drawn */
    333333
    334334          /********************************************/
     
    340340            WPObject *wpObject;
    341341            ULONG ulIconSize=150;/* Default if query fails */
    342            
     342
    343343            wpObject=(WPObject*)OBJECT_FROM_PREC(mrc); // Get object
    344344            wpObject=somGetFileSystemObject(wpObject);  // Get Filesystem object
     
    356356                SysWriteToTrapLog("Object is an image. (%s line: %d)\n", __FUNCTION__, __LINE__);
    357357#endif
    358                 /* Get object pointer of lighttable folder */               
     358                /* Get object pointer of lighttable folder */
    359359                if((hwndStore=WinWindowFromID(hwnd, STOREWINDOWID))!=NULLHANDLE)
    360360                  {
    361361                    somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER);
    362362                    if(somIsObj(somSelf)) {
    363                       MMFolderData *somThis = MMFolderGetData(somSelf); 
     363                      MMFolderData *somThis = MMFolderGetData(somSelf);
    364364                      ulIconSize=_ulCurrentSize;
    365365                    }
     
    423423                      /* And now draw the bitmap */
    424424#if 0
    425                       if(pBmpInfoHeader2->cclrUsed==2) {                       
     425                      if(pBmpInfoHeader2->cclrUsed==2) {
    426426                        WinDrawBitmap(pOwnerItem->hps, hbm, NULL, (PPOINTL)&rcl,//pOwnerItem->rclItem,
    427427                                      CLR_WHITE, CLR_BLACK, DBM_STRETCH /*| DBM_IMAGEATTRS*/);
     
    437437                    /* Done */
    438438                    if(_somIsA(wpObject, cwImageClass)) {
    439                       MMImage_cwmmFreeSmallBitmap((MMImage *)wpObject);
    440                     }
    441                     else {
    442                      MMBitmap_cwmmFreeSmallBitmap((MMBitmap*)wpObject);
     439                       MMImage_cwmmFreeSmallBitmap((MMImage *)wpObject);
     440                    }
     441                    else {
     442                       MMBitmap_cwmmFreeSmallBitmap((MMBitmap*)wpObject);
    443443                    }
    444444                    return (MRESULT) TRUE;
     
    474474                  {
    475475                    SOMClass* wpFolderClass=queryWpFolderClass();
    476                    
     476
    477477                    if(somIsObj(wpFolderClass)) {
    478                       if(_somIsA(wpObject, wpFolderClass)) {   
     478                      if(_somIsA(wpObject, wpFolderClass)) {
    479479                        /* It's a folder */
    480480                        HPOINTER hptr;
    481                        
     481
    482482                        pOwnerItem->rclItem.xLeft=rcl.xLeft;
    483483                        pOwnerItem->rclItem.yBottom=rcl.yBottom;
    484                        
     484
    485485                        /* The following is only for Warp 4 but Warp 3 isn't supported anyway...*/
    486486                        hptr=_wpQueryIconN(wpObject,1);
     
    489489                          return (MRESULT) TRUE;
    490490                        }
    491                        
     491
    492492                      }
    493493                    }/* if(somIsObj(wpFolderClass)) */
    494494                  }/* if(pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_INUSE) */
    495                
     495
    496496                if(WinDrawPointer(pOwnerItem->hps, rcl.xLeft, rcl.yBottom, mrc->hptrIcon, ulMiniOrNormal)) {
    497497                  cwDraw2ColorBorder(pOwnerItem->hps, &rclTemp, CLR_BLACK, CLR_DARKGRAY);
     
    508508          /*************************/
    509509          PCNRDRAWITEMINFO pCnrDrawItemInfo=(PCNRDRAWITEMINFO)pOwnerItem->hItem;
    510          
     510
    511511          if(pCnrDrawItemInfo && pCnrDrawItemInfo->pFieldInfo->flData & CFA_BITMAPORICON) {
    512512            PMINIRECORDCORE mrc=(PMINIRECORDCORE)((PCNRDRAWITEMINFO)pOwnerItem->hItem)->pRecord;
     
    517517              HWND hwndCnr=WinWindowFromID(hwnd, FID_CLIENT);
    518518              RECTL rclTemp=pOwnerItem->rclItem;
    519              
     519
    520520              wpObjToRefresh=(WPObject*)OBJECT_FROM_PREC(mrc);//Get object
    521521              wpObject=somGetFileSystemObject(wpObjToRefresh);
    522              
     522
    523523              /* Draw Background */
    524524              rclTemp.xLeft+=2;
     
    526526              rclTemp.yBottom+=2;
    527527              rclTemp.yTop-=2;
    528              
     528
    529529              /* Check if record is selected and in use... */
    530530              if((pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_INUSE)
    531531                 && (pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_SELECTED)) {
    532532                POINTL pointl;
    533                
     533
    534534                GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG2);
    535535                pointl.x = rclTemp.xLeft;
     
    539539                pointl.y = rclTemp.yTop - 1;
    540540                GpiSetColor(pOwnerItem->hps, CLR_BLACK);
    541                 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);         
    542                
     541                GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);
     542
    543543              }
    544544              /* or only in use... */
    545545              else if(pCnrDrawItemInfo->pRecord->flRecordAttr & CRA_INUSE) {
    546546                POINTL pointl;
    547                
     547
    548548                GpiSetPattern(pOwnerItem->hps,PATSYM_DIAG1);
    549549                pointl.x = rclTemp.xLeft;
     
    553553                pointl.y = rclTemp.yTop - 1;
    554554                GpiSetColor(pOwnerItem->hps, CLR_BLACK);
    555                 GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);         
     555                GpiBox(pOwnerItem->hps,DRO_FILL,&pointl,1,1);
    556556              }
    557557              /* or only selected. */
     
    564564                SOMClass* cwBitmapClass=queryCWBitmapFileClass();
    565565                SOMClass* cwImageClass=queryCWImageFileClass();
    566                
     566
    567567                if(somIsObj(cwImageClass)||somIsObj(cwBitmapClass)) {
    568568                  HBITMAP hbm=NULLHANDLE;
    569569                  PBITMAPINFOHEADER2 pBmpInfoHeader2;
    570                  
     570
    571571                  /* Query object pointer */
    572572                  if((hwndStore=WinWindowFromID(hwnd, STOREWINDOWID))!=NULLHANDLE)
     
    574574                      somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER);
    575575                      if(somIsObj(somSelf)) {
    576                         MMFolderData *somThis = MMFolderGetData(somSelf); 
     576                        MMFolderData *somThis = MMFolderGetData(somSelf);
    577577                        ulIconSize=_ulCurrentSize;
    578578                      }
    579579                    }
    580                   /* Get the small bitmap from the object */ 
     580                  /* Get the small bitmap from the object */
    581581                  if(_somIsA(wpObject, cwImageClass)) {
    582582                    hbm=MMImage_cwmmQuerySmallBitmapHandle( (MMImage*) wpObject, ulIconSize, mrc, hwndCnr);
     
    636636                      }
    637637                      if(_somIsA(wpObject, cwImageClass)) {
    638                       MMImage_cwmmFreeSmallBitmap((MMImage *)wpObject);
    639                     }
    640                     else {
    641                       MMBitmap_cwmmFreeSmallBitmap((MMBitmap*)wpObject);
    642                     }
     638                         MMImage_cwmmFreeSmallBitmap((MMImage *)wpObject);
     639                      }
     640                      else {
     641                         MMBitmap_cwmmFreeSmallBitmap((MMBitmap*)wpObject);
     642                      }
    643643                      return (MRESULT) TRUE;
    644644                    }/* hbm */
     
    684684          somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER);
    685685          if(somIsObj(somSelf)) {
    686             MMFolderData *somThis = MMFolderGetData(somSelf); 
     686            MMFolderData *somThis = MMFolderGetData(somSelf);
    687687            switch(_usLastSelMenuItem)
    688688              {
     
    701701                      /* insert separator */
    702702                      menuInsertMenuSeparator( HWNDFROMMP(mp2), NULLHANDLE, MIT_END);
    703                      
     703
    704704                      /* Load the menu from the resource */
    705705                      hwndMenu=WinLoadMenu(hwnd,queryResModuleHandle(), ID_MENUICONSIZE);
    706                      
     706
    707707                      /* Fill the MENUITEM structure */
    708708                      mi.iPosition=MIT_END;
    709709                      mi.afStyle=MIS_TEXT|MIS_SUBMENU;
    710710                      mi.id=ID_MENUICONSIZE;
    711                       mi.afAttribute=NULLHANDLE;               
     711                      mi.afAttribute=NULLHANDLE;
    712712                      mi.hwndSubMenu=hwndMenu;
    713713                      mi.hItem=NULLHANDLE;
     
    715715                        strcpy(text, "Icon ~size");;
    716716                      menuInsertMenuItem(HWNDFROMMP(mp2), hwndMenu, MIT_END, ID_MENUICONSIZE, text);
    717                      
     717
    718718                      /* check current menuitem */
    719719                      switch(_ulCurrentSize)
     
    738738                          break;
    739739                        default:
    740                           break; 
     740                          break;
    741741                        }
    742742                    }
     
    755755          somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER);
    756756          if(somIsObj(somSelf)) {
    757             MMFolderData *somThis = MMFolderGetData(somSelf); 
     757            MMFolderData *somThis = MMFolderGetData(somSelf);
    758758            _usLastSelMenuItem=SHORT1FROMMP(mp1);
    759759          }
     
    768768      somSelf=(MMFolder*) WinQueryWindowULong(hwndStore,QWL_USER);
    769769      if(somIsObj(somSelf)) {
    770         MMFolderData *somThis = MMFolderGetData(somSelf); 
     770        MMFolderData *somThis = MMFolderGetData(somSelf);
    771771        if(_oldFrameProc)
    772772          return _oldFrameProc(hwnd, msg, mp1, mp2);
    773773      }
    774774    }
    775  
     775
    776776  return WinDefWindowProc(hwnd, msg, mp1, mp2);
    777777}
     
    781781 */
    782782
    783 SOM_Scope HWND  SOMLINK mmfldr_wpOpen(MMFolder *somSelf, HWND hwndCnr, 
     783SOM_Scope HWND  SOMLINK mmfldr_wpOpen(MMFolder *somSelf, HWND hwndCnr,
    784784                                      ULONG ulView, ULONG param)
    785785{
    786786  HWND hwnd;
    787787
    788   MMFolderData *somThis = MMFolderGetData(somSelf); 
     788  MMFolderData *somThis = MMFolderGetData(somSelf);
    789789    MMFolderMethodDebug("MMFolder","mmfldr_wpOpen");
    790790
    791     hwnd=(MMFolder_parent_WPFolder_wpOpen(somSelf, hwndCnr, 
     791    hwnd=(MMFolder_parent_WPFolder_wpOpen(somSelf, hwndCnr,
    792792                                            ulView, param));
    793793
    794794    /* Only subclass folder frames, not settings notebooks */
    795     if(ulView!=OPEN_SETTINGS){   
     795    if(ulView!=OPEN_SETTINGS){
    796796      HWND hwndStore;
    797797
     
    799799                         hwnd, HWND_BOTTOM, STOREWINDOWID, NULLHANDLE, NULLHANDLE))!=NULLHANDLE)
    800800        {
    801           HWND hwndContainer;     
     801          HWND hwndContainer;
    802802
    803803          WinSetWindowULong(hwndStore, QWL_USER, (ULONG)somSelf);
    804804          _oldFrameProc=WinSubclassWindow(hwnd, mmFolderFrameProc);
    805          
     805
    806806          if(hwnd)
    807807            {
    808808              CNRINFO cnrInfo;
    809809              HWND hwndContainer=WinWindowFromID(hwnd,FID_CLIENT);
    810  
     810
    811811              /* Change the containerflags */
    812812              if(WinSendMsg(hwndContainer,CM_QUERYCNRINFO, MPFROMP(&cnrInfo),
    813813                            MPFROMSHORT(sizeof(cnrInfo))))
    814814                {
    815                   if(cnrInfo.flWindowAttr & CV_ICON) {             
     815                  if(cnrInfo.flWindowAttr & CV_ICON) {
    816816                    cnrInfo.slBitmapOrIcon.cx=_ulCurrentSize;
    817817                    cnrInfo.slBitmapOrIcon.cy=_ulCurrentSize;
     
    834834
    835835#if 0
    836 SOM_Scope BOOL  SOMLINK mmfldr_wpSetupOnce(MMFolder *somSelf, 
     836SOM_Scope BOOL  SOMLINK mmfldr_wpSetupOnce(MMFolder *somSelf,
    837837                                           PSZ pszSetupString)
    838838{
     
    859859#endif
    860860
    861 SOM_Scope BOOL  SOMLINK mmfldr_wpRestoreState(MMFolder *somSelf, 
     861SOM_Scope BOOL  SOMLINK mmfldr_wpRestoreState(MMFolder *somSelf,
    862862                                              ULONG ulReserved)
    863863{
     
    870870    }
    871871
    872     return (MMFolder_parent_WPFolder_wpRestoreState(somSelf, 
     872    return (MMFolder_parent_WPFolder_wpRestoreState(somSelf,
    873873                                                    ulReserved));
    874874}
    875875
    876 SOM_Scope BOOL  SOMLINK mmfldr_wpRestoreData(MMFolder *somSelf, 
    877                                              PSZ pszClass, ULONG ulKey, 
     876SOM_Scope BOOL  SOMLINK mmfldr_wpRestoreData(MMFolder *somSelf,
     877                                             PSZ pszClass, ULONG ulKey,
    878878                                             PBYTE pValue, PULONG pcbValue)
    879879{
     
    882882    MMFolderMethodDebug("MMFolder","mmfldr_wpRestoreData");
    883883
    884     rc= (MMFolder_parent_WPFolder_wpRestoreData(somSelf, pszClass, 
    885                                                    ulKey, pValue, 
     884    rc= (MMFolder_parent_WPFolder_wpRestoreData(somSelf, pszClass,
     885                                                   ulKey, pValue,
    886886                                                   pcbValue));
    887887    switch(ulKey)
     
    919919    MMFolderData *somThis = MMFolderGetData(somSelf);
    920920    MMFolderMethodDebug("MMFolder","mmfldr_wpSaveState");
    921    
     921
    922922    _wpSaveLong( somSelf, "MMFolder", KEY_ICONSIZE, _ulCurrentSize);
    923923
     
    926926
    927927
    928 SOM_Scope BOOL  SOMLINK mmfldr_wpSaveData(MMFolder *somSelf, 
    929                                           PSZ pszClass, ULONG ulKey, 
     928SOM_Scope BOOL  SOMLINK mmfldr_wpSaveData(MMFolder *somSelf,
     929                                          PSZ pszClass, ULONG ulKey,
    930930                                          PBYTE pValue, ULONG cbValue)
    931931{
     
    937937       the address of the instance data containing grid spacing and view. So
    938938       we force the object to save the instance data and in wpSaveData we
    939        finally get the right addresses to change the object view to gridded. 
     939       finally get the right addresses to change the object view to gridded.
    940940       This change is done in wpObjectReady() where we called wpSaveImmediate(). */
    941941
     
    946946      Check ID for NULL to prevent crash in stricmp().
    947947     */
    948     psz=_wpQueryObjectID(somSelf);         
     948    psz=_wpQueryObjectID(somSelf);
    949949    //  if(!stricmp(_wpQueryObjectID(somSelf), "<MMPM2_MMFOLDERTEMPLATE>"))
    950950    if(psz && !stricmp(psz, "<MMPM2_MMFOLDERTEMPLATE>"))
     
    982982      }
    983983
    984     return (MMFolder_parent_WPFolder_wpSaveData(somSelf, pszClass, 
    985                                                 ulKey, pValue, 
     984    return (MMFolder_parent_WPFolder_wpSaveData(somSelf, pszClass,
     985                                                ulKey, pValue,
    986986                                                cbValue));
    987987}
    988988
    989 SOM_Scope BOOL  SOMLINK mmfldr_wpMenuItemSelected(MMFolder *somSelf, 
    990                                                   HWND hwndFrame, 
     989SOM_Scope BOOL  SOMLINK mmfldr_wpMenuItemSelected(MMFolder *somSelf,
     990                                                  HWND hwndFrame,
    991991                                                  ULONG ulMenuId)
    992992{
     
    10041004          char text[200];
    10051005          CNRINFO cnrInfo2=cnrInfo;
    1006    
     1006
    10071007          switch(ulMenuId)
    10081008            {
     
    10541054          }
    10551055
    1056           _wpSetup(somSelf, "MENUITEMSELECTED=716");/* Change to icon view */         
     1056          _wpSetup(somSelf, "MENUITEMSELECTED=716");/* Change to icon view */
    10571057          _wpSetup(somSelf, "MENUITEMSELECTED=309");/* Arrange */
    10581058
     
    10621062        }
    10631063    }/* if() */
    1064     return (MMFolder_parent_WPFolder_wpMenuItemSelected(somSelf, 
    1065                                                         hwndFrame, 
     1064    return (MMFolder_parent_WPFolder_wpMenuItemSelected(somSelf,
     1065                                                        hwndFrame,
    10661066                                                        ulMenuId));
    10671067}
     
    10711071 *wpSetup:override;
    10721072 */
    1073 SOM_Scope void  SOMLINK mmfldr_wpObjectReady(MMFolder *somSelf, 
     1073SOM_Scope void  SOMLINK mmfldr_wpObjectReady(MMFolder *somSelf,
    10741074                                             ULONG ulCode, WPObject* refObject)
    10751075{
     
    11001100
    11011101          /* If no ID result is NULL */
    1102           psz=_wpQueryObjectID(somSelf);         
     1102          psz=_wpQueryObjectID(somSelf);
    11031103          if(psz && !stricmp(psz, "<MMPM2_MMFOLDERTEMPLATE>")) {
    11041104            /* When the template is created wpRestoreData() isn't called so we don't have
     
    11061106               we force the object to save the instance data and in wpSaveData we
    11071107               finally get the right addresses to change the object view to gridded. */
    1108            
     1108
    11091109            _wpSaveImmediate(somSelf);
    11101110            /* Set default view to gridded */
    1111            
     1111
    11121112            if(_pFldrLongArray!=NULLHANDLE) {
    11131113              *_pFldrLongArray=0x80;
     
    11201120              *(_pulGridSpacing--)=_ulCurrentSize+MMFLDR_SPACINGDELTA_Y;
    11211121            }
    1122            
     1122
    11231123          }
    11241124          break;
     
    11371137    MMFolderMethodDebug("MMFolder","mmfldr_wpSetup");
    11381138
    1139     bufferSize=sizeof(buffer); 
     1139    bufferSize=sizeof(buffer);
    11401140    if(_wpScanSetupString(somSelf, pszSetupString, SETUP_MMTHUMBSIZE, buffer, &bufferSize))
    11411141      {
     
    11801180            pViewItem=_wpFindViewItem(somSelf,VIEW_CONTENTS|VIEW_TREE|VIEW_DETAILS, pViewItem))
    11811181          {
    1182             _wpMenuItemSelected(somSelf, 
    1183                                 pViewItem->handle, 
     1182            _wpMenuItemSelected(somSelf,
     1183                                pViewItem->handle,
    11841184                                ulMenuId);
    11851185          }
     
    11891189
    11901190
    1191 SOM_Scope BOOL  SOMLINK mmfldrM_wpclsCreateDefaultTemplates(M_MMFolder *somSelf, 
     1191SOM_Scope BOOL  SOMLINK mmfldrM_wpclsCreateDefaultTemplates(M_MMFolder *somSelf,
    11921192                                                            WPObject* Folder)
    11931193{
     
    12051205  wpFolder=_wpclsQueryFolder(somSelf, MMTEMPLATE_FOLDER_ID, FALSE);
    12061206  _wpclsNew(somSelf, _wpclsQueryTitle(somSelf), chrSetup, wpFolder,FALSE);
    1207  
     1207
    12081208  return TRUE;
    12091209}
     
    12241224
    12251225
    1226 SOM_Scope ULONG  SOMLINK mmfldrM_wpclsQueryIconData(M_MMFolder *somSelf, 
     1226SOM_Scope ULONG  SOMLINK mmfldrM_wpclsQueryIconData(M_MMFolder *somSelf,
    12271227                                                    PICONINFO pIconInfo)
    12281228{
     
    12461246
    12471247
    1248 SOM_Scope ULONG  SOMLINK mmfldrM_wpclsQueryIconDataN(M_MMFolder *somSelf, 
    1249                                                      ICONINFO* pIconInfo, 
     1248SOM_Scope ULONG  SOMLINK mmfldrM_wpclsQueryIconDataN(M_MMFolder *somSelf,
     1249                                                     ICONINFO* pIconInfo,
    12501250                                                     ULONG ulIconIndex)
    12511251{
  • trunk/classes/c/cwmm.DEF

    r3 r104  
    11; CWMM.DEF: DEF-file for CWMM.dll
    22;
    3 ;                    (C) Chris Wohlgemuth 2002-2005
     3;                    (C) Chris Wohlgemuth 2002-2020
    44;/*
    55; * This program is free software; you can redistribute it and/or modify
     
    2525
    2626LIBRARY CWMM INITGLOBAL
    27 DESCRIPTION '$@#(C) C. Wohlgemuth 2005:0.2        #@##1## 11/05/05 17:35:09        My ;-)  ::::9::@@CWMM-classes V0.2.9'
     27DESCRIPTION '$@#(C) C. Wohlgemuth 2020:0.2        #@##1## 18/07/20 19:38:26        My ;-)  ::::9::@@CWMM-classes V0.2.9'
    2828
    2929PROTMODE
  • trunk/classes/create_cwmm_def.CMD

    r2 r104  
    33call SysLoadFuncs
    44
    5 deffile=ARG(1)
     5deffile=strip(ARG(1))
    66if ARG(1)="" then deffile="tst.def"
    77
     
    3939def=def||'0d'x||'0a'x
    4040
    41 def=def||"LIBRARY CWMM INITGLOBAL"||'0d'x||'0a'x
     41def=def||"LIBRARY CWMM INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
    4242def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth "
    4343def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||"        #@##1## "||DATE("E")||" "||TIME("N")||"        My ;-)  ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@CWMM-classes V"||theVersion||"'"||'0d'x||'0a'x
  • trunk/classes/exports.DEF

    r2 r104  
    1 PROTMODE
    2 CODE PRELOAD DISCARDABLE
    3 DATA SHARED LOADONCALL
    4 
    5 EXPORTS 
     1DATA MULTIPLE NONSHARED
     2
     3EXPORTS
    64;Audio classes
    7         M_MMAudioClassData      @1
    8         M_MMAudioCClassData     @2
    9         M_MMAudioNewClass       @3
    10         MMAudioClassData        @4
    11         MMAudioCClassData       @5
    12         MMAudioNewClass         @6
    13 
    14         M_MMMP3ClassData        @7
    15         M_MMMP3CClassData       @8
    16         M_MMMP3NewClass         @9
    17         MMMP3ClassData          @10
    18         MMMP3CClassData         @11
    19         MMMP3NewClass           @12
    20 
    21         M_MMOGGClassData        @13
    22         M_MMOGGCClassData       @14
    23         M_MMOGGNewClass         @15
    24         MMOGGClassData          @16
    25         MMOGGCClassData         @17
    26         MMOGGNewClass           @18
    27 
    28         M_MMCDTrackClassData    @19
    29         M_MMCDTrackCClassData   @20
    30         M_MMCDTrackNewClass     @21
    31         MMCDTrackClassData      @22
    32         MMCDTrackCClassData     @23
    33         MMCDTrackNewClass       @24
    34 
    35         M_CWMMDiskClassData     @25
    36         M_CWMMDiskCClassData    @26
    37         M_CWMMDiskNewClass              @27
    38         CWMMDiskClassData               @28
    39         CWMMDiskCClassData              @29
    40         CWMMDiskNewClass                @30
    41 
    42         M_MMWAVClassData        @31
    43         M_MMWAVCClassData       @32
    44         M_MMWAVNewClass         @33
    45         MMWAVClassData          @34
    46         MMWAVCClassData         @35
    47         MMWAVNewClass           @36
    48 
    49         M_MMAIFClassData        @37
    50         M_MMAIFCClassData       @38
    51         M_MMAIFNewClass         @39
    52         MMAIFClassData          @40
    53         MMAIFCClassData         @41
    54         MMAIFNewClass           @42
    55 
    56         M_MMAUClassData         @43
    57         M_MMAUCClassData        @44
    58         M_MMAUNewClass          @45
    59         MMAUClassData           @46
    60         MMAUCClassData          @47
    61         MMAUNewClass            @48
    62 
    63         M_MM_AUClassData        @49
    64         M_MM_AUCClassData       @50
    65         M_MM_AUNewClass         @51
    66         MM_AUClassData          @52
    67         MM_AUCClassData         @53
    68         MM_AUNewClass           @54
    69 
    70         M_MMIFFClassData        @55
    71         M_MMIFFCClassData       @56
    72         M_MMIFFNewClass         @57
    73         MMIFFClassData          @58
    74         MMIFFCClassData         @59
    75         MMIFFNewClass           @60
    76 
    77         M_MMSNDFClassData       @61
    78         M_MMSNDFCClassData      @62
    79         M_MMSNDFNewClass        @63
    80         MMSNDFClassData         @64
    81         MMSNDFCClassData        @65
    82         MMSNDFNewClass          @66
    83 
    84         M_MMVOCClassData        @67
    85         M_MMVOCCClassData       @68
    86         M_MMVOCNewClass         @69
    87         MMVOCClassData          @70
    88         MMVOCCClassData         @71
    89         MMVOCNewClass           @72
    90 
    91         M_MMMIDIClassData       @73
    92         M_MMMIDICClassData      @74
    93         M_MMMIDINewClass        @75
    94         MMMIDIClassData         @76
    95         MMMIDICClassData        @77
    96         MMMIDINewClass          @78
     5        M_MMAudioClassData
     6        M_MMAudioCClassData
     7        M_MMAudioNewClass
     8        MMAudioClassData
     9        MMAudioCClassData
     10        MMAudioNewClass
     11
     12        M_MMMP3ClassData
     13        M_MMMP3CClassData
     14        M_MMMP3NewClass
     15        MMMP3ClassData
     16        MMMP3CClassData
     17        MMMP3NewClass
     18
     19        M_MMOGGClassData
     20        M_MMOGGCClassData
     21        M_MMOGGNewClass
     22        MMOGGClassData
     23        MMOGGCClassData
     24        MMOGGNewClass
     25
     26        M_MMCDTrackClassData
     27        M_MMCDTrackCClassData
     28        M_MMCDTrackNewClass
     29        MMCDTrackClassData
     30        MMCDTrackCClassData
     31        MMCDTrackNewClass
     32
     33        M_CWMMDiskClassData
     34        M_CWMMDiskCClassData
     35        M_CWMMDiskNewClass
     36        CWMMDiskClassData
     37        CWMMDiskCClassData
     38        CWMMDiskNewClass
     39
     40        M_MMWAVClassData
     41        M_MMWAVCClassData
     42        M_MMWAVNewClass
     43        MMWAVClassData
     44        MMWAVCClassData
     45        MMWAVNewClass
     46
     47        M_MMAIFClassData
     48        M_MMAIFCClassData
     49        M_MMAIFNewClass
     50        MMAIFClassData
     51        MMAIFCClassData
     52        MMAIFNewClass
     53
     54        M_MMAUClassData
     55        M_MMAUCClassData
     56        M_MMAUNewClass
     57        MMAUClassData
     58        MMAUCClassData
     59        MMAUNewClass
     60
     61        M_MM_AUClassData
     62        M_MM_AUCClassData
     63        M_MM_AUNewClass
     64        MM_AUClassData
     65        MM_AUCClassData
     66        MM_AUNewClass
     67
     68        M_MMIFFClassData
     69        M_MMIFFCClassData
     70        M_MMIFFNewClass
     71        MMIFFClassData
     72        MMIFFCClassData
     73        MMIFFNewClass
     74
     75        M_MMSNDFClassData
     76        M_MMSNDFCClassData
     77        M_MMSNDFNewClass
     78        MMSNDFClassData
     79        MMSNDFCClassData
     80        MMSNDFNewClass
     81
     82        M_MMVOCClassData
     83        M_MMVOCCClassData
     84        M_MMVOCNewClass
     85        MMVOCClassData
     86        MMVOCCClassData
     87        MMVOCNewClass
     88
     89        M_MMMIDIClassData
     90        M_MMMIDICClassData
     91        M_MMMIDINewClass
     92        MMMIDIClassData
     93        MMMIDICClassData
     94        MMMIDINewClass
    9795
    9896;Video classes
    99         M_MMVideoClassData      @79
    100         M_MMVideoCClassData     @80
    101         M_MMVideoNewClass       @81
    102         MMVideoClassData        @82
    103         MMVideoCClassData       @83
    104         MMVideoNewClass         @84
    105 
    106         M_MMAVIClassData        @85
    107         M_MMAVICClassData       @86
    108         M_MMAVINewClass         @87
    109         MMAVIClassData          @88
    110         MMAVICClassData         @89
    111         MMAVINewClass           @90
    112 
    113         M_MMFLIClassData        @91
    114         M_MMFLICClassData       @92
    115         M_MMFLINewClass         @93
    116         MMFLIClassData          @94
    117         MMFLICClassData         @95
    118         MMFLINewClass           @96
    119 
    120         M_MMMOVClassData        @97
    121         M_MMMOVCClassData       @98
    122         M_MMMOVNewClass         @99
    123         MMMOVClassData          @100
    124         MMMOVCClassData         @101
    125         MMMOVNewClass           @102
    126 
    127         M_MMMPGClassData        @103
    128         M_MMMPGCClassData       @104
    129         M_MMMPGNewClass         @105
    130         MMMPGClassData          @106
    131         MMMPGCClassData         @107
    132         MMMPGNewClass           @108
     97        M_MMVideoClassData
     98        M_MMVideoCClassData
     99        M_MMVideoNewClass
     100        MMVideoClassData
     101        MMVideoCClassData
     102        MMVideoNewClass
     103
     104        M_MMAVIClassData
     105        M_MMAVICClassData
     106        M_MMAVINewClass
     107        MMAVIClassData
     108        MMAVICClassData
     109        MMAVINewClass
     110
     111        M_MMFLIClassData
     112        M_MMFLICClassData
     113        M_MMFLINewClass
     114        MMFLIClassData
     115        MMFLICClassData
     116        MMFLINewClass
     117
     118        M_MMMOVClassData
     119        M_MMMOVCClassData
     120        M_MMMOVNewClass
     121        MMMOVClassData
     122        MMMOVCClassData
     123        MMMOVNewClass
     124
     125        M_MMMPGClassData
     126        M_MMMPGCClassData
     127        M_MMMPGNewClass
     128        MMMPGClassData
     129        MMMPGCClassData
     130        MMMPGNewClass
    133131
    134132;MM-Data file class
    135         M_CWMMDataFileClassData @109
    136         M_CWMMDataFileCClassData        @110
    137         M_CWMMDataFileNewClass  @111
    138         CWMMDataFileClassData   @112
    139         CWMMDataFileCClassData  @113
    140         CWMMDataFileNewClass    @114
     133        M_CWMMDataFileClassData
     134        M_CWMMDataFileCClassData
     135        M_CWMMDataFileNewClass
     136        CWMMDataFileClassData
     137        CWMMDataFileCClassData
     138        CWMMDataFileNewClass
    141139
    142140;Image classes
    143         M_MMImageClassData      @115
    144         M_MMImageCClassData     @116
    145         M_MMImageNewClass       @117
    146         MMImageClassData        @118
    147         MMImageCClassData       @119
    148         MMImageNewClass         @120
    149 
    150         M_MMAVCClassData        @121
    151         M_MMAVCCClassData       @122
    152         M_MMAVCNewClass         @123
    153         MMAVCClassData          @124
    154         MMAVCCClassData         @125
    155         MMAVCNewClass           @126
    156 
    157         M_MMDIBClassData        @127
    158         M_MMDIBCClassData       @128
    159         M_MMDIBNewClass         @129
    160         MMDIBClassData          @130
    161         MMDIBCClassData         @131
    162         MMDIBNewClass           @132
    163 
    164         M_MMGIFClassData        @133
    165         M_MMGIFCClassData       @134
    166         M_MMGIFNewClass         @135
    167         MMGIFClassData          @136
    168         MMGIFCClassData         @137
    169         MMGIFNewClass           @138
    170 
    171         M_MMJPGClassData        @139
    172         M_MMJPGCClassData       @140
    173         M_MMJPGNewClass         @141
    174         MMJPGClassData          @142
    175         MMJPGCClassData         @143
    176         MMJPGNewClass           @144
    177 
    178         M_MMPhotoCDClassData    @145
    179         M_MMPhotoCDCClassData   @146
    180         M_MMPhotoCDNewClass     @147
    181         MMPhotoCDClassData      @148
    182         MMPhotoCDCClassData     @149
    183         MMPhotoCDNewClass       @150
    184 
    185         M_MMPCXClassData        @151
    186         M_MMPCXCClassData       @152
    187         M_MMPCXNewClass         @153
    188         MMPCXClassData          @154
    189         MMPCXCClassData         @155
    190         MMPCXNewClass           @156
    191 
    192         M_MMTargaClassData      @157
    193         M_MMTargaCClassData     @158
    194         M_MMTargaNewClass       @159
    195         MMTargaClassData        @160
    196         MMTargaCClassData       @161
    197         MMTargaNewClass         @162
    198 
    199         M_MMTIFFClassData       @163
    200         M_MMTIFFCClassData      @164
    201         M_MMTIFFNewClass        @165
    202         MMTIFFClassData         @166
    203         MMTIFFCClassData        @167
    204         MMTIFFNewClass          @168
    205 
    206         M_MMMMotionClassData    @169
    207         M_MMMMotionCClassData   @170
    208         M_MMMMotionNewClass     @171
    209         MMMMotionClassData      @172
    210         MMMMotionCClassData     @173
    211         MMMMotionNewClass       @174
    212 
    213         M_MMBitmapClassData     @175
    214         M_MMBitmapCClassData    @176
    215         M_MMBitmapNewClass      @177
    216         MMBitmapClassData       @178
    217         MMBitmapCClassData      @179
    218         MMBitmapNewClass        @180
     141        M_MMImageClassData
     142        M_MMImageCClassData
     143        M_MMImageNewClass
     144        MMImageClassData
     145        MMImageCClassData
     146        MMImageNewClass
     147
     148        M_MMAVCClassData
     149        M_MMAVCCClassData
     150        M_MMAVCNewClass
     151        MMAVCClassData
     152        MMAVCCClassData
     153        MMAVCNewClass
     154
     155        M_MMDIBClassData
     156        M_MMDIBCClassData
     157        M_MMDIBNewClass
     158        MMDIBClassData
     159        MMDIBCClassData
     160        MMDIBNewClass
     161
     162        M_MMGIFClassData
     163        M_MMGIFCClassData
     164        M_MMGIFNewClass
     165        MMGIFClassData
     166        MMGIFCClassData
     167        MMGIFNewClass
     168
     169        M_MMJPGClassData
     170        M_MMJPGCClassData
     171        M_MMJPGNewClass
     172        MMJPGClassData
     173        MMJPGCClassData
     174        MMJPGNewClass
     175
     176        M_MMPhotoCDClassData
     177        M_MMPhotoCDCClassData
     178        M_MMPhotoCDNewClass
     179        MMPhotoCDClassData
     180        MMPhotoCDCClassData
     181        MMPhotoCDNewClass
     182
     183        M_MMPCXClassData
     184        M_MMPCXCClassData
     185        M_MMPCXNewClass
     186        MMPCXClassData
     187        MMPCXCClassData
     188        MMPCXNewClass
     189
     190        M_MMTargaClassData
     191        M_MMTargaCClassData
     192        M_MMTargaNewClass
     193        MMTargaClassData
     194        MMTargaCClassData
     195        MMTargaNewClass
     196
     197        M_MMTIFFClassData
     198        M_MMTIFFCClassData
     199        M_MMTIFFNewClass
     200        MMTIFFClassData
     201        MMTIFFCClassData
     202        MMTIFFNewClass
     203
     204        M_MMMMotionClassData
     205        M_MMMMotionCClassData
     206        M_MMMMotionNewClass
     207        MMMMotionClassData
     208        MMMMotionCClassData
     209        MMMMotionNewClass
     210
     211        M_MMBitmapClassData
     212        M_MMBitmapCClassData
     213        M_MMBitmapNewClass
     214        MMBitmapClassData
     215        MMBitmapCClassData
     216        MMBitmapNewClass
    219217
    220218;Light table folder
    221         M_MMFolderClassData     @181
    222         M_MMFolderCClassData    @182
    223         M_MMFolderNewClass      @183
    224         MMFolderClassData       @184
    225         MMFolderCClassData      @185
    226         MMFolderNewClass        @186
     219        M_MMFolderClassData
     220        M_MMFolderCClassData
     221        M_MMFolderNewClass
     222        MMFolderClassData
     223        MMFolderCClassData
     224        MMFolderNewClass
    227225
    228226;Audio stream class
    229         M_MMAudioStreamClassData        @187
    230         M_MMAudioStreamCClassData       @188
    231         M_MMAudioStreamNewClass @189
    232         MMAudioStreamClassData  @190
    233         MMAudioStreamCClassData @191
    234         MMAudioStreamNewClass   @192
     227        M_MMAudioStreamClassData
     228        M_MMAudioStreamCClassData
     229        M_MMAudioStreamNewClass
     230        MMAudioStreamClassData
     231        MMAudioStreamCClassData
     232        MMAudioStreamNewClass
    235233
    236234;M3U playlist
    237         M_MMM3UClassData        @193
    238         M_MMM3UCClassData       @194
    239         M_MMM3UNewClass         @195
    240         MMM3UClassData          @196
    241         MMM3UCClassData         @197
    242         MMM3UNewClass           @198
     235        M_MMM3UClassData
     236        M_MMM3UCClassData
     237        M_MMM3UNewClass
     238        MMM3UClassData
     239        MMM3UCClassData
     240        MMM3UNewClass
    243241
    244242;MMPNG class
    245         M_MMPNGClassData        @199
    246         M_MMPNGCClassData       @200
    247         M_MMPNGNewClass         @201
    248         MMPNGClassData          @202
    249         MMPNGCClassData         @203
    250         MMPNGNewClass           @204
     243        M_MMPNGClassData
     244        M_MMPNGCClassData
     245        M_MMPNGNewClass
     246        MMPNGClassData
     247        MMPNGCClassData
     248        MMPNGNewClass
    251249
    252250;MMFLAC class
    253         M_MMFLACClassData       @205
    254         M_MMFLACCClassData      @206
    255         M_MMFLACNewClass                @207
    256         MMFLACClassData         @208
    257         MMFLACCClassData        @209
    258         MMFLACNewClass          @210
     251        M_MMFLACClassData
     252        M_MMFLACCClassData
     253        M_MMFLACNewClass
     254        MMFLACClassData
     255        MMFLACCClassData
     256        MMFLACNewClass
    259257
    260258IMPORTS
     
    266264        WPImageFileNewClass=PMWP.493
    267265
    268 
    269 ;        M_MMWAVClassData       @31
    270 ;        M_MMWAVCClassData      @32
    271 ;        M_MMWAVNewClass                @33
    272 ;        MMWAVClassData         @34
    273 ;        MMWAVCClassData                @35
    274 ;        MMWAVNewClass          @36
    275 
    276 
    277266;IMPORTS
    278267;       MMPARTS.M_MMAudioClassData
  • trunk/classes/help/de/cwmm049.ipf

    r2 r104  
    148148werden von einem FreeDB-Server abgefragt sofern eine Internetverbindung verfgbar ist.
    149149Eine Emailadresse muá angegeben werden, um diese Funktion zu nutzen.
    150 Zu diesem Zweck das Konfigurationsobjekt starten. 
     150Zu diesem Zweck das Konfigurationsobjekt starten.
    151151:p.
    152152Diese Adresse wird in der Datei cddb.ini des Installationsverzeichnisses gespeichert.
     
    156156:p.
    157157Dises Objekt ist eine M3U-Spielliste. M3U-Spiellisten sind Textdateien, die die Pfade
    158 der abzuspielenden Stcke enthalten. Sie werden z.B. von portablen MP3-Spielern verwendet. 
     158der abzuspielenden Stcke enthalten. Sie werden z.B. von portablen MP3-Spielern verwendet.
    159159Es steht ein Editor zur Verfgung, mit dessen Hilfe derartige Listen
    160160einfach mit der Maus (Ziehen und Fallen lassen) bearbeitet werden k”nnen.
     
    163163:p.
    164164Mit diesem Objekt k”nnen Audio-Streams von Internet-Radiostationen geh”rt werden.
    165 Die erforderliche URL kann im Einstellungen-Notizbuch eingetragen werden. 
     165Die erforderliche URL kann im Einstellungen-Notizbuch eingetragen werden.
    166166
    167167:nt.
     
    170170:ent.
    171171
     172.* ----------------------------------------------------------------------------
     173:h1 res=060.Audiodatei konvertieren
     174:p.Geben sie fr die Zieldatei den Audiotyp und Dateinamen inklusive vollem Pfad an.
     175Quelldatei Details werden im oberen Bereich des Dialogfensters angezeigt.
     176Manche Dateiformate sind mehr verlustbehaftet als andere und die Konvertierung von
     177einem verlustbehafteten zu einem verlustlosen Format wird nicht die Bitinformation
     178wiederherstellen die in der verlustlosen Quelle vorhanden war.
     179In einigen F„llen kann dies auch zu einer Datei von einer schlechteren Qualit„t als
     180die verlustbehaftete Datei fhren.
     181
     182:p.Das Auswahlfeld listet zur Verfgung stehende MMIOProcs (Codecs) zur Konvertierung auf.
     183
     184:p.Drcken sie den :hp2.Konvertieren:2hp2. Knopf um mit der Konvertierung zu beginnen, und
     185:hp2.Abbrechen:ehp2. um die Konvertierung abzubrechen. Drcken sie :hp2.Schlieáen:ehp2. um den
     186Dialog zu schlieáen.
     187
    172188:euserdoc.
    173189
  • trunk/classes/idl/idl_audio/cwaudio.idl

    r2 r104  
    1717 * along with this program; see the file COPYING.  If not, write to
    1818 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    19  */         
     19 */
    2020/*
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    3535#define SIZE_PLAYTIME    11
    3636#define SIZE_SAMPLERATE  7
    37 #define SIZE_BITRATE     7 
     37#define SIZE_BITRATE     7
    3838#define SIZE_CHANNELS    2
    3939#define SIZE_BPS         4
     
    4343*/
    4444
    45 interface M_MMAudio; 
     45interface M_MMAudio;
    4646
    4747
     
    8080
    8181    /*
    82      * methods overridden 
     82     * methods overridden
    8383     *
    8484     */
     
    8686    wpclsQueryInstanceType      : override;
    8787    wpclsQueryInstanceFilter    : override;
    88     wpclsQueryDetailsInfo       : override;   
    89     wpclsQueryTitle             : override;   
     88    wpclsQueryDetailsInfo       : override;
     89    wpclsQueryTitle             : override;
    9090    wpclsInitData               : override;
    9191    wpclsUnInitData             : override;
    92     wpclsQueryDefaultView  : override;   
     92    wpclsQueryDefaultView  : override;
    9393    wpclsQueryIconData          : override;
    9494  };
     
    108108     */
    109109        ULONG  cwmmAddAudioInformationPage(in HWND hwndNotebook);
    110     BOOL   cwmmSetTrackInfo(in char* chrString, in ULONG ulValue, in int iWhich);
    111     ULONG  cwmmQueryTrackInfo(in PSZ chrString, in ULONG ulSize, in int iWhich);
     110    BOOL   cwmmSetTrackInfo(in char* chrString, in ULONG ulValue, in ULONG iWhich);
     111    ULONG  cwmmQueryTrackInfo(in PSZ chrString, in ULONG ulSize, in ULONG iWhich);
    112112    void   cwmmPlayTrack(in HWND hwndCnr, in BOOL bPlay);
    113113        ULONG  cwmmAddTrackNamePage(in HWND hwndNotebook);
     
    157157    ULONG  ulSampleRate;
    158158    ULONG  ulBitRate;
    159     ULONG  ulChannels; 
     159    ULONG  ulChannels;
    160160    ULONG  ulBPS;
    161161    ULONG  ulNumAudioBytes;
    162    
     162
    163163    BOOL bNeedSaving;
    164164    /* Strings shown in details view */
     
    171171/*    char id3Name[33+30+1]; */
    172172 /* 63 chars. ID3 allows 30 */
    173 /*    char id3Artist[33+30+1]; 
     173/*    char id3Artist[33+30+1];
    174174    char id3Album[33+30+1];
    175175    char id3Year[4+1];
     
    188188    PSZ pszGenre;
    189189    /*
    190      * methods overridden 
     190     * methods overridden
    191191     *
    192192     */
     
    202202    wpOpen                  : override;
    203203
    204 /*  wpSetTitle              : override; 
     204/*  wpSetTitle              : override;
    205205    wpQueryRealName         : override;
    206     wpQueryTitle            : override; 
     206    wpQueryTitle            : override;
    207207    wpRefresh               : override;
    208208*/
  • trunk/classes/idl/idl_image/wpimage.idl

    r49 r104  
    4141#include <somcls.idl>
    4242
    43 //typedef LHANDLE   HPAL;        /* hpal */
    4443typedef HPAL *PHPAL;
    4544
  • trunk/classes/makefile

    r67 r104  
    22
    33include ../make.inc
    4 PMPRINTFPATH = U:\PMPrintf
    54DISTNAME        =       cwaudio-classes-$(VERSION)
    65CC           = icc
     
    98#-Wcnd /Weff /Wini /Wpar /Wpro /Wuse /Wrea
    109#CFLAGS       =    /Wuse /Wrea -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C
    11 CFLAGS       =    -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C 
    12 
    13 LIBS            =       somtk.lib mmPM2.lib rexx.lib $(PMPRINTFPATH)\pmprintf.lib
    14 DEFS            = 
     10CFLAGS       =    -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C
     11
     12LIBS            =       somtk.lib mmPM2.lib rexx.lib
     13DEFS            =
    1514
    1615MOREINC =       ./include -I./inc -I../common_functions/include
     
    3534#Audio classes
    3635AUD_SCCOMPILEC  =       sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -sc -d$(CDIR)/c_audio -maddstar -mnoint -S128000 -C128000  $<
    37 AUD_SCCOMPILEIH =       sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000  $<
     36AUD_SCCOMPILEIH =       sc -I $(IDLDIR)/idl_audio -I $(IDLDIR)/idl_mm -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000  $<
    3837
    3938#Video
    4039VID_SCCOMPILEC  =       sc -I $(IDLDIR)/idl_video -p -r -sc -d$(CDIR)/c_video -maddstar -mnoint -S128000 -C128000  $<
    41 VID_SCCOMPILEIH =       sc -I $(IDLDIR)/idl_video -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000  $<
     40VID_SCCOMPILEIH =       sc -I $(IDLDIR)/idl_video -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000  $<
    4241
    4342#image
    4443IMG_SCCOMPILEC  =       sc -I $(IDLDIR)/idl_image -p -r -sc -d$(CDIR)/c_image -maddstar -mnoint -S128000 -C128000  $<
    45 IMG_SCCOMPILEIH =       sc -I $(IDLDIR)/idl_image -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000  $<
     44IMG_SCCOMPILEIH =       sc -I $(IDLDIR)/idl_image -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000  $<
    4645
    4746#base classes
    4847MM_SCCOMPILEC   =       sc -I $(IDLDIR)/idl_mm -p -r -sc -d$(CDIR)/c_mm -maddstar -mnoint -S128000 -C128000  $<
    49 MM_SCCOMPILEIH  =       sc -I $(IDLDIR)/idl_mm -p -r -sih";"h -dinclude -maddstar -mnoint -S128000 -C128000  $<
     48MM_SCCOMPILEIH  =       sc -I $(IDLDIR)/idl_mm -p -r -s"ih;h" -dinclude -maddstar -mnoint -S128000 -C128000  $<
    5049
    5150
     
    104103                        $(OBJDIR)/cwmmdisk.obj \
    105104                        $(OBJDIR)/mmfolder.obj
    106  
     105
    107106COMMON_OBJECTS  =       $(OBJDIR)/except.obj \
    108107                                $(OBJDIR)/message.obj \
     
    123122HLP_FILES       =       ./Help/de/cwmm049.hlp \
    124123                        ./Help/en/cwmm.hlp \
     124                        ./Help/es/cwmm034.hlp \
     125                        ./Help/fr/cwmm033.hlp \
    125126                        ./Help/nl/cwmm031.hlp \
    126127                        ./Help/it/cwmm039.hlp \
     
    191192        cd ./res && make
    192193        rc ./res/common_res/cwaudio.res cwmm.dll
    193         MAPSYM $(basename $@)
     194        MAPSYM cwmm.map
    194195
    195196###################################
     
    209210###################################
    210211# German
    211 ./Help/de/cwmm049.hlp:  ./Help/de/cwmm049.ipf 
     212./Help/de/cwmm049.hlp:  ./Help/de/cwmm049.ipf
    212213        cd ./Help/de && make   
    213214
     
    216217        cd ./Help/en && make
    217218
     219# Spanish
     220./Help/es/cwmm034.hlp:  ./Help/es/cwmm034.ipf
     221        cd ./Help/es && make
     222
     223# French
     224./Help/fr/cwmm033.hlp:  ./Help/fr/cwmm033.ipf
     225        cd ./Help/fr && make
     226
    218227# Dutch
    219228./Help/nl/cwmm031.hlp:  ./Help/nl/cwmm031.ipf
     
    224233        cd ./Help/it && make
    225234
    226 # Traditional chinese (TW)
    227 ./Help/tw/cwmm088.hlp:  ./Help/tw/cwmm088.ipf
     235# Taiwan
     236./Help/tw/cwmm088.hlp:  ./Help/tw/cwmm088.ipf
    228237        cd ./Help/tw && make
    229238
     
    315324        -cd ./Help/de && make clean
    316325        -cd ./Help/en && make clean
     326        -cd ./Help/es && make clean
     327        -cd ./Help/fr && make clean
    317328        -cd ./Help/nl && make clean
    318329        -cd ./Help/it && make clean
     
    328339        -cd ./Help/de && make cleaner
    329340        -cd ./Help/en && make cleaner
     341        -cd ./Help/es && make cleaner
     342        -cd ./Help/fr && make cleaner
    330343        -cd ./Help/nl && make cleaner
    331344        -cd ./Help/it && make cleaner
  • trunk/classes/mm-progs/MMPlayer/customprocs.c

    r2 r104  
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    4343#include <stdio.h>
    4444#include <stdlib.h>
     45#include <string.h>
    4546
    4647
     
    7071      {
    7172        PDRAGINFO pdi=PVOIDFROMMP(mp1);
    72        
     73
    7374        return handleDrag0ver( pdi, WinQueryWindow(hwnd, QW_PARENT));
    7475      }
     
    7677      {
    7778        PDRAGINFO pdi=PVOIDFROMMP(mp1);
    78        
     79
    7980        return handleDrop( pdi, WinQueryWindow(hwnd, QW_PARENT));
    8081      }
     
    104105        if(swp.fl & SWP_MINIMIZE)
    105106          break;
    106  
     107
    107108        hps=WinBeginPaint(hwnd, NULLHANDLE, NULLHANDLE);
    108109        WinQueryWindowRect(hwnd, &rcl);
    109110        WinDrawBitmap(hps, allBMPs[MAIN_BMP_IDX].hbm,
    110                       NULLHANDLE, 
     111                      NULLHANDLE,
    111112                      (PPOINTL)&rcl,
    112113                      0, 0,
    113                       DBM_IMAGEATTRS);   
     114                      DBM_IMAGEATTRS);
    114115        WinEndPaint(hps);
    115116        return MRFALSE;
     
    183184
    184185  WinDrawBitmap(ubPtr->hps, ci.hbmSource,
    185                 &ci.rclSource, 
     186                &ci.rclSource,
    186187                (PPOINTL)&rcl,
    187188                0, 0,
     
    211212  if(ulShowFeedback==2)
    212213    return 1;
    213  
     214
    214215  switch(usControl)
    215216    {
     
    237238  hps=WinGetPS(hwnd);
    238239  WinDrawBitmap(hps, ci.hbmSource,
    239                 &ci.rclSource, 
     240                &ci.rclSource,
    240241                (PPOINTL)&rcl,
    241242                0, 0,
     
    255256
    256257  switch (msg)
    257     {     
     258    {
    258259#if 0
    259260      /* Drag and drop of audio files */
     
    330331        USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    331332
    332         if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 
     333        if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET &&
    333334           y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY)
    334335           && y>=WinQueryWindowUShort(hwnd, SLIDERY)) {
     
    346347        if(SHORT1FROMMP(mp2)) {
    347348          hps=WinGetPS(hwnd);
    348           WinQueryWindowRect(hwnd, &rcl);       
     349          WinQueryWindowRect(hwnd, &rcl);
    349350          GpiSetLineType(hps, LINETYPE_DOT);
    350351          ptl.x=rcl.xLeft;
     
    369370      if(WinQueryFocus(HWND_DESKTOP)==hwnd) {
    370371        if(SHORT2FROMMP(mp2)==VK_TAB && (SHORT1FROMMP(mp1) & KC_VIRTUALKEY))
    371           if(SHORT1FROMMP(mp1) & (KC_KEYUP|KC_PREVDOWN)) 
     372          if(SHORT1FROMMP(mp1) & (KC_KEYUP|KC_PREVDOWN))
    372373            return (MRESULT)TRUE;
    373374
     
    486487        USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    487488
    488         if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 
     489        if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET &&
    489490           y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY)
    490491           && y>=WinQueryWindowUShort(hwnd, SLIDERY)){
     
    522523        USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    523524
    524        
     525
    525526        lTemp=lPos;
    526      
     527
    527528        rcl.xLeft=WinQueryWindowULong(hwnd, SLIDERX);
    528529        rcl.yBottom=WinQueryWindowULong(hwnd, SLIDERY);
     
    624625          LONG  lPos=WinQueryWindowULong(hwnd, SLIDERARMPOS);
    625626          USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    626           if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 
     627          if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET &&
    627628             y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY)
    628629             && y>=WinQueryWindowUShort(hwnd, SLIDERY)) {
     
    689690        hps=WinBeginPaint(hwnd, NULLHANDLE, NULLHANDLE);
    690691        rcl3=rcl=rcl2;
    691         /* Arm pos */       
     692        /* Arm pos */
    692693        rcl2.xLeft+=lPos;
    693         /* Arm size */       
     694        /* Arm size */
    694695        rcl2.xRight=rcl2.xLeft+usWidth;
    695        
     696
    696697        /* Shaft */
    697698        /* Left part */
     
    742743        if(!rc)
    743744          {
    744             WinFillRect(hps,&rcl2, CLR_PALEGRAY);       
     745            WinFillRect(hps,&rcl2, CLR_PALEGRAY);
    745746            WinDrawBorder(hps, &rcl2, 2, 2, 0, 0 ,0x0400);
    746747          }
     
    779780      return (MRESULT)FALSE;
    780781    }
    781  
     782
    782783  switch(poi->idItem)
    783784    {
     
    786787        //DosBeep(5000, 50);
    787788      WinDrawBitmap(poi->hps, ciArm.hbmSource,
    788                     &ciArm.rclSource, 
     789                    &ciArm.rclSource,
    789790                    (PPOINTL)&poi->rclItem,
    790791                    0, 0,
     
    796797        WinDrawBitmap(poi->hps,
    797798                      ci.hbmSource,
    798                       &ci.rclSource, 
     799                      &ci.rclSource,
    799800                      (PPOINTL)&poi->rclItem,
    800801                      0, 0,
     
    815816        if(!WinDrawBitmap(poi->hps, ci.hbmSource,
    816817                          &rcl,
    817                           //&ci.rclSource, 
     818                          //&ci.rclSource,
    818819                          (PPOINTL)&poi->rclItem,
    819820                          0, 0,
     
    863864        char text[100];
    864865        CONTROLINFO ci;
    865        
     866
    866867        ci=ciControls[CTRLIDX_PLAYTIME];//ciVolSliderArm;
    867        
     868
    868869        hps=WinBeginPaint(hwnd, NULLHANDLE, NULL);
    869870        if(WinQueryWindowText(hwnd, sizeof(text), text))
     
    871872            POINTL ptl= {0};
    872873            WinDrawBitmap(hps, ci.hbmSource,
    873                           &ci.rclSource, 
     874                          &ci.rclSource,
    874875                          &ptl,
    875876                          0, 0,
  • trunk/classes/mm-progs/MMPlayer/display.c

    r2 r104  
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    4242#include <stdio.h>
    4343#include <stdlib.h>
     44#include <string.h>
    4445
    4546/* 0: time, 1: remaining, 2: filename */
     
    8889
    8990
    90 /* This funktion sets the playtime display according to the user settings.
     91/* This function sets the playtime display according to the user settings.
    9192   Supported are remaining time, elapsed time and ID3-tag display */
    92 void setPlayTimeText(hwndFrame)
     93void setPlayTimeText(HWND hwndFrame)
    9394{
    9495  char text[CCHMAXPATH];
     
    112113        /* Show filename */
    113114        text[0]=0;
    114        
     115
    115116        if(ulTemp>=3)
    116117          text[0]=0;
    117118        else if(ulTemp>=0)
    118119          strcpy(text, chrPtrName);
    119        
     120
    120121#if 0
    121122        else
    122123          ulTemp=15; /* Show playtime for midi files */
    123124#endif
    124      
     125
    125126        if(ulTemp>=3||!strlen(text)) {
    126127          /* Play time */
     
    135136        ulDisplayTimer=ulTemp;
    136137        break;
    137        
     138
    138139#if 0
    139140        /* Show ID3 tag */
     
    149150            if(ulTemp>=15)
    150151              text[0]=0;
    151             else if(ulTemp>=12) 
     152            else if(ulTemp>=12)
    152153              methodPtr(cwAudio, &chrPtr, sizeof(text), IDINFO_GENRE);
    153154            else if(ulTemp>=9)
     
    162163          else
    163164            ulTemp=15; /* Show playtime for midi files */
    164          
     165
    165166          if(ulTemp>=15||!strlen(text)) {
    166167            /* Play time */
  • trunk/classes/mm-progs/MMPlayer/mmplayer.c

    r46 r104  
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    5252#include "sys_funcs.h"
    5353
    54 #ifndef OPEN_DEFAULT 
     54#ifndef OPEN_DEFAULT
    5555/*  Open views for the wpOpen() method */
    5656
     
    135135
    136136/* Every folder has one running play thread to handle play commands */
    137 void _Optlink playThreadFunc (void *arg);
     137void playThreadFunc (void *arg);
    138138void controlPlaying(HWND hwndDialog, ULONG ulAction, ULONG ulReserved);
    139139BOOL stopAudioFile(HWND hwndFrame);
     
    211211  WinQueryPointerPos(HWND_DESKTOP, &ptl) ;
    212212  WinMapWindowPoints(HWND_DESKTOP,hwnd,&ptl,1);
    213   WinPopupMenu(hwnd, hwnd, hwndPopup, 
     213  WinPopupMenu(hwnd, hwnd, hwndPopup,
    214214               ptl.x, ptl.y, 0, PU_HCONSTRAIN | PU_VCONSTRAIN |
    215                PU_KEYBOARD | PU_MOUSEBUTTON1 | PU_MOUSEBUTTON2 | PU_NONE  ); 
    216  
     215               PU_KEYBOARD | PU_MOUSEBUTTON1 | PU_MOUSEBUTTON2 | PU_NONE  );
     216
    217217}
    218218
     
    227227  hResource=BMP_RESSOURCEHANDLE; //_queryResModuleHandle();
    228228  hps=WinGetPS(HWND_DESKTOP);
    229  
     229
    230230  /* The main BMP */
    231231  allBMPs[MAIN_BMP_IDX].hbm=GpiLoadBitmap(hps, hResource, IDBMP_TOPMIDDLE, 0, 0);
     
    327327  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclSource.xLeft,ci.rclSource.yBottom,
    328328                  ci.rclSource.xRight-ci.rclSource.xLeft,
    329                   ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE); 
     329                  ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE);
    330330  oldPlayTimeProc=WinSubclassWindow(WinWindowFromID(hwnd, IDST_MMPLAYERPLAYTIME), playTimeTextProc);
    331331
    332332  /* Pos slider */
    333333  ci=ciControls[CTRLIDX_POSSLIDER];//ciPosSlider;
    334   WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 
     334  WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10,
    335335                  hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE);
    336336  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom,
    337337                  ci.rclSource.xRight-ci.rclSource.xLeft,
    338338                  ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE | SWP_SIZE);
    339  
     339
    340340  WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO,
    341341             MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0),
    342              MPFROM2SHORT( 9, 9)); 
     342             MPFROM2SHORT( 9, 9));
    343343
    344344  /* Vol slider */
    345345  ci=ciControls[CTRLIDX_VOLSLIDER];//ciVolSlider;
    346   WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 
     346  WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10,
    347347                  hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE);
    348348  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom,
     
    351351  WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO,
    352352             MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0),
    353              MPFROM2SHORT( 9, 9)); 
     353             MPFROM2SHORT( 9, 9));
    354354
    355355}
     
    370370  if((rc & 0x0000ffff)!=MCIERR_SUCCESS) {
    371371    /* Problem with MCI. Clean up. The Timer will be stopped in the method */
    372     stopAudioFile(hwndFrame); 
     372    stopAudioFile(hwndFrame);
    373373  }
    374374  else {
    375375    if(!stricmp(retMsg, "stopped")) {
    376376      /* Audio file played. */
    377       stopAudioFile(hwndFrame); 
     377      stopAudioFile(hwndFrame);
    378378    }
    379379    showPlayTimeDisplay(hwndFrame, TRUE);/* Ensure display is visible */
     
    391391      return usItems;
    392392    }
    393  
     393
    394394  return 0;
    395395}
     
    397397BOOL DrgVerifyTypeCW(PDRAGITEM pDragItem, char * chrType)
    398398{
    399   /* DrgVerifyType() seems not to work when several types are in the list?? 
     399  /* DrgVerifyType() seems not to work when several types are in the list??
    400400     Dokumentation says, it works... */
    401401  /* Only check for a single type for now */
     
    467467    for(ulHash=0;*theString!='\0'; theString++)
    468468      ulHash=*theString+37*ulHash;
    469  
     469
    470470  return ulHash%HASHSIZE;
    471471}
     
    538538MRESULT handleDrag0ver(PDRAGINFO pdi, HWND hwnd)
    539539{
    540  
     540
    541541  /* Only accept one file */
    542542  if(DrgGetNumObjects(pdi)!=1) {
     
    546546  if(DrgCheckForKnownType(pdi, hwnd))
    547547    return MRFROM2SHORT(DOR_DROP, DO_COPY);
    548  
    549   return MRFROM2SHORT(DOR_NEVERDROP, DO_COPY); 
     548
     549  return MRFROM2SHORT(DOR_NEVERDROP, DO_COPY);
    550550}
    551551
     
    562562      char chrFile[CCHMAXPATH];
    563563      PDRAGITEM pDragItem;
    564      
     564
    565565      pDragItem=DrgQueryDragitemPtr(pdi, 0);
    566       DrgQueryStrName(pDragItem->hstrSourceName,sizeof(chrFile), chrFile); 
    567       DrgQueryStrName(pDragItem->hstrContainerName,sizeof(chrSourceName), chrSourceName); 
     566      DrgQueryStrName(pDragItem->hstrSourceName,sizeof(chrFile), chrFile);
     567      DrgQueryStrName(pDragItem->hstrContainerName,sizeof(chrSourceName), chrSourceName);
    568568      strcat(chrSourceName, chrFile);
    569      
     569
    570570      /* Start new file */
    571571      controlPlaying(hwnd, PLAY_FIRST, 0);
     
    608608             MPFROM2SHORT(SC_SIZE, TRUE),
    609609             MPFROMP(NULL));
    610  
     610
    611611  WinSendMsg(hwndMenu, /* Delete Minimize from the system menu */
    612612             MM_DELETEITEM,
    613613             MPFROM2SHORT(SC_MINIMIZE, TRUE),
    614614             MPFROMP(NULL));
    615  
     615
    616616  WinSendMsg(hwndMenu, /* Delete Maximize from the system menu */
    617617             MM_DELETEITEM,
     
    648648
    649649  switch (msg)
    650     {     
     650    {
    651651    case DM_DRAGOVER:
    652652      {
     
    676676        swctl.fbJump=SWL_JUMPABLE;
    677677        WinAddSwitchEntry(&swctl);
    678        
     678
    679679        adjustDialogControlPos(hwnd);
    680        
     680
    681681        /* Set volume slider*/
    682682        WinSendMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERVOLUME),
     
    684684                    MPFROM2SHORT(SMA_SLIDERARMPOSITION,SMA_INCREMENTVALUE),
    685685                    MPFROMLONG( ulVolume));
    686        
     686
    687687        /* Subclass buttons for DnD */
    688688        orgButtonProc=WinSubclassWindow(WinWindowFromID(hwnd, IDPB_MMPLAYERPLAY), buttonProc);
    689689        WinSubclassWindow(WinWindowFromID(hwnd, IDPB_MMPLAYERPAUSE), buttonProc);
    690690        WinSubclassWindow(WinWindowFromID(hwnd, IDPB_MMPLAYERSTOP), buttonProc);
    691                
     691
    692692        FixSysMenu(hwnd);
    693693
     
    695695        if(allBMPs[MAIN_BMP_IDX].hbm) {
    696696          SWP swp;
    697          
    698           WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp);         
    699           WinSetWindowPos(WinWindowFromID(hwnd, ID_CLIENT), NULLHANDLE, 
    700                           WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME), 
    701                           WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME), 
     697
     698          WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp);
     699          WinSetWindowPos(WinWindowFromID(hwnd, ID_CLIENT), NULLHANDLE,
     700                          WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME),
     701                          WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME),
    702702                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cx,
    703703                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cy,
    704704                          SWP_SIZE|SWP_MOVE);
    705705          orgBgProc=WinSubclassWindow(WinWindowFromID(hwnd, ID_CLIENT), bgProc);
    706          
     706
    707707          WinSetWindowPos(hwnd, NULLHANDLE, 0, 0,
    708708                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cx+WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME)*2,
     
    732732      /*****************************************************/
    733733    case WM_APPTERMINATENOTIFY:
    734      
     734
    735735      switch(SHORT1FROMMP(mp1))
    736736        {
     
    745745          return MRFALSE;
    746746        case NOTIFY_CONTEXT:
    747           /* Show context menu. */           
     747          /* Show context menu. */
    748748          HlpContextMenu(hwnd, iWhichDisplay+ID_MENUITEMELAPSED, TRUE);
    749749          return MRFALSE;
     
    752752        }
    753753      return MRFALSE;
    754      
     754
    755755      /*****************************************************/
    756756      /* The following two messages are for device sharing */
     
    760760        char chrCommand[100];
    761761        int iWavePriv;
    762    
     762
    763763        iWavePriv=ulPid;
    764764
     
    791791      /* SETPOSITIONADVICE does not work for some reason,  */
    792792      /* so a timer is used. Yes, it's quit cumbersome...  */
    793       /*****************************************************/ 
     793      /*****************************************************/
    794794    case WM_TIMER:
    795795      if(SHORT1FROMMP(mp1)==IDTIMER_PLAY) {
     
    812812            /* Set slider position */
    813813
    814             WinPostMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERPOSBAR), 
     814            WinPostMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERPOSBAR),
    815815                        SLM_SETSLIDERINFO,
    816816                        MPFROM2SHORT(SMA_SLIDERARMPOSITION,SMA_INCREMENTVALUE),
     
    898898        default:
    899899          break;
    900         }             
     900        }
    901901      break;
    902902
     
    909909        char chrCommand[50];
    910910        char retMsg[20];
    911        
     911
    912912        switch(SHORT2FROMMP(mp1))
    913913          {
     
    939939                      static long lLastPos=0;
    940940                      long lPos=LONGFROMMP(mp2);
    941              
     941
    942942                      bPosDragging=TRUE;
    943943                      lPos*=ulTotalLength/100;
    944944                      if(lPos/1000!=lLastPos) {
    945945                        /* Prevent flickering */
    946                         sprintf(chrCommand, "%d:%02d", lPos/1000/60, (lPos/1000)%60);
     946                        sprintf(chrCommand, "%lu:%02lu", lPos/1000/60, (lPos/1000)%60);
    947947                        WinSetWindowText(WinWindowFromID(hwnd, IDST_MMPLAYERPLAYTIME), chrCommand);
    948948                        lLastPos=lPos/1000;
     
    963963                    {
    964964                      ULONG ulValue;
    965                      
     965
    966966                      ulValue=LONGFROMMP(mp2);
    967967                      ulVolume=ulValue;
     
    975975
    976976                      bPosDragging=FALSE;
    977                       lPos*=1000;                     
     977                      lPos*=1000;
    978978                      lPos*=ulTotalLength/100;
    979979                      lPos/=1000;// Use only full seconds
     
    982982                      seekAudioFile(lPos);
    983983                      /* restart timer */
    984                       WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, IDTIMER_PLAY, PLAYTIMER_DELAY); 
     984                      WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, IDTIMER_PLAY, PLAYTIMER_DELAY);
    985985                      ulPos=lPos/1000;
    986986                      break;
     
    999999      break;
    10001000    }/* switch */
    1001  
     1001
    10021002  return WinDefDlgProc( hwnd, msg, mp1, mp2);
    10031003}
     
    10191019                     ))==NULLHANDLE)
    10201020    return FALSE;
    1021  
     1021
    10221022  ulSize=sizeof(chrFileName);
    1023  
     1023
    10241024  if ((rc = DosOpen(chrFileName, &handle, &act,
    10251025                    0L, 0, OPEN_ACTION_OPEN_IF_EXISTS,
     
    10851085BOOL writeVolumeToIni(char * iniFile, char* chrApp, char *chrKey, ULONG ulVolume)
    10861086{
    1087  
     1087
    10881088  return IniSaveInt(iniFile, chrApp, chrKey, ulVolume);
    10891089}
     
    11081108  if(MMIO_SUCCESS!=mmioIdentifyFile(chrFile, &mmioInfo, &mmFormatInfo, &fourCC, 0,0))
    11091109    {
    1110       return 0; 
     1110      return 0;
    11111111    }
    11121112
    11131113  if(mmFormatInfo.ulMediaType==MMIO_MEDIATYPE_MIDI)
    11141114    return 1; /* Midi */
    1115  
     1115
    11161116  /* Any other audio file */
    11171117  return 2;
     
    11431143  if(hab) {
    11441144    hmq=WinCreateMsgQueue(hab,0);
    1145     if(hmq) { 
    1146       /* Check if user started prog by hand */   
     1145    if(hmq) {
     1146      /* Check if user started prog by hand */
    11471147      if(argc!=NUMPARAMS) {/* Not the right num of params */
    11481148        pmUsage();
     
    11611161          {
    11621162            /* FIXME: Identify error !!!*/
    1163            
     1163
    11641164          };
    1165        
     1165
    11661166        if(rc==1)
    11671167          {
     
    11761176          strcpy(chrClassName, params[1]);
    11771177
    1178         /* Get our ressource dll */ 
     1178        /* Get our ressource dll */
    11791179        //        RESSOURCEHANDLE=0;
    11801180        RESSOURCEHANDLE=queryResModuleHandle(argv[0]);
     
    11891189        WinRegisterClass(WinQueryAnchorBlock(HWND_DESKTOP), SLIDER_CLASS, privateSliderProc,0, SLADDBYTES);
    11901190
    1191         _loadBmps();       
     1191        _loadBmps();
    11921192        DosGetInfoBlocks(&ptib, &ppib);
    11931193        ulPid=ppib->pib_ulpid;
    11941194        _beginthread(playThreadFunc,NULL,8192*16, NULLHANDLE); //Fehlerbehandlung fehlt
    11951195
    1196         if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 
     1196        if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc,
    11971197                       RESSOURCEHANDLE, IDDLG_MMPLAYER, 0) == DID_ERROR )
    11981198          {
    11991199            /*
    1200               Text:   
    1201               Title:  "Installation problem"                       
    1202               */             
     1200              Text:
     1201              Title:  "Installation problem"
     1202              */
    12031203            messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text),
    12041204                        title, IDSTR_INSTALLERRORTITLE , sizeof(title),
  • trunk/classes/mm-progs/MMPlayer/playaudio.c

    r57 r104  
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    7373  char chrCommand[50];
    7474  char retMsg[100];
    75   ULONG rc;
    7675
    7776  iWavePriv=ulPid;
     
    7978  if(bPaused) {
    8079    sprintf(chrCommand,"RESUME wave%d wait", iWavePriv);
    81     rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
     80    mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    8281    bPaused=FALSE;
    8382    showPlayTimeDisplay( hwndFrame, TRUE);
     
    8584  else {
    8685    sprintf(chrCommand,"PAUSE wave%d wait", iWavePriv);
    87     rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
     86    mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    8887    bPaused=TRUE;
    8988  }
     
    9695  char chrCommand[50];
    9796  char retMsg[100];
    98   ULONG rc;
    9997
    10098  iWavePriv=ulPid;
    101  
     99
    102100  if(bIsPlaying) {
    103101    sprintf(chrCommand,"stop wave%d wait", iWavePriv);
    104     rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    105    
     102    mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
     103
    106104    sprintf(chrCommand,"close wave%d wait", iWavePriv);
    107     rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    108    
     105    mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
     106
    109107    _resetDisplay(hwndFrame);
    110108    showPlayTimeDisplay( hwndFrame, TRUE);
    111109    WinStopTimer(WinQueryAnchorBlock(hwndFrame), hwndFrame, IDTIMER_PLAY);
    112110    bIsPlaying=FALSE;
    113     bPaused=FALSE; 
     111    bPaused=FALSE;
    114112  }
    115113  return TRUE;
     
    155153  hwndNotify=hwndFrame;//WinWindowFromID(hwndTop, IDDLG_TOPMIDDLE);
    156154
    157   /* Start audio file */ 
     155  /* Start audio file */
    158156  sprintf(chrCommand,"open \"%s\"  type %s alias wave%d SHAREABLE wait", chrSourceName, chrDevice, iWavePriv);
    159157  rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), hwndNotify, 0);
    160158  if((rc & 0x0000ffff)!=MCIERR_SUCCESS)
    161159    return 0;
    162  
     160
    163161  /* Set time format */
    164162  sprintf(chrCommand,"SET wave%d TIME FORMAT MILLISECONDS wait", iWavePriv);
     
    168166    rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    169167    return 0;
    170   }     
     168  }
    171169
    172170#if 0
     
    219217  char chrCommand[50];
    220218  char retMsg[20];
    221   APIRET rc;
    222219
    223220  sprintf(chrCommand,"PLAY wave%ld from %ld", ulPid, lPosSec);
    224   rc=mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
     221  mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    225222  //  ulStartPosition=lPosSec;
    226223  bPaused=FALSE;
     
    269266
    270267/* Every folder has one running play thread to handle play commands */
    271 void _Optlink playThreadFunc (void *arg)
     268void playThreadFunc (void *arg)
    272269{
    273270  HAB  hab;
  • trunk/classes/mm-progs/audioconverter/audconv.c

    r48 r104  
    1818 * along with this program; see the file COPYING.  If not, write to
    1919 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    20  */         
     20 */
    2121/*
    2222 * If you need another license for your project/product (commercial,
    2323 * noncommercial, whatever) contact me at
    24  * 
     24 *
    2525 * http://www.os2world.com/cdwriting
    2626 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    7070//#define INI_NAME_COLOR        "color"
    7171
    72 void HlpSendCommandToObject(char* chrObject, char* command);
     72void HlpSendCommandToObject(PSZ chrObject, PSZ command);
    7373BOOL percentRegisterBarClass(void);
    74 BOOL IniSaveWindowPos(char * iniFile, char* chrApp, char *chrKey, HWND hwnd);
    75 BOOL IniRestoreWindowPos(char * iniFile, char* chrApp, char *chrKey, HWND hwnd);
    76 BOOL IniSaveWindowClrs(char * chrIniFile, char* chrApp , HWND hwnd);
    77 BOOL IniRestoreWindowClrs(char * chrIniFile, char* chrApp , HWND hwnd);
    78 BOOL HlpBuildMMProgIniFileName(char* chrProgname, char * chrBuffer, ULONG ulBufferSize);
    79 HMODULE queryResModuleHandle(char *chrExePath);
     74BOOL IniSaveWindowPos(PSZ iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd);
     75BOOL IniRestoreWindowPos(PSZ iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd);
     76BOOL IniSaveWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd);
     77BOOL IniRestoreWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd);
     78BOOL HlpBuildMMProgIniFileName(PSZ chrProgname, PSZ chrBuffer, ULONG ulBufferSize);
     79HMODULE queryResModuleHandle(PSZ chrExePath);
    8080void freeResHandle();
    81 BOOL getMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd);
    82 ULONG messageBox( char* text, ULONG ulTextID , LONG lSizeText,
    83                   char* title, ULONG ulTitleID, LONG lSizeTitle,
     81BOOL getMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd);
     82ULONG messageBox( PSZ text, ULONG ulTextID , LONG lSizeText,
     83                  PSZ title, ULONG ulTitleID, LONG lSizeTitle,
    8484                  HMODULE hResource, HWND hwnd, ULONG ulFlags);
    8585
     
    9090BOOL bHaveWindowPos=FALSE;
    9191
    92 char chrTargetName[CCHMAXPATH]={0};
    93 char chrSourceName[CCHMAXPATH]={0};
    94 char chrProcName[CCHMAXPATH]={0};
    95 char chrIniFile[CCHMAXPATH];
     92UCHAR chrTargetName[CCHMAXPATH]={0};
     93UCHAR chrSourceName[CCHMAXPATH]={0};
     94UCHAR chrProcName[CCHMAXPATH]={0};
     95UCHAR chrIniFile[CCHMAXPATH];
    9696
    9797int numArgs;
     
    118118void pmUsage();
    119119
    120 BOOL createTargetName(char *sourceName, char *chrExt)
     120BOOL createTargetName(PSZ sourceName, PSZ chrExt)
    121121{
    122   char *textPtr;
    123 
    124   strcpy(chrTargetName, sourceName);
    125   if((textPtr=strrchr(chrTargetName, '.'))!=NULLHANDLE)
     122  PCHAR textPtr=NULL;
     123
     124  strcpy((PCHAR)chrTargetName, (PCHAR)sourceName);
     125  if((textPtr=strrchr((PCHAR)chrTargetName, '.'))!=NULL)
    126126    *textPtr=0;
    127127  else
    128     textPtr=chrTargetName;
     128    textPtr=(PCHAR)chrTargetName;
    129129  strcat(textPtr,".");
    130   strcat(textPtr, chrExt);
     130  strcat(textPtr, (PCHAR)chrExt);
    131131#if 0
    132132        WinMessageBox( HWND_DESKTOP, HWND_DESKTOP, textPtr,
     
    153153            '\0',
    154154            sizeof(MMFORMATINFO) );
    155    
     155
    156156    mmFormatInfo.ulMediaType |= MMIO_MEDIATYPE_AUDIO;
    157     mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED;   
     157    mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED;
    158158    ulReturnCode = mmioQueryFormatCount ( &mmFormatInfo,
    159159                                          &lNumIOProcs,
    160160                                          0,
    161161                                          0 );
    162    
     162
    163163    if( ulReturnCode != MMIO_SUCCESS )
    164164      {
     
    181181        return FALSE;
    182182      }
    183    
     183
    184184    /*
    185185     * call mmioGetFormats to get info on the formats supported.
     
    199199        return FALSE;
    200200      }
    201    
     201
    202202    if( lFormatsRead != lNumIOProcs )
    203203      {
     
    214214    for ( index = 0, sIdx=0; index <lNumIOProcs; index++ )
    215215      {
    216         char szName[CCHMAXPATH];
    217 
    218         mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L);       
     216        UCHAR szName[CCHMAXPATH];
     217
     218        mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L);
    219219        /* Insert NULL string terminator */
    220         *( szName + lBytesRead ) = (CHAR)NULL;
     220        *( szName + lBytesRead ) = 0;
    221221
    222222#ifdef DEBUG
    223         SysWriteToTrapLog("%d  IO-Proc: %s, %s\n", index, 
     223        SysWriteToTrapLog("%d  IO-Proc: %s, %s\n", index,
    224224                          pmmFormatInfoArray->szDefaultFormatExt,
    225225                          szName);
     
    231231            WinSendMsg(hwndDrop, LM_INSERTITEM,(MPARAM)LIT_END,
    232232                       (MPARAM)szName);
    233            
    234            
     233
     234
    235235            iPrivIOProc[sIdx]=index;
    236            
     236
    237237#ifdef DEBUG
    238238            SysWriteToTrapLog("-- %d  %d, sIdx: %d %s\n", index, iPrivIOProc[sIdx], sIdx,
     
    240240                              );
    241241#endif
    242            
    243            
     242
     243
    244244            /* Set text field */
    245245            if(bNoProcGiven) {
    246246              WinSetWindowText(hwndDrop, szName);
    247               createTargetName(chrSourceName, pmmFormatInfoArray->szDefaultFormatExt);
     247              createTargetName(chrSourceName, (PSZ)pmmFormatInfoArray->szDefaultFormatExt);
    248248              iIoProc=iPrivIOProc[sIdx];
    249249              bNoProcGiven=FALSE;
    250250            }
    251251            else {
    252               if(!stricmp(szName, chrProcName)) {
     252              if(!stricmp((PCHAR)szName, (PCHAR)chrProcName)) {
    253253                WinSetWindowText(hwndDrop, szName);
    254254                /* Create target name */
    255                 createTargetName(chrSourceName, pmmFormatInfoArray->szDefaultFormatExt);
     255                createTargetName(chrSourceName, (PSZ)pmmFormatInfoArray->szDefaultFormatExt);
    256256                iIoProc=iPrivIOProc[sIdx];
    257257              }
     
    262262        /*
    263263         *  advance to next entry in mmFormatInfo array
    264          */       
     264         */
    265265        pmmFormatInfoArray++;
    266266      }
     
    268268}
    269269
    270 BOOL queryAudioInfo(char *chrFile)
     270BOOL queryAudioInfo(PSZ chrFile)
    271271{
    272272  HMMIO hmmio;
     
    275275  LONG lBytesRead=0;
    276276  APIRET rc;
    277  
     277
    278278  memset(&mmioinfo,0, sizeof(mmioinfo));
    279279  mmioinfo.ulTranslate = MMIO_TRANSLATEHEADER;
     
    321321#endif
    322322
    323 void _Optlink convertThreadFunc (void *arg)
     323void convertThreadFunc (void *arg)
    324324{
    325325  HAB  hab;
     
    337337      LONG lBytesWritten=0;
    338338      ULONG rc;
    339       PBYTE buffer;
     339      PCHAR buffer=NULL;
    340340
    341341      do {
     
    349349        if((hmmio=mmioOpen(chrSourceName, &mmioinfo,MMIO_READ))==NULLHANDLE)
    350350          {
    351             char text[500];
    352             snprintf(text, sizeof(text)-1,"mmioOpen error with file %s\n", chrSourceName);
    353             WinMessageBox(hwnd, hwnd, "",
     351            UCHAR text[500];
     352            snprintf((PCHAR)text, sizeof(text)-1,"mmioOpen error with file %s\n", chrSourceName);
     353            WinMessageBox(hwnd, hwnd, (PSZ)"",
    354354                          text,
    355355                          0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE );
     
    360360                           &lBytesRead, 0, 0);
    361361        if(rc!=MMIO_SUCCESS) {
    362           char text[500];
     362          UCHAR text[500];
    363363          mmioClose(hmmio, 0);
    364           snprintf(text, sizeof(text)-1,"mmioGetHeader error!");
    365           WinMessageBox(hwnd, hwnd, "",
     364          snprintf((PCHAR)text, sizeof(text)-1,"mmioGetHeader error!");
     365          WinMessageBox(hwnd, hwnd, (PSZ)"",
    366366                        text,
    367367                        0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE );
     
    380380        if((hmmioTarget=mmioOpen(chrTargetName, &mmioinfo, MMIO_WRITE|MMIO_CREATE))==NULLHANDLE)
    381381          {
    382             char chrError[CCHMAXPATH];
    383             char text[500];
     382            UCHAR chrError[64];
     383            UCHAR text[CCHMAXPATH*2];
    384384            rc=mmioGetLastError(hmmioTarget);
    385             mciGetErrorString(mmioinfo.ulErrorRet ,chrError, sizeof(chrError));
    386             snprintf(text, sizeof(text)-1,"mmioOpen error with file %s:\n%s\n%d", chrTargetName, chrError,mmioinfo.ulErrorRet);
     385            mciGetErrorString(mmioinfo.ulErrorRet ,chrError, sizeof(chrError)-1);
     386            snprintf((PCHAR)text, sizeof(text)-1,"mmioOpen error with file %s:\n%s\n%lu", chrTargetName, chrError,mmioinfo.ulErrorRet);
    387387            mmioClose(hmmio,0);
    388             WinMessageBox(hwnd, hwnd, "",
     388            WinMessageBox(hwnd, hwnd, (PSZ)"",
    389389                          text,
    390390                          0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE );
     
    394394        rc = mmioSetHeader(hmmioTarget, &mmAudioHeader,sizeof(MMAUDIOHEADER),
    395395                           &lBytesWritten, 0, 0);
    396        
     396
    397397        /* Get buffer */
    398         if((buffer=(void*)malloc(CONVERTBUFFERSIZE))==NULLHANDLE) {
    399           char text[500];
     398        if((buffer=(PCHAR)malloc(CONVERTBUFFERSIZE))==NULLHANDLE) {
     399          UCHAR text[500];
    400400          mmioClose(hmmio, 0);
    401401          mmioClose(hmmioTarget,0);
    402           snprintf(text, sizeof(text)-1,"Can't get memory buffer!");
    403           WinMessageBox(hwnd, hwnd, "",
     402          snprintf((PCHAR)text, sizeof(text)-1,"Can't get memory buffer!");
     403          WinMessageBox(hwnd, hwnd, (PSZ)"",
    404404                        text,
    405405                        0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE );
    406          
     406
    407407          break;
    408408        }
     
    421421        }while(rc!=0 && rc!=MMIO_ERROR && !bBreak/*&& lBytesWritten <1000000*/);
    422422        if(rc==MMIO_ERROR) {
    423           char text[500];
    424           snprintf(text, sizeof(text)-1,"Error while reading audio data!");
    425           WinMessageBox(hwnd, hwnd, "",
     423          UCHAR text[500];
     424          snprintf((PCHAR)text, sizeof(text)-1,"Error while reading audio data!");
     425          WinMessageBox(hwnd, hwnd, (PSZ)"",
    426426                        text,
    427427                        0UL, MB_OK | MB_ICONEXCLAMATION|MB_MOVEABLE );
    428428        }
    429429        if(!bBreak) {
    430           char chrCommand[CCHMAXPATH*2];
     430          UCHAR chrCommand[CCHMAXPATH*2];
    431431          WinSendMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTPERCENT), MPFROMLONG(100));
    432432          /* Refresh details view */
    433           HlpSendCommandToObject(chrTargetName, "CWAUDIOREFRESH=1");
    434           sprintf(chrCommand,"CWAUDIOCOPYTAGTO=%s;", chrTargetName);
     433          HlpSendCommandToObject(chrTargetName, (PSZ)"CWAUDIOREFRESH=1");
     434          sprintf((PCHAR)chrCommand,"CWAUDIOCOPYTAGTO=%s;", chrTargetName);
    435435          HlpSendCommandToObject(chrSourceName, chrCommand);
    436436        }
     
    443443      }
    444444      while(TRUE);
    445       WinSendMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0);     
     445      WinSendMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0);
    446446      WinDestroyMsgQueue(hmq);
    447447    }
     
    464464MRESULT EXPENTRY decodeStatusDialogProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    465465{
    466   char text[CCHMAXPATH*4 +10];
    467   char title[CCHMAXPATH*4];
     466  UCHAR text[CCHMAXPATH*4 +10];
     467  UCHAR title[CCHMAXPATH*4];
    468468  SWCNTRL swctl;
    469469  PID pid;
     
    471471
    472472  switch (msg)
    473     {     
     473    {
    474474    case WM_INITDLG:
    475475
     
    493493
    494494      WinSendMsg(WinWindowFromID(hwnd,IDST_CONVERTNAME),EM_SETTEXTLIMIT,MPFROMSHORT((SHORT)CCHMAXPATH),0);
    495      
    496       WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTCDBITS), "");
    497      
     495
     496      WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTCDBITS), (PSZ)"");
     497
    498498      /* Filename */
    499499      WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTNAME), chrSourceName);
    500      
     500
    501501      /* Set dialog font to WarpSans for Warp 4 and above */
    502502      if(SysQueryOSRelease()>=40) {
     
    507507
    508508      /* Set percent bars to 0. */
    509       WinSetWindowText(WinWindowFromID(hwnd,IDBAR_CONVERTPROGRESS),"0#0%");
     509      WinSetWindowText(WinWindowFromID(hwnd,IDBAR_CONVERTPROGRESS),(PSZ)"0#0%");
    510510
    511511      WinSendMsg(WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), EM_SETTEXTLIMIT,MPFROMSHORT((SHORT)CCHMAXPATH),0);
     
    516516      /* Channels */
    517517      getMessage(title, IDSTR_CONVERTCHANNELS, sizeof(title), RESSOURCEHANDLE, hwnd);
    518       sprintf(text, title, sChannels);
     518      sprintf((PCHAR)text, (PCHAR)title, sChannels);
    519519      WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTCHANNELS),text);
    520520
    521521      /* Samplerate */
    522522      getMessage(title, IDSTR_CONVERTSAMPLERATE, sizeof(title), RESSOURCEHANDLE, hwnd);
    523       sprintf(text, title, iSampleRate);
     523      sprintf((PCHAR)text, (PCHAR)title, iSampleRate);
    524524      WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTSAMPLERATE),text);
    525525
    526526      /* Playtime */
    527527      getMessage(title, IDSTR_CONVERTPLAYTIME, sizeof(title), RESSOURCEHANDLE, hwnd);   
    528       sprintf(text, title, lSec/60, lSec%60);
     528      sprintf((PCHAR)text, (PCHAR)title, lSec/60, lSec%60);
    529529      WinSetWindowText(WinWindowFromID(hwnd,IDST_CONVERTPLAYTIME),text);
    530530
     
    551551            iPercent=0;
    552552
    553           /* Update track percent bar value. The helper prog sends us the actual decoded %. */         
     553          /* Update track percent bar value. The helper prog sends us the actual decoded %. */
    554554          sprintf(text,"%d#%d%%", iPercent, iPercent);
    555555          WinSetWindowText(WinWindowFromID(hwnd,IDBAR_CONVERTPROGRESS), text);
     
    593593
    594594           createTargetName(chrSourceName, pMemFormatInfo[iIoProc].szDefaultFormatExt);
    595            WinSetWindowText( WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), chrTargetName );           
     595           WinSetWindowText( WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), chrTargetName );
    596596         }
    597597        }
     
    613613        case IDPB_CONVERTBROWSE:
    614614          {
    615             char chrTitle[200];
     615            UCHAR chrTitle[200];
    616616            FILEDLG fd = { 0 };
    617617            /* User pressed the browse button */
     
    652652            ULONG ulDiskNum;
    653653            char cLetter;
    654            
     654
    655655            WinQueryWindowText( WinWindowFromID(hwnd,IDEF_CONVERTTARGETNAME), sizeof(chrTargetName), chrTargetName );
    656656
     
    669669            if(lFreeSpace<lAudioSize) {
    670670              /*
    671                 Text:   
    672                 Title: 
    673                 */       
     671                Text:
     672                Title:
     673                */
    674674              getMessage(title, IDSTR_CONVERTNOSPACETEXT,sizeof(title), RESSOURCEHANDLE, hwnd);
    675675              sprintf(text,title,lAudioSize/1000000 );
     
    681681            else {
    682682              /* Start decoding an audio file */
    683               WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE);           
     683              WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE);
    684684              WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTABORT), TRUE);
    685685              convertAudioFile(hwnd);
    686686            }
    687            
     687
    688688            break;
    689689          }
     
    695695      break;
    696696    }/* switch */
    697  
     697
    698698  return WinDefDlgProc( hwnd, msg, mp1, mp2);
    699699}
     
    726726  if(hab) {
    727727    hmq=WinCreateMsgQueue(hab,0);
    728     if(hmq) { 
    729       /* Check if user started prog by hand */   
     728    if(hmq) {
     729      /* Check if user started prog by hand */
    730730      if(argc<NUMPARAMS-1) {/* Not the actual num of params */
    731731        pmUsage();
     
    740740          strcpy(chrProcName, "");
    741741        }
    742         /* Get our ressource dll */ 
     742        /* Get our ressource dll */
    743743        //   RESSOURCEHANDLE=0;
    744744        RESSOURCEHANDLE=queryResModuleHandle(argv[0]);
     
    751751            {
    752752              /*
    753                 Text:   
    754                 Title:  "Installation problem"                       
    755                 */             
     753                Text:
     754                Title:  "Installation problem"
     755                */
    756756              messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text),
    757757                          title, IDSTR_INSTALLERRORTITLE , sizeof(title),
     
    762762              DosBeep(100,600);
    763763              return( 1 );
    764             }   
     764            }
    765765        }
    766766      }
  • trunk/classes/mm-progs/imageconverter/imgconv.c

    r2 r104  
    2323 * If you need another license for your project/product (commercial,
    2424 * noncommercial, whatever) contact me at
    25  * 
     25 *
    2626 * http://www.os2world.com/cdwriting
    2727 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    3737#define INCL_PM
    3838
     39#define USE_OS2_TOOLKIT_HEADERS
    3940#include <os2.h>
    4041
     
    4647#include "os2me.h"
    4748#include "mmioos2.h"
     49#include <mmio.h>
    4850#include "common.h"
    4951#include "mmres.h"
     
    143145    SIZEL         ImageSize;
    144146    ULONG         dwHeight, dwWidth;
    145     SHORT          wBitCount;
    146147    FOURCC        fccStorageSystem;
    147148    ULONG         dwPadBytes;
    148149    ULONG         dwRowBits;
    149150    ULONG         ulReturnCode;
    150     ULONG         dwReturnCode;
    151     HBITMAP       hbReturnCode;
    152     LONG          lReturnCode;
    153151    FOURCC        fccIOProc;
    154152    HDC           hdc;
     
    212210
    213211
    214     dwReturnCode = mmioQueryHeaderLength ( hmmio,
     212    ulReturnCode = mmioQueryHeaderLength ( hmmio,
    215213                                         (PLONG)&ulImageHeaderLength,
    216214                                           0L,
     
    247245    dwHeight = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cy;
    248246    dwWidth = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cx;
    249     wBitCount = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;
    250247    dwRowBits = dwWidth * mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;
    251248    dwNumRowBytes = dwRowBits >> 3;
     
    288285        return(0L);
    289286      }
    290    
     287
    291288
    292289    // ***************************************************
     
    294291    // the memory device context obtained above.
    295292    // ***************************************************
    296    
     293
    297294    ImageSize.cx = dwWidth;
    298295    ImageSize.cy = dwHeight;
     
    312309                       (ULONG) MB_OK | MB_MOVEABLE |
    313310                       MB_ERROR );
    314 #endif   
     311#endif
    315312        DevCloseDC(hdc);
    316313        DosFreeMem(pRowBuffer);
     
    350347    // Select the bitmap into the memory device context.
    351348    // ***************************************************
    352     hbReturnCode = GpiSetBitmap ( hps,
     349    ulReturnCode = GpiSetBitmap ( hps,
    353350                                  hbm );
    354351
     
    371368          *  it to work. Perhaps will get to it when time is available...
    372369          */
    373          lReturnCode = GpiSetBitmapBits ( hps,
     370         ulReturnCode = GpiSetBitmapBits ( hps,
    374371                                          (LONG) dwRowCount,
    375372                                          (LONG) 1,
     
    379376
    380377    /* Clean up */
    381     hbReturnCode = GpiSetBitmap ( hps,
     378    ulReturnCode = GpiSetBitmap ( hps,
    382379                                  NULLHANDLE );
    383380    ulReturnCode = mmioClose (hmmio, 0L);
     
    396393                          PBITMAPINFOHEADER2 pBmpInfoHeader2,
    397394                          HWND hwnd)
    398                           //                          ULONG ulWidth, 
     395                          //                          ULONG ulWidth,
    399396                          //     ULONG ulHeight)
    400397{
    401398  HBITMAP       hbmTarget;
    402399  SIZEL         ImageSize;
    403   HBITMAP       hbReturnCode;
    404400  HDC           hdc;
    405401  HPS           hps;
     
    413409   */
    414410  WinQueryWindowPos ( hwnd, &swp);
    415  
     411
    416412  /* Image size */
    417  
     413
    418414  ulHeight = bmpInfoHeader2.cy;
    419415  ulWidth = bmpInfoHeader2.cx;
     
    423419      aptl[0].x=0;
    424420      aptl[1].x=aptl[0].x+ulWidth;
    425      
     421
    426422      aptl[0].y=0;
    427423      aptl[1].y=aptl[0].y+ulHeight;
     
    429425  else {
    430426    float fWidth, fHeight, fRes;
    431    
     427
    432428    fWidth=(float)swp.cx/(float)ulWidth;
    433429    fHeight=(float)swp.cy/(float)ulHeight;
    434430    fRes=( fWidth>fHeight ? fHeight : fWidth);
    435    
    436    
     431
     432
    437433    aptl[0].x=0;
    438434    aptl[1].x=aptl[0].x+ulWidth*fRes;
    439    
     435
    440436      aptl[0].y=0;
    441437      aptl[1].y=aptl[0].y+ulHeight*fRes;
    442438    }
    443    
     439
    444440    aptl[2].x = 0;              // source lower left
    445441    aptl[2].y = 0;
    446    
     442
    447443    aptl[3].x = ulWidth;   // source upper right
    448444    aptl[3].y = ulHeight;
     
    468464        return(0L);
    469465      }
    470    
     466
    471467    // ***************************************************
    472468    // Create a memory presentation space that includes
     
    486482
    487483    /* Now scale the bitmap */
    488     memcpy(&bmpih2, pBmpInfoHeader2, sizeof(BITMAPINFOHEADER2));   
     484    memcpy(&bmpih2, pBmpInfoHeader2, sizeof(BITMAPINFOHEADER2));
    489485
    490486    bmpih2.cx=aptl[1].x-aptl[0].x;
     
    509505
    510506    /* Blit it */
    511     hbReturnCode = GpiSetBitmap ( hps, hbmTarget );
     507    GpiSetBitmap ( hps, hbmTarget );
    512508
    513509    GpiWCBitBlt(hps, hbm,4L, aptl, ROP_SRCCOPY, BBO_IGNORE);
    514510
    515     hbReturnCode = GpiSetBitmap( hps, NULLHANDLE );
     511    GpiSetBitmap( hps, NULLHANDLE );
    516512    GpiDestroyPS(hps);
    517513    DevCloseDC(hdc);
     
    545541  strcat(textPtr,".");
    546542  strcat(textPtr, chrExt);
    547  
     543
    548544  return TRUE;
    549545}
     
    564560            '\0',
    565561            sizeof(MMFORMATINFO) );
    566    
     562
    567563    mmFormatInfo.ulMediaType |= MMIO_MEDIATYPE_IMAGE;
    568     mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED;   
     564    mmFormatInfo.ulFlags|=MMIO_CANWRITETRANSLATED;
    569565    ulReturnCode = mmioQueryFormatCount ( &mmFormatInfo,
    570566                                          &lNumIOProcs,
    571567                                          0,
    572568                                          0 );
    573    
     569
    574570    if( ulReturnCode != MMIO_SUCCESS )
    575571      {
     
    592588        return FALSE;
    593589      }
    594    
     590
    595591    /*
    596592     * call mmioGetFormats to get info on the formats supported.
     
    610606        return FALSE;
    611607      }
    612    
     608
    613609    if( lFormatsRead != lNumIOProcs )
    614610      {
     
    627623        char szName[CCHMAXPATH];
    628624
    629         mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L);       
     625        mmioGetFormatName(pmmFormatInfoArray, szName, &lBytesRead, 0L, 0L);
    630626        /* Insert NULL string terminator */
    631         *( szName + lBytesRead ) = (CHAR)NULL;
     627        *( szName + lBytesRead ) = 0;
    632628
    633629
     
    643639
    644640#ifdef DEBUG
    645         HlpWriteToTrapLog("------ %d private idx: %d, IO-Proc: %s %s\n", index, sIdx, 
     641        HlpWriteToTrapLog("------ %d private idx: %d, IO-Proc: %s %s\n", index, sIdx,
    646642                          pmmFormatInfoArray->szDefaultFormatExt,
    647643                          szName);
    648644#endif
    649            
     645
    650646            iPrivIOProc[sIdx]=index;
    651647
     
    669665        /*
    670666         *  advance to next entry in mmFormatInfo array
    671          */       
     667         */
    672668        pmmFormatInfoArray++;
    673669      }
     
    700696  ULONG         iIndex, iCount, iCount2;
    701697
    702   MMFORMATINFO  mmFormatInfo; 
     698  MMFORMATINFO  mmFormatInfo;
    703699  FOURCC fccSourceIOProc;
    704700  FOURCC        fccStorageSystem;
     
    728724  mmioinfoSource.fccIOProc = fccSourceIOProc;
    729725  mmioinfoSource.ulTranslate = MMIO_TRANSLATEHEADER | MMIO_TRANSLATEDATA;
    730  
     726
    731727  hmmioSource = mmioOpen ((PSZ)pszSource, &mmioinfoSource,
    732728                          MMIO_READ | MMIO_DENYWRITE
    733729                          | MMIO_NOIDENTIFY);
    734  
     730
    735731  if (!hmmioSource)
    736732    return (FALSE);
    737  
     733
    738734  /*******************************/
    739735  /* Set up/open the TARGET file */
     
    743739  mmioinfoTarget.fccIOProc = fccTargetIOProc;
    744740  mmioinfoTarget.ulTranslate = MMIO_TRANSLATEHEADER | MMIO_TRANSLATEDATA;
    745  
     741
    746742  hmmioTarget = mmioOpen ((PSZ)pszTarget,
    747743                          &mmioinfoTarget,
    748744                          MMIO_CREATE | MMIO_WRITE |
    749745                          MMIO_DENYWRITE | MMIO_NOIDENTIFY);
    750  
     746
    751747  if (!hmmioTarget)
    752748    {
     
    762758  rcSrcQueryCount = mmioSendMessage(hmmioSource, MMIOM_QUERYIMAGECOUNT, (LONG)&iCount, (LONG)0);
    763759  if (rcSrcQueryCount) iCount = 1;
    764  
     760
    765761  // find out if the target has multiple image support
    766762  rcTrgQueryCount = mmioSendMessage(hmmioTarget, MMIOM_QUERYIMAGECOUNT, (LONG)&iCount2, (LONG)0);
    767  
     763
    768764  for (iIndex=0; iIndex<iCount; iIndex++) { /* loop through known images */
    769765
    770766    if (!rcSrcQueryCount && !rcTrgQueryCount) {  /* if Both support images */
    771      
     767
    772768      /* Determine if the target can write arrays, and if not */
    773769      /* then write the the default image from the source     */
    774770
    775771      if (rcTrgSetImage && iIndex > 0) break;  /* Target Can't Write array */
    776      
     772
    777773      /* Now, determine if the target can write arrays */
    778774      rcTrgSetImage = mmioSendMessage (hmmioTarget, MMIOM_SETIMAGE, (LONG)iIndex, (LONG)0);
    779      
     775
    780776      if (!rcTrgSetImage) mmioSendMessage (hmmioSource, MMIOM_SETIMAGE, (LONG)iIndex, (LONG)0);
    781      
     777
    782778    } else if (!rcSrcQueryCount) {      /* Source does but target doesn't */
    783779      /* Use the default image from source to copy to target */
     
    806802                              (LONG)sizeof (MMIMAGEHEADER), (PLONG)&ulBytesRead,
    807803                              0L, 0L);
    808    
     804
    809805    if (rc != MMIO_SUCCESS)
    810806      /* Header unavailable */
     
    814810        return (FALSE);
    815811      }
    816    
     812
    817813
    818814    /*************************/
     
    828824      }
    829825
    830    
     826
    831827    /* Use the SAME data as came from the SOURCE FILE.  It must be
    832828       compatible with the OS/2 bitmaps, etc.   */
     
    834830                              (LONG)sizeof (MMIMAGEHEADER), (PLONG)&ulBytesRead,
    835831                              0L, 0L);
    836    
     832
    837833    if (rc != MMIO_SUCCESS)
    838834      /* Header unavailable */
     
    846842        HlpWriteToTrapLog("Target header set.\n");
    847843#endif
    848    
     844
    849845    /* Determine the number of bytes required, per row */
    850846    /*      PLANES MUST ALWAYS BE = 1 */
     
    853849    dwRowBits = dwWidth * mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;
    854850    dwNumRowBytes = dwRowBits >> 3;
    855    
     851
    856852    /* Account for odd bits used in 1bpp or 4bpp images that are NOT on byte boundaries. */
    857853    if (dwRowBits % 8)
    858854      dwNumRowBytes++;
    859    
     855
    860856    /* Ensure the row length in bytes accounts for byte padding.  All bitmap data rows
    861857       must are aligned on LONG/4-BYTE boundaries.   The data FROM an IOProc
     
    880876
    881877        if (ulBytesRead) {
    882           LONG lWritten;
    883           lWritten=mmioWrite (hmmioTarget, pRowBuffer, (ULONG)ulBytesRead);
     878          mmioWrite (hmmioTarget, pRowBuffer, (ULONG)ulBytesRead);
    884879#ifdef DEBUG
    885880        HlpWriteToTrapLog("ulBytesRead: %d, lWritten: %d.\n", ulBytesRead, lWritten);
     
    898893  mmioClose (hmmioSource, 0L);
    899894  DosFreeMem(pRowBuffer);
    900  
     895
    901896  return(TRUE);
    902897}
    903898
    904 void _Optlink convertThreadFunc (void *arg)
     899void convertThreadFunc (void *arg)
    905900{
    906901  HAB  hab;
     
    916911                chrSourceName,
    917912                chrTargetName,  pMemFormatInfo[iIoProc].fccIOProc);
    918      
    919      
    920 
    921       WinPostMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0);     
     913
     914
     915
     916      WinPostMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTDONE), 0);
    922917      DosSleep(1000);
    923918      WinDestroyMsgQueue(hmq);
     
    944939    POINTL aptl[4];
    945940    HPS    hps;
    946     BOOL   bReturnCode;
    947941    ULONG  ulHeight;
    948942    ULONG  ulWidth;
     
    954948     *  Get position of image frame
    955949     */
    956     bReturnCode = WinQueryWindowPos ( hwnd, &swp);
     950    WinQueryWindowPos ( hwnd, &swp);
    957951
    958952    /* Center image */
     
    963957        aptl[0].x=(swp.cx-ulWidth)/2;
    964958        aptl[1].x=aptl[0].x+ulWidth;
    965        
     959
    966960        aptl[0].y=(swp.cy-ulHeight)/2;
    967961        aptl[1].y=aptl[0].y+ulHeight;
     
    977971      aptl[0].x=(swp.cx-ulWidth*fRes)/2;
    978972      aptl[1].x=aptl[0].x+ulWidth*fRes;
    979      
     973
    980974      aptl[0].y=(swp.cy-ulHeight*fRes)/2;
    981975      aptl[1].y=aptl[0].y+ulHeight*fRes;
    982976    }
    983    
     977
    984978    aptl[2].x = 0;              // source lower left
    985979    aptl[2].y = 0;
    986    
     980
    987981    aptl[3].x = ulWidth;   // source upper right
    988982    aptl[3].y = ulHeight;
     
    1004998    //       WinDrawBitmap(hps, hBitmap, NULLHANDLE, (PPOINTL)aptl, 0, 0, DBM_NORMAL/*|DBM_STRETCH*/);
    1005999#endif
    1006     bReturnCode = WinEndPaint (hps);
     1000    WinEndPaint (hps);
    10071001}
    10081002
     
    10111005
    10121006  switch (msg)
    1013     {     
     1007    {
    10141008    case WM_PAINT:
    10151009      {
     
    10361030
    10371031  switch (msg)
    1038     {     
     1032    {
    10391033    case WM_INITDLG:
    10401034#if 0
     
    10471041
    10481042      WinSendMsg(WinWindowFromID(hwnd,IDST_IMGCONVERTNAME),EM_SETTEXTLIMIT,MPFROMSHORT((SHORT)CCHMAXPATH),0);
    1049      
     1043
    10501044      /* Filename */
    10511045      WinSetWindowText(WinWindowFromID(hwnd,IDST_IMGCONVERTNAME), chrSourceName);
    1052      
     1046
    10531047      /* Set dialog font to WarpSans for Warp 4 and above */
    10541048      if(SysQueryOSRelease()>=40) {
     
    11121106            iPercent=0;
    11131107
    1114           /* Update track percent bar value. The helper prog sends us the actual decoded %. */         
     1108          /* Update track percent bar value. The helper prog sends us the actual decoded %. */
    11151109          sprintf(text,"%d#%d%%", iPercent, iPercent);
    11161110          WinSetWindowText(WinWindowFromID(hwnd,IDBAR_IMGCONVERTPROGRESS), text);
     
    11491143
    11501144           createTargetName(chrSourceName, pMemFormatInfo[iIoProc].szDefaultFormatExt);
    1151            WinSetWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME), chrTargetName );           
     1145           WinSetWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME), chrTargetName );
    11521146         }
    11531147        }
     
    12101204            // ULONG ulDiskNum;
    12111205            // char cLetter;
    1212            
     1206
    12131207            /* Get target name */
    1214             WinQueryWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME), 
     1208            WinQueryWindowText( WinWindowFromID(hwnd,IDEF_IMGCONVERTTARGETNAME),
    12151209                                sizeof(chrTargetName), chrTargetName );
    12161210#if 0
     
    12251219             if(lFreeSpace<lAudioSize) {
    12261220               /*
    1227                  Text:   
    1228                  Title: 
    1229                  */       
     1221                 Text:
     1222                 Title:
     1223                 */
    12301224               getMessage(title, IDSTR_CONVERTNOSPACETEXT,sizeof(title), RESSOURCEHANDLE, hwnd);
    12311225               sprintf(text,title,lAudioSize/1000000 );
     
    12371231             else {
    12381232               /* Start decoding an audio file */
    1239                WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE);           
     1233               WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTOK), FALSE);
    12401234               WinEnableWindow( WinWindowFromID(hwnd,IDPB_CONVERTABORT), TRUE);
    12411235               convertAudioFile(hwnd);
     
    12441238             /* Start converting image file */
    12451239             WinPostMsg(hwnd, WM_APPTERMINATENOTIFY, MPFROMLONG(MSG_CONVERTPERCENT), MPFROMLONG(0));
    1246              WinEnableWindow( WinWindowFromID(hwnd,IDPB_IMGCONVERTOK), FALSE);           
     1240             WinEnableWindow( WinWindowFromID(hwnd,IDPB_IMGCONVERTOK), FALSE);
    12471241             WinEnableWindow( WinWindowFromID(hwnd,IDPB_IMGCONVERTABORT), TRUE);
    12481242             convertImageFile(hwnd);
     
    12561250      break;
    12571251    }/* switch */
    1258  
     1252
    12591253  return WinDefDlgProc( hwnd, msg, mp1, mp2);
    12601254}
     
    12831277  if(hab) {
    12841278    hmq=WinCreateMsgQueue(hab,0);
    1285     if(hmq) { 
    1286       /* Check if user started prog by hand */   
     1279    if(hmq) {
     1280      /* Check if user started prog by hand */
    12871281      if(argc<NUMPARAMS-1) {/* Not the right num of params */
    12881282        pmUsage();
     
    12971291          strcpy(chrProcName, "");
    12981292        }
    1299         /* Get our ressource dll */ 
     1293        /* Get our ressource dll */
    13001294        //   RESSOURCEHANDLE=0;
    13011295        RESSOURCEHANDLE=queryResModuleHandle(argv[0]);
     
    13041298        /* Register the percent bar window class */
    13051299        percentRegisterBarClass();
    1306        
    1307         globalHab=WinQueryAnchorBlock(HWND_DESKTOP);       
     1300
     1301        globalHab=WinQueryAnchorBlock(HWND_DESKTOP);
    13081302        hBitmap=loadBitmap ( chrSourceName, &bmpInfoHeader2);
    1309        
    1310         if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 
     1303
     1304        if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc,
    13111305                       RESSOURCEHANDLE, IDDLG_IMGCONVERT, 0) == DID_ERROR )
    13121306          {
     
    13141308            char title[CCHMAXPATH];
    13151309            /*
    1316               Text:   
    1317               Title:  "Installation problem"                       
    1318               */             
     1310              Text:
     1311              Title:  "Installation problem"
     1312              */
    13191313            messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text),
    13201314                        title, IDSTR_INSTALLERRORTITLE , sizeof(title),
     
    13291323            return( 1 );
    13301324          }
    1331         if(pMemFormatInfo)   
     1325        if(pMemFormatInfo)
    13321326          free(pMemFormatInfo);
    13331327        if(hBitmap)
  • trunk/classes/mm-progs/include/mmprogs_defaults.h

    r4 r104  
    1717 * If you need another license for your project/product (commercial,
    1818 * noncommercial, whatever) contact me at
    19  * 
     19 *
    2020 * http://www.os2world.com/cdwriting
    2121 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    3434/* Audio player */
    3535#define DEFAULT_VOLUME    75      /* Default volume for audio player (not volume object) */
    36 #define INI_MMPLAYER_APP      "mmplayer"     /* App name to use                       */
    37 #define INI_DISPLAY_KEY   "displaytype"  /* Key for storing which display to show */
    38 #define INI_VOLUME_KEY    "volume"       /* Key for storing the volume            */
     36#define INI_MMPLAYER_APP      (PSZ)"mmplayer"     /* App name to use                       */
     37#define INI_DISPLAY_KEY       (PSZ)"displaytype"  /* Key for storing which display to show */
     38#define INI_VOLUME_KEY        (PSZ)"volume"       /* Key for storing the volume            */
    3939
    4040/* Image converter */
    41 #define INI_IMGCONV_APP        "imageconv"
     41#define INI_IMGCONV_APP       (PSZ)"imageconv"
    4242
    4343/* Audio converter */
    44 #define INI_AUDIOCONV_APP        "audioconv"
     44#define INI_AUDIOCONV_APP     (PSZ)"audioconv"
    4545
    4646/* Master volume */
    47 #define INI_VOLUME_APP        "volume"
     47#define INI_VOLUME_APP        (PSZ)"volume"
    4848
    4949/* Volume for classes */
    50 #define INI_CLASSVOLUME_APP        "classvolume"
     50#define INI_CLASSVOLUME_APP   (PSZ)"classvolume"
    5151
    5252/* For setting volume */
    53 #define SETUP_MMAUDIOVOLUME         "MMAUDIOVOLUME"
     53#define SETUP_MMAUDIOVOLUME   (PSZ)"MMAUDIOVOLUME"
  • trunk/classes/mm-progs/makefile

    r2 r104  
    77
    88CC           = gcc
    9 LIB_DIR      = $d:/emx/lib
    10 #CPPFLAGS     = -Ge- /Gm+ -G4 -Gl  /O+ -Oc+ -Ol
    11 CPPFLAGS     = -O -Wall -Zomf -Zcrtdll -s
     9CPPFLAGS     = -O -Wno-pointer-sign -Wall -Zomf -Zcrtdll -s
    1210INC             =       ./include -I ../../classes/inc -I ../../common_functions/include
    13 DEFS         = 
    14 PROGS        = 
     11DEFS         =
     12PROGS        =
    1513ODIR            = .
    1614CPPDIR  = .
     
    2220
    2321$(LIBDIR)/%.obj:        $(COMMONSRC)/%.c
    24         gcc -c -Wall -o$@ -Zomf -I$(INC) $<             
     22        gcc -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<           
    2523
    2624all:    $(LIBOBJS)
     
    4846        -cd ./mmplayer && make cleaner
    4947        -cd ./master_volume && make cleaner
    50         -rm ./include/*.*~ 
     48        -rm ./include/*.*~
    5149
    5250       
  • trunk/classes/mm-progs/master_volume/makefile

    r53 r104  
    1717volume.exe:     volume.c $(OBJECTS) makefile def.tpl
    1818        cmd /C $(TOOLDIR)\create_MMPROG_def.cmd volume.def
    19         $(CC) $(CPPFLAGS) -I$(INC) volume.c $(OBJECTS) -Zmt -lmmpm2.lib volume.def
     19        $(CC) $(CPPFLAGS) -I$(INC) volume.c $(OBJECTS) -lmmpm2.lib volume.def
    2020        rc -I $(INC) volume.rc volume.exe
    2121
  • trunk/classes/mm-progs/master_volume/volume.c

    r2 r104  
    1717 * along with this program; see the file COPYING.  If not, write to
    1818 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    19  */         
     19 */
    2020/*
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    3535#define INCL_MMIOOS2
    3636#define INCL_MCIOS2
    37 #define INCL_SECONDARYWINDOW   
    38 #define INCL_GRAPHICBUTTON 
     37#define INCL_SECONDARYWINDOW
     38#define INCL_GRAPHICBUTTON
    3939#include <os2.h>
    4040#include <sw.h>
     
    7373BOOL bHaveWindowPos=FALSE;
    7474
    75 BOOL bMute=FALSE; 
     75BOOL bMute=FALSE;
    7676HMODULE RESSOURCEHANDLE=0;
    7777int bTBVisible=0;
     
    134134
    135135/* Masteraudio does not support NOTIFY so use a thread to prevent PM freeze */
    136 MRESULT EXPENTRY volumeObjectProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 
     136MRESULT EXPENTRY volumeObjectProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    137137{
    138138  switch(msg)
     
    153153              ULONG mastervolume;              /* Set to master volumepercentage
    154154                                                  percentage by this example      */
    155              
     155
    156156              USHORT usDeviceID=0;
    157157              MCI_MASTERAUDIO_PARMS masteraudioparms;
     
    161161              memset(&openParms,0, sizeof(openParms));
    162162              openParms.pszDeviceType="Masteraudio";
    163  
     163
    164164              rc=mciSendCommand(0,       /* Device                          */
    165165                             MCI_OPEN,                /* Master audio message            */
     
    171171              mciGetErrorString(rc,chrCommand, sizeof(chrCommand));
    172172              //sprintf(chrCommand, "%x", rc);
    173               WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, chrCommand, "", 1234, MB_MOVEABLE);             
     173              WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, chrCommand, "", 1234, MB_MOVEABLE);
    174174              DosBeep(5000, 10);
    175175              usDeviceID=openParms.usDeviceID;
     
    178178              /* Get current system master
    179179                 volume setting                  */
    180              
     180
    181181              mciSendCommand(usDeviceID,       /* Device                          */
    182182                             MCI_MASTERAUDIO,                /* Master audio message            */
     
    188188              /* Get current system master
    189189                 volume setting                  */
    190              
     190
    191191              mciSendCommand(usDeviceID,       /* Device                          */
    192192                             MCI_MASTERAUDIO,                /* Master audio message            */
     
    195195                             (PVOID) &masteraudioparms,      /* Data structure                  */
    196196                             0);                             /* User parm                       */
    197              
     197
    198198              mastervolume = masteraudioparms.ulReturn;
    199199                          DosBeep(500, 10);
     
    228228}
    229229
    230 void _Optlink volumeThreadFunc (void *arg)
     230void volumeThreadFunc (void *arg)
    231231{
    232232  HAB  hab;
     
    238238    hmq=WinCreateMsgQueue(hab,0);
    239239    if(hmq) {
    240      
     240
    241241      if((hwndThread=WinCreateWindow(HWND_OBJECT, WC_STATIC, "", 0,0,0,0,0, NULLHANDLE,
    242242                                     HWND_BOTTOM, 1, NULLHANDLE, NULLHANDLE))==NULLHANDLE) {
     
    245245      }
    246246      WinSubclassWindow(hwndThread,&volumeObjectProc);
    247       /* Window created. */             
     247      /* Window created. */
    248248
    249249      while(WinGetMsg(hab,&qmsg,(HWND)NULL,0,0))
    250250        WinDispatchMsg(hab,&qmsg);
    251251      WinDestroyWindow(hwndThread);
    252      
     252
    253253      WinDestroyMsgQueue(hmq);
    254254    }
     
    267267  if((hwndTitleBar=WinWindowFromID(hwnd, FID_TITLEBAR))==NULLHANDLE)
    268268    return;
    269      
     269
    270270  hwndPopup = WinLoadMenu(hwnd, RESSOURCEHANDLE, IDM_POPUP);
    271271  if (hwndPopup == NULLHANDLE)
    272272    return;
    273  
     273
    274274  bVisible=WinIsWindowVisible(hwndTitleBar);
    275275
    276276  if(!bVisible)
    277     WinSendMsg(hwndPopup,MM_SETITEMATTR,MPFROM2SHORT(IDM_ITEMTITLEBAR,FALSE), 
     277    WinSendMsg(hwndPopup,MM_SETITEMATTR,MPFROM2SHORT(IDM_ITEMTITLEBAR,FALSE),
    278278               MPFROM2SHORT(MIA_CHECKED,MIA_CHECKED));
    279279
    280280  WinQueryPointerPos(HWND_DESKTOP, &ptl) ;
    281281  WinMapWindowPoints(HWND_DESKTOP,hwnd,&ptl,1);
    282   WinPopupMenu(hwnd, hwnd, hwndPopup, 
     282  WinPopupMenu(hwnd, hwnd, hwndPopup,
    283283               ptl.x, ptl.y, IDM_ITEMEXIT, PU_HCONSTRAIN | PU_VCONSTRAIN |
    284284               PU_KEYBOARD | PU_MOUSEBUTTON1 | PU_MOUSEBUTTON2 | PU_NONE  );
     
    296296      if(!WinQueryWindowPos(hwndTitleBar,&swp))
    297297        return FALSE;
    298      
     298
    299299      if(!WinQueryWindowPos(hwnd,&swpFrame))
    300300        return FALSE;
    301      
     301
    302302      /* Shrink or expand the frame */
    303303      if(!bTBVisible) {
    304         WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//-swp.cy, 
     304        WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//-swp.cy,
    305305                        swpFrame.cx, swpFrame.cy+swp.cy, SWP_SIZE|SWP_MOVE);
    306306        bTBVisible=TRUE;
     
    308308      else
    309309        {
    310           WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//+swp.cy, 
     310          WinSetWindowPos(hwnd, NULLHANDLE, swpFrame.x, swpFrame.y,//+swp.cy,
    311311                          swpFrame.cx, swpFrame.cy-swp.cy, SWP_SIZE|SWP_MOVE);
    312312          bTBVisible=FALSE;
    313313        }
    314314    }
    315   WinSendMsg(hwnd,WM_UPDATEFRAME,0,0);     
     315  WinSendMsg(hwnd,WM_UPDATEFRAME,0,0);
    316316  return TRUE;
    317317}
     
    326326
    327327  switch (msg)
    328     {     
     328    {
    329329    case WM_INITDLG:
    330330      {
     
    345345                    (MPARAM) 0L,
    346346                    (MPARAM) 100L);
    347        
     347
    348348        WinSendMsg( WinWindowFromID(hwnd, IDCS_VOLUME),
    349349                    CSM_SETINCREMENT,
    350350                    (MPARAM) 10L,
    351351                    (MPARAM) 1L);
    352        
    353        
     352
     353
    354354        WinSendMsg( WinWindowFromID(hwnd, IDCS_VOLUME),
    355355                    CSM_SETVALUE,
    356356                    (MPARAM) queryMasterVolume(),
    357357                    (MPARAM) NULL);
    358        
    359        
     358
     359
    360360        // getMessage(title, IDSTR_CONVERTCHANNELS, sizeof(title), RESSOURCEHANDLE, hwnd);
    361361        /* Set dialog font to WarpSans for Warp 4 and above */
     
    365365                          DEFAULT_DIALOG_FONT );
    366366        }
    367        
     367
    368368        hpProgramIcon =
    369369          WinLoadPointer(
     
    371371                         (HMODULE) NULL,              /* Resource is kept in .Exe file. */
    372372                         ID_ICONVOLUME );                   /* Which icon to use.             */
    373        
     373
    374374        WinSendMsg(
    375375                   hwnd,                    /* Dialog window handle.                 */
     
    399399                            PP_BACKGROUNDCOLOR,(ULONG)sizeof(rgb), &rgb);
    400400          }
    401         ulSize=sizeof(RGB);       
     401        ulSize=sizeof(RGB);
    402402        if(IniRestoreData(chrIniFile, INI_VOLUME_APP, INI_BTNFGCLR_KEY, &rgb, &ulSize))
    403403          {
     
    428428        /* Remove top frame controls if titlebar is hidden */
    429429        SHORT countSwp;
    430                
     430
    431431        countSwp = (int) WinDefDlgProc(hwnd, msg, mp1, mp2);
    432432        if(countSwp) {
    433           if(bTBVisible==0) { 
    434             /* Hide frame controls */       
     433          if(bTBVisible==0) {
     434            /* Hide frame controls */
    435435            /* countSWP:  number of standard framecontrols
    436436               pswp:      Array of SWP describing the framecontrols.
     
    439439            PSWP pswpTB=NULLHANDLE;
    440440            PSWP pswp=(PSWP)mp1;
    441             int y, cy;
     441            int y;
    442442
    443443            for (a = 0; a < countSwp; a++)
     
    448448                    pswpTB=&pswp[a];
    449449                    y=pswp[a].y;
    450                     cy=pswp[a].cy;
    451450                    //    DosBeep(500,600);
    452451                    break;
     
    485484    case WM_BUTTON1MOTIONSTART:
    486485      /* Drag the window without titlebar */
    487       WinSendMsg(hwnd, WM_TRACKFRAME, 
     486      WinSendMsg(hwnd, WM_TRACKFRAME,
    488487                 MPFROMSHORT(TF_MOVE   /*| TF_SETPOINTERPOS */), NULL) ;
    489488      return (MRESULT) 0 ;
     
    504503           {
    505504             if (SHORT2FROMMP(mp1)==GBN_BUTTONDOWN) {
    506                bMute=TRUE; 
     505               bMute=TRUE;
    507506               setMasterVolume(hwnd, 0);
    508507             }
    509508             else if (SHORT2FROMMP(mp1)==GBN_BUTTONUP) {
    510509               SHORT sValue;
    511                
     510
    512511               bMute=FALSE;
    513512               WinSendMsg(WinWindowFromID(hwnd, IDCS_VOLUME),CSM_QUERYVALUE ,MPFROMP(&sValue) ,0);
     
    524523        memset(&masteraudioparms,0, sizeof(masteraudioparms));
    525524        /* Save master audio level */
    526         mciSendCommand( 0,       
     525        mciSendCommand( 0,
    527526                       MCI_MASTERAUDIO,                /* Master audio message            */
    528527                       MCI_WAIT |  MCI_MASTERVOL | MCI_SAVESETTING,
     
    594593      bTBVisible=IniRestoreInt(chrIniFile, INI_VOLUME_APP, INI_TBVISIBLE_KEY, 1);
    595594
    596       if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, 
     595      if( WinDlgBox( HWND_DESKTOP, NULLHANDLE,
    597596                     volumeDialogProc, RESSOURCEHANDLE, IDDLG_VOLUME, 0) == DID_ERROR )
    598597        {
    599598          /*
    600             Text:   
    601             Title:  "Installation problem"                       
     599            Text:
     600            Title:  "Installation problem"
    602601            */
    603602#if 0
     
    605604                      title, IDSTR_INSTALLERRORTITLE , sizeof(title),
    606605                      RESSOURCEHANDLE, HWND_DESKTOP, MB_OK | MB_ICONEXCLAMATION | MB_MOVEABLE);
    607 #endif       
     606#endif
    608607          WinDestroyMsgQueue( hmq );
    609608          WinTerminate( hab );
     
    637636                  (MPARAM) NULL);
    638637      while ( WinGetMsg( hab, (PQMSG) &qmsg, (HWND) NULL, 0, 0) )
    639         WinDispatchMsg( hab, (PQMSG) &qmsg ); 
     638        WinDispatchMsg( hab, (PQMSG) &qmsg );
    640639#endif
    641640      freeResHandle();
  • trunk/classes/mm-progs/mmfind/image.c

    r4 r104  
    2626    POINTL aptl[4];
    2727    HPS    hps;
    28     BOOL   bReturnCode;
    2928    ULONG  ulHeight;
    3029    ULONG  ulWidth;
     
    3736     *  Get position of image frame
    3837     */
    39     bReturnCode = WinQueryWindowPos ( hwnd, &swp);
     38    WinQueryWindowPos ( hwnd, &swp);
    4039
    4140    WinQueryWindowRect(hwnd, &rectl);
     
    4847        aptl[0].x=(swp.cx-ulWidth)/2;
    4948        aptl[1].x=aptl[0].x+ulWidth;
    50        
     49
    5150        aptl[0].y=(swp.cy-ulHeight)/2;
    5251        aptl[1].y=aptl[0].y+ulHeight;
     
    6261      aptl[0].x=(swp.cx-ulWidth*fRes)/2;
    6362      aptl[1].x=aptl[0].x+ulWidth*fRes;
    64      
     63
    6564      aptl[0].y=(swp.cy-ulHeight*fRes)/2;
    6665      aptl[1].y=aptl[0].y+ulHeight*fRes;
    6766    }
    68    
     67
    6968    aptl[2].x = 0;              // source lower left
    7069    aptl[2].y = 0;
    71    
     70
    7271    aptl[3].x = ulWidth;   // source upper right
    7372    aptl[3].y = ulHeight;
     
    8988    //       WinDrawBitmap(hps, hBitmap, NULLHANDLE, (PPOINTL)aptl, 0, 0, DBM_NORMAL/*|DBM_STRETCH*/);
    9089#endif
    91     bReturnCode = WinEndPaint (hps);
     90    WinEndPaint (hps);
    9291}
    9392
     
    9695
    9796  switch (msg)
    98     {     
     97    {
    9998    case WM_PAINT:
    10099      {
     
    276275        return(0L);
    277276      }
    278    
     277
    279278
    280279    // ***************************************************
     
    282281    // the memory device context obtained above.
    283282    // ***************************************************
    284    
     283
    285284    ImageSize.cx = dwWidth;
    286285    ImageSize.cy = dwHeight;
     
    300299                       (ULONG) MB_OK | MB_MOVEABLE |
    301300                       MB_ERROR );
    302 #endif   
     301#endif
    303302        DevCloseDC(hdc);
    304303        DosFreeMem(pRowBuffer);
  • trunk/classes/mm-progs/mmfind/mmfind.c

    r4 r104  
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    7373BOOL bIsMidi=FALSE;             /* No MIDI support atm */
    7474BOOL bIsPlaying=FALSE;          /* TRUE if currently playing */
    75 BOOL bPaused=FALSE;             
     75BOOL bPaused=FALSE;
    7676ULONG ulPos;
    7777ULONG ulTotalLength;
     
    120120  hps=WinGetPS(HWND_DESKTOP);
    121121
    122   /* Play */ 
     122  /* Play */
    123123  hbmPlay=GpiLoadBitmap(hps, hResource, IDBMP_PLAY, 0, 0);
    124124
     
    143143    ulStyle|=(BS_BITMAP);
    144144    ulStyle&=~BS_TEXT;
    145    
     145
    146146    if(WinSetWindowULong(hwndTemp, QWL_STYLE, ulStyle)) {
    147147      memset(&btCtrl, 0, sizeof(btCtrl));
     
    163163    ulStyle|=(BS_BITMAP);
    164164    ulStyle&=~BS_TEXT;
    165    
     165
    166166    if(WinSetWindowULong(hwndTemp, QWL_STYLE, ulStyle)) {
    167167      memset(&btCtrl, 0, sizeof(btCtrl));
     
    199199  if(!MsgGetMessage(audioText, IDSTR_AUDIOINFOTEXT, sizeof(audioText), hResMod,HWND_DESKTOP))
    200200    strcpy(audioText, TEXT_INFOTEXT);
    201   if(!MsgGetMessage(chrMediaFileTypes[MT_AUDIO], IDSTR_TYPEAUDIO, 
     201  if(!MsgGetMessage(chrMediaFileTypes[MT_AUDIO], IDSTR_TYPEAUDIO,
    202202                 sizeof(chrMediaFileTypes[MT_AUDIO]), hResMod, HWND_DESKTOP))
    203203    strcpy(chrMediaFileTypes[MT_AUDIO], TEXT_TYPEAUDIO);
    204   if(!MsgGetMessage(chrMediaFileTypes[MT_IMAGE], IDSTR_TYPEIMAGE, 
     204  if(!MsgGetMessage(chrMediaFileTypes[MT_IMAGE], IDSTR_TYPEIMAGE,
    205205                 sizeof(chrMediaFileTypes[MT_IMAGE]), hResMod, HWND_DESKTOP))
    206206    strcpy(chrMediaFileTypes[MT_AUDIO], TEXT_TYPEIMAGE);
    207   if(!MsgGetMessage(chrMediaFileTypes[MT_VIDEO], IDSTR_TYPEVIDEO, 
     207  if(!MsgGetMessage(chrMediaFileTypes[MT_VIDEO], IDSTR_TYPEVIDEO,
    208208                 sizeof(chrMediaFileTypes[MT_VIDEO]), hResMod, HWND_DESKTOP))
    209209    strcpy(chrMediaFileTypes[MT_VIDEO], TEXT_TYPEVIDEO);
     
    272272  char chrCommand[50];
    273273  char retMsg[100];
    274   ULONG rc;
    275274
    276275  if(bIsPlaying) {
    277276    sprintf(chrCommand,"stop wave%ld wait", hwndNotify);
    278     rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    279    
     277    mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
     278
    280279    sprintf(chrCommand,"close wave%ld wait", hwndNotify);
    281     rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    282 
    283 #if 0   
     280    mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
     281
     282#if 0
    284283    _resetDisplay(hwndFrame);
    285284    showPlayTimeDisplay( hwndFrame, TRUE);
     
    287286#endif
    288287    bIsPlaying=FALSE;
    289     bPaused=FALSE; 
     288    bPaused=FALSE;
    290289  }
    291290
     
    319318    strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice));
    320319
    321   /* Start audio file */ 
     320  /* Start audio file */
    322321  sprintf(chrCommand,"open \"%s\"  type %s alias wave%ld SHAREABLE wait", chrSourceName, chrDevice, hwndNotify);
    323322
     
    326325  if((rc & 0x0000ffff)!=MCIERR_SUCCESS)
    327326    return 0;
    328  
     327
    329328  /* Set time format */
    330329  sprintf(chrCommand,"SET wave%ld TIME FORMAT MILLISECONDS wait", hwndNotify);
     
    334333    rc = mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0);
    335334    return 0;
    336   }     
     335  }
    337336
    338337#if 0
     
    420419
    421420/* Every folder has one running play thread to handle play commands */
    422 void _Optlink playThreadFunc (void *arg)
     421void playThreadFunc (void *arg)
    423422{
    424423  HAB  hab;
     
    488487  if(MMIO_SUCCESS!=mmioIdentifyFile(chrFile, &mmioInfo, &mmFormatInfo, &fourCC, 0,0))
    489488    {
    490       return MT_UNKNOWN; 
     489      return MT_UNKNOWN;
    491490    }
    492491
     
    539538        }
    540539        /* Fill combo box with media types (audio, image, video) */
    541         for(a=0;a<NUMMEDIATYPES;a++) 
    542           WinSendMsg(WinWindowFromID(hwnd, IDCB_TYPEOFFILE), LM_INSERTITEM, MRFROMSHORT(LIT_SORTASCENDING), 
     540        for(a=0;a<NUMMEDIATYPES;a++)
     541          WinSendMsg(WinWindowFromID(hwnd, IDCB_TYPEOFFILE), LM_INSERTITEM, MRFROMSHORT(LIT_SORTASCENDING),
    543542                     MPFROMP(chrMediaFileTypes[a]));
    544543        WinSetWindowText(WinWindowFromID(hwnd, IDCB_TYPEOFFILE), chrMediaFileTypes[0]);
     
    681680                  mmio.ulFlags=MMIO_READ;
    682681                  mmio.ulTranslate=MMIO_TRANSLATEHEADER;
    683                  
     682
    684683                  hmmio = mmioOpen(chrFullName, &mmio, MMIO_READ);
    685684                  if(!hmmio)
     
    689688                  rc = mmioGetHeader(hmmio, &mmAudioHeader,sizeof(MMAUDIOHEADER),
    690689                                     &lBytesRead, 0, 0);
    691                  
     690
    692691                  mmioClose(hmmio, 0);
    693692                  if(rc!=MMIO_SUCCESS) {
     
    785784  APIRET   rc;                        /* return code from REXX     */
    786785  SHORT    rexxrc = 0;                /* return code from function */
    787   char theScript[CCHMAXPATH]; 
     786  char theScript[CCHMAXPATH];
    788787  /* By setting the strlength of the output RXSTRING to zero, we   */
    789788  /* force the interpreter to allocate memory and return it to us. */
    790789  /* We could provide a buffer for the interpreter to use instead. */
    791790  rexxretval.strlength = 0L;          /* initialize return to empty*/
    792    
     791
    793792  sprintf(theScript, "%s\\%s", pszBinDir, rexxFile);
    794793
     
    807806#if 0
    808807  if(rc) {
    809     sprintf(text,"Error in the Rexx skript %s\n\n Get more information with 'help REX%04d'.\n", 
     808    sprintf(text,"Error in the Rexx skript %s\n\n Get more information with 'help REX%04d'.\n",
    810809            tPt->rexxSkript, rc*-1);
    811810    WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, text, "", 1234, MB_OK|MB_MOVEABLE|MB_ERROR);
     
    822821  }
    823822  if(rexxretval.strptr)
    824     DosFreeMem(rexxretval.strptr);          /* Release storage given to us by REXX.  */     
     823    DosFreeMem(rexxretval.strptr);          /* Release storage given to us by REXX.  */
    825824  if(!rc)
    826825    return TRUE;
     
    845844            '\0',
    846845            sizeof(MMFORMATINFO) );
    847    
     846
    848847    mmFormatInfo.ulMediaType |= MMIO_MEDIATYPE_IMAGE;
    849     mmFormatInfo.ulFlags|=MMIO_CANREADTRANSLATED;/* Read !!!*/   
     848    mmFormatInfo.ulFlags|=MMIO_CANREADTRANSLATED;/* Read !!!*/
    850849    ulReturnCode = mmioQueryFormatCount ( &mmFormatInfo,
    851850                                          &lNumIOProcs,
    852851                                          0,
    853852                                          0 );
    854    
     853
    855854    if( ulReturnCode != MMIO_SUCCESS )
    856855      {
     
    873872        return FALSE;
    874873      }
    875    
     874
    876875    /*
    877876     * call mmioGetFormats to get info on the formats supported.
     
    891890        return FALSE;
    892891      }
    893    
     892
    894893    if( lFormatsRead != lNumIOProcs )
    895894      {
     
    919918            }
    920919          }
    921         } 
     920        }
    922921        /*
    923922         *  advance to next entry in mmFormatInfo array
    924          */       
     923         */
    925924        pmmFormatInfoArray++;
    926925      }
     
    952951  if(hab) {
    953952    hmq=WinCreateMsgQueue(hab,0);
    954     if(hmq) { 
    955       /* Check if user started prog by hand */   
     953    if(hmq) {
     954      /* Check if user started prog by hand */
    956955      if(argc!=NUMPARAMS) {/* Not the right num of params */
    957956        pmUsage();
    958957      }
    959958      else {
    960         HWND hwndDlg;       
    961 
    962         /* Get our ressource dll */ 
     959        HWND hwndDlg;
     960
     961        /* Get our ressource dll */
    963962        RESSOURCEHANDLE=queryResModuleHandle(argv[0]);
    964963        /* Load NLV strings */
     
    10311030          {
    10321031            if(hBitmap)
    1033               GpiDeleteBitmap(hBitmap); 
     1032              GpiDeleteBitmap(hBitmap);
    10341033            if( fd.lReturn == DID_OK )
    10351034              {
     
    10561055                    {
    10571056                      HOBJECT hObject;
    1058                       char *chr;
    10591057                      if((hObject=WinQueryObject(fd.szFullFile))!=NULLHANDLE)
    10601058                        WinOpenObject(hObject, ID_MENU_PLAYER /* OPEN_DEFAULT */, TRUE);
    10611059#if 0
    10621060                      /* Open folder */
    1063                       if((chr=strrchr(fd.szFullFile, '\\'))!=NULLHANDLE) {
    1064                         *chr=0;
     1061                      if(strrchr(fd.szFullFile, '\\')!=NULLHANDLE) {
    10651062                        if((hObject=WinQueryObject(fd.szFullFile))!=NULLHANDLE)
    10661063                          WinOpenObject(hObject, OPEN_CONTENTS, TRUE);
  • trunk/classes/mm-progs/mmprog.inc

    r53 r104  
    22
    33CC              =        gcc
    4 CPPFLAGS        =        -O -Wall -Zomf -Zmt -s
     4CPPFLAGS        =        -O -Wno-pointer-sign -Wall -Zomf -Zmt -s
    55#CPPFLAGS       = -O -Zomf -Zcrtdll -Zmtd -s
    66
    77INC             = ../include -I ../../../classes/inc -I $(COMMONSRC)/include
    88# Fixme GKY 4-15-23
    9 LIB_DIR         = $d:/emx/lib 
     9LIB_DIR         = $d:/emx/lib
    1010TOOLDIR         =        .\..
    1111LIBDIR          =        ../lib
    12 DEFS            = 
    13 PROGS           = 
     12DEFS            =
     13PROGS           =
    1414ODIR            =
    1515CPPDIR          =
    1616
    17 $(LIBDIR)/%.obj:        $(COMMONSRC)/%.c 
    18         $(CC) -c -Wall -o$@ -Zomf -I$(INC) $< 
     17$(LIBDIR)/%.obj:        $(COMMONSRC)/%.c
     18        $(CC) -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<
    1919
    2020%.obj:  %.c
    21         $(CC) -c -Wall -o$@ -Zomf -I$(INC) $< 
     21        $(CC) -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<
    2222
    2323
  • trunk/classes/mm-progs/videoplayer/mmplayer.c

    r46 r104  
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    5555#include "sys_funcs.h"
    5656
    57 #ifndef OPEN_DEFAULT 
     57#ifndef OPEN_DEFAULT
    5858/*  Open views for the wpOpen() method */
    5959
     
    140140
    141141/* Every folder has one running play thread to handle play commands */
    142 void _Optlink playThreadFunc (void *arg);
     142void playThreadFunc (void *arg);
    143143void controlPlaying(HWND hwndDialog, ULONG ulAction, ULONG ulReserved);
    144144BOOL stopAudioFile(HWND hwndFrame);
     
    216216  WinQueryPointerPos(HWND_DESKTOP, &ptl) ;
    217217  WinMapWindowPoints(HWND_DESKTOP,hwnd,&ptl,1);
    218   WinPopupMenu(hwnd, hwnd, hwndPopup, 
     218  WinPopupMenu(hwnd, hwnd, hwndPopup,
    219219               ptl.x, ptl.y, 0, PU_HCONSTRAIN | PU_VCONSTRAIN |
    220                PU_KEYBOARD | PU_MOUSEBUTTON1 | PU_MOUSEBUTTON2 | PU_NONE  ); 
    221  
     220               PU_KEYBOARD | PU_MOUSEBUTTON1 | PU_MOUSEBUTTON2 | PU_NONE  );
     221
    222222}
    223223
     
    232232  hResource=BMP_RESSOURCEHANDLE; //_queryResModuleHandle();
    233233  hps=WinGetPS(HWND_DESKTOP);
    234  
     234
    235235  /* The main BMP */
    236236  allBMPs[MAIN_BMP_IDX].hbm=GpiLoadBitmap(hps, hResource, IDBMP_TOPMIDDLE, 0, 0);
     
    332332  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclSource.xLeft,ci.rclSource.yBottom,
    333333                  ci.rclSource.xRight-ci.rclSource.xLeft,
    334                   ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE); 
     334                  ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE);
    335335  oldPlayTimeProc=WinSubclassWindow(WinWindowFromID(hwnd, IDST_MMPLAYERPLAYTIME), playTimeTextProc);
    336336
    337337  /* Pos slider */
    338338  ci=ciControls[CTRLIDX_POSSLIDER];//ciPosSlider;
    339   WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 
     339  WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10,
    340340                  hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE);
    341341  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom,
    342342                  ci.rclSource.xRight-ci.rclSource.xLeft,
    343343                  ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE | SWP_SIZE);
    344  
     344
    345345  WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO,
    346346             MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0),
    347              MPFROM2SHORT( 9, 9)); 
     347             MPFROM2SHORT( 9, 9));
    348348
    349349  /* Vol slider */
    350350  ci=ciControls[CTRLIDX_VOLSLIDER];//ciVolSlider;
    351   WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 
     351  WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10,
    352352                  hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE);
    353353  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom,
     
    356356  WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO,
    357357             MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0),
    358              MPFROM2SHORT( 9, 9)); 
     358             MPFROM2SHORT( 9, 9));
    359359
    360360}
     
    375375  if((rc & 0x0000ffff)!=MCIERR_SUCCESS) {
    376376    /* Problem with MCI. Clean up. The Timer will be stopped in the method */
    377     stopAudioFile(hwndFrame); 
     377    stopAudioFile(hwndFrame);
    378378  }
    379379  else {
    380380    if(!stricmp(retMsg, "stopped")) {
    381381      /* Audio file played. */
    382       stopAudioFile(hwndFrame); 
     382      stopAudioFile(hwndFrame);
    383383    }
    384384    showPlayTimeDisplay(hwndFrame, TRUE);/* Ensure display is visible */
     
    396396      return usItems;
    397397    }
    398  
     398
    399399  return 0;
    400400}
     
    402402BOOL DrgVerifyTypeCW(PDRAGITEM pDragItem, char * chrType)
    403403{
    404   /* DrgVerifyType() seems not to work when several types are in the list?? 
     404  /* DrgVerifyType() seems not to work when several types are in the list??
    405405     Dokumentation says, it works... */
    406406  /* Only check for a single type for now */
     
    472472    for(ulHash=0;*theString!='\0'; theString++)
    473473      ulHash=*theString+37*ulHash;
    474  
     474
    475475  return ulHash%HASHSIZE;
    476476}
     
    543543MRESULT handleDrag0ver(PDRAGINFO pdi, HWND hwnd)
    544544{
    545  
     545
    546546  /* Only accept one file */
    547547  if(DrgGetNumObjects(pdi)!=1) {
     
    551551  if(DrgCheckForKnownType(pdi, hwnd))
    552552    return MRFROM2SHORT(DOR_DROP, DO_COPY);
    553  
    554   return MRFROM2SHORT(DOR_NEVERDROP, DO_COPY); 
     553
     554  return MRFROM2SHORT(DOR_NEVERDROP, DO_COPY);
    555555}
    556556
     
    567567      char chrFile[CCHMAXPATH];
    568568      PDRAGITEM pDragItem;
    569      
     569
    570570      pDragItem=DrgQueryDragitemPtr(pdi, 0);
    571       DrgQueryStrName(pDragItem->hstrSourceName,sizeof(chrFile), chrFile); 
    572       DrgQueryStrName(pDragItem->hstrContainerName,sizeof(chrSourceName), chrSourceName); 
     571      DrgQueryStrName(pDragItem->hstrSourceName,sizeof(chrFile), chrFile);
     572      DrgQueryStrName(pDragItem->hstrContainerName,sizeof(chrSourceName), chrSourceName);
    573573      strcat(chrSourceName, chrFile);
    574      
     574
    575575      /* Start new file */
    576576      controlPlaying(hwnd, PLAY_FIRST, 0);
     
    613613             MPFROM2SHORT(SC_SIZE, TRUE),
    614614             MPFROMP(NULL));
    615  
     615
    616616  WinSendMsg(hwndMenu, /* Delete Minimize from the system menu */
    617617             MM_DELETEITEM,
    618618             MPFROM2SHORT(SC_MINIMIZE, TRUE),
    619619             MPFROMP(NULL));
    620  
     620
    621621  WinSendMsg(hwndMenu, /* Delete Maximize from the system menu */
    622622             MM_DELETEITEM,
     
    653653
    654654  switch (msg)
    655     {     
     655    {
    656656    case DM_DRAGOVER:
    657657      {
     
    682682        swctl.fbJump=SWL_JUMPABLE;
    683683        WinAddSwitchEntry(&swctl);
    684        
     684
    685685        adjustDialogControlPos(hwnd);
    686        
     686
    687687        /* Set volume slider*/
    688688        WinSendMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERVOLUME),
     
    690690                    MPFROM2SHORT(SMA_SLIDERARMPOSITION,SMA_INCREMENTVALUE),
    691691                    MPFROMLONG( ulVolume));
    692        
     692
    693693        /* Subclass buttons for DnD */
    694694        orgButtonProc=WinSubclassWindow(WinWindowFromID(hwnd, IDPB_MMPLAYERPLAY), buttonProc);
    695695        WinSubclassWindow(WinWindowFromID(hwnd, IDPB_MMPLAYERPAUSE), buttonProc);
    696696        WinSubclassWindow(WinWindowFromID(hwnd, IDPB_MMPLAYERSTOP), buttonProc);
    697                
     697
    698698        FixSysMenu(hwnd);
    699699
     
    701701        if(allBMPs[MAIN_BMP_IDX].hbm) {
    702702          SWP swp;
    703          
    704           WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp);         
    705           WinSetWindowPos(WinWindowFromID(hwnd, ID_CLIENT), NULLHANDLE, 
    706                           WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME), 
    707                           WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME), 
     703
     704          WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp);
     705          WinSetWindowPos(WinWindowFromID(hwnd, ID_CLIENT), NULLHANDLE,
     706                          WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME),
     707                          WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME),
    708708                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cx,
    709709                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cy,
    710710                          SWP_SIZE|SWP_MOVE);
    711711          orgBgProc=WinSubclassWindow(WinWindowFromID(hwnd, ID_CLIENT), bgProc);
    712          
     712
    713713          WinSetWindowPos(hwnd, NULLHANDLE, 0, 0,
    714714                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cx+WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME)*2,
     
    741741      /*****************************************************/
    742742    case WM_APPTERMINATENOTIFY:
    743      
     743
    744744      switch(SHORT1FROMMP(mp1))
    745745        {
     
    754754          return MRFALSE;
    755755        case NOTIFY_CONTEXT:
    756           /* Show context menu. */           
     756          /* Show context menu. */
    757757          HlpContextMenu(hwnd, iWhichDisplay+ID_MENUITEMELAPSED, TRUE);
    758758          return MRFALSE;
     
    761761        }
    762762      return MRFALSE;
    763      
     763
    764764      /*****************************************************/
    765765      /* The following two messages are for device sharing */
     
    769769        char chrCommand[100];
    770770        int iWavePriv;
    771    
     771
    772772        iWavePriv=ulPid;
    773773
     
    800800      /* SETPOSITIONADVICE does not work for some reason,  */
    801801      /* so a timer is used. Yes, it's quit cumbersome...  */
    802       /*****************************************************/ 
     802      /*****************************************************/
    803803    case WM_TIMER:
    804804      if(SHORT1FROMMP(mp1)==IDTIMER_PLAY) {
     
    821821            /* Set slider position */
    822822
    823             WinPostMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERPOSBAR), 
     823            WinPostMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERPOSBAR),
    824824                        SLM_SETSLIDERINFO,
    825825                        MPFROM2SHORT(SMA_SLIDERARMPOSITION,SMA_INCREMENTVALUE),
     
    908908        default:
    909909          break;
    910         }             
     910        }
    911911      break;
    912912
     
    919919        char chrCommand[50];
    920920        char retMsg[20];
    921        
     921
    922922        switch(SHORT2FROMMP(mp1))
    923923          {
     
    949949                      static long lLastPos=0;
    950950                      long lPos=LONGFROMMP(mp2);
    951              
     951
    952952                      bPosDragging=TRUE;
    953953                      lPos*=ulTotalLength/100;
     
    973973                    {
    974974                      ULONG ulValue;
    975                      
     975
    976976                      ulValue=LONGFROMMP(mp2);
    977977                      ulVolume=ulValue;
     
    985985
    986986                      bPosDragging=FALSE;
    987                       lPos*=1000;                     
     987                      lPos*=1000;
    988988                      lPos*=ulTotalLength/100;
    989989                      lPos/=1000;// Use only full seconds
     
    992992                      seekAudioFile(lPos);
    993993                      /* restart timer */
    994                       WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, IDTIMER_PLAY, PLAYTIMER_DELAY); 
     994                      WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, IDTIMER_PLAY, PLAYTIMER_DELAY);
    995995                      ulPos=lPos/1000;
    996996                      break;
     
    10091009      break;
    10101010    }/* switch */
    1011  
     1011
    10121012  return WinDefDlgProc( hwnd, msg, mp1, mp2);
    10131013}
     
    10291029                     ))==NULLHANDLE)
    10301030    return FALSE;
    1031  
     1031
    10321032  ulSize=sizeof(chrFileName);
    1033  
     1033
    10341034  if ((rc = DosOpen(chrFileName, &handle, &act,
    10351035                    0L, 0, OPEN_ACTION_OPEN_IF_EXISTS,
     
    10951095BOOL writeVolumeToIni(char * iniFile, char* chrApp, char *chrKey, ULONG ulVolume)
    10961096{
    1097  
     1097
    10981098  return IniSaveInt(iniFile, chrApp, chrKey, ulVolume);
    10991099}
     
    11451145  if(hab) {
    11461146    hmq=WinCreateMsgQueue(hab,0);
    1147     if(hmq) { 
    1148       /* Check if user started prog by hand */   
     1147    if(hmq) {
     1148      /* Check if user started prog by hand */
    11491149      if(argc!=NUMPARAMS) {/* Not the right num of params */
    11501150        pmUsage();
     
    11641164          strcpy(chrClassName, params[1]);
    11651165
    1166         /* Get our ressource dll */ 
     1166        /* Get our ressource dll */
    11671167        RESSOURCEHANDLE=queryResModuleHandle(argv[0]);
    11681168        /* Get data from INI file */
     
    11761176        WinRegisterClass(WinQueryAnchorBlock(HWND_DESKTOP), SLIDER_CLASS, privateSliderProc,0, SLADDBYTES);
    11771177
    1178         _loadBmps();       
     1178        _loadBmps();
    11791179        DosGetInfoBlocks(&ptib, &ppib);
    11801180        ulPid=ppib->pib_ulpid;
     
    11831183        //DosBeep(5000, 400);
    11841184
    1185         if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 
     1185        if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc,
    11861186                       RESSOURCEHANDLE, IDDLG_MMPLAYER, 0) == DID_ERROR )
    11871187          {
    11881188            /*
    1189               Text:   
    1190               Title:  "Installation problem"                       
    1191               */             
     1189              Text:
     1190              Title:  "Installation problem"
     1191              */
    11921192            messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text),
    11931193                        title, IDSTR_INSTALLERRORTITLE , sizeof(title),
  • trunk/classes/mm-progs/volume/classvol.c

    r2 r104  
    2222 * If you need another license for your project/product (commercial,
    2323 * noncommercial, whatever) contact me at
    24  * 
     24 *
    2525 * http://www.os2world.com/cdwriting
    2626 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    5454//#include "cwaudioinc.h"
    5555
    56 #ifndef OPEN_DEFAULT 
     56#ifndef OPEN_DEFAULT
    5757/*  Open views for the wpOpen() method */
    5858      #define OPEN_UNKNOWN      -1
     
    162162  hResource=BMP_RESSOURCEHANDLE; //_queryResModuleHandle();
    163163  hps=WinGetPS(HWND_DESKTOP);
    164  
     164
    165165  /* The main BMP */
    166166  allBMPs[MAIN_BMP_IDX].hbm=GpiLoadBitmap(hps, hResource, IDBMP_MAIN, 0, 0);
     
    265265  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclSource.xLeft,ci.rclSource.yBottom,
    266266                  ci.rclSource.xRight-ci.rclSource.xLeft,
    267                   ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE); 
     267                  ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE|SWP_SIZE);
    268268  oldPlayTimeProc=WinSubclassWindow(WinWindowFromID(hwnd, IDST_MMPLAYERPLAYTIME), playTimeTextProc);
    269269
    270270  /* Pos slider */
    271271  ci=ciControls[CTRLIDX_POSSLIDER];//ciPosSlider;
    272   WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 
     272  WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10,
    273273                  hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE);
    274274  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom,
    275275                  ci.rclSource.xRight-ci.rclSource.xLeft,
    276276                  ci.rclSource.yTop-ci.rclSource.yBottom, SWP_MOVE | SWP_SIZE);
    277  
     277
    278278  WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO,
    279279             MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0),
    280              MPFROM2SHORT( 9, 9)); 
     280             MPFROM2SHORT( 9, 9));
    281281#endif
    282282
    283283  /* Vol slider */
    284284  ci=ciControls[CTRLIDX_VOLSLIDER];//ciVolSlider;
    285   WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10, 
     285  WinCreateWindow(hwnd, SLIDER_CLASS, "", WS_VISIBLE | WS_TABSTOP, 0,0, 10, 10,
    286286                  hwnd, HWND_TOP, ci.id, NULLHANDLE, NULLHANDLE);
    287287  WinSetWindowPos(WinWindowFromID(hwnd, ci.id),HWND_TOP, ci.rclDest.xLeft, ci.rclDest.yBottom,
     
    290290  WinSendMsg(WinWindowFromID(hwnd, ci.id),SLM_SETSLIDERINFO,
    291291             MPFROM2SHORT(SMA_SLIDERARMDIMENSIONS,0),
    292              MPFROM2SHORT( 9, 9)); 
     292             MPFROM2SHORT( 9, 9));
    293293
    294294}
     
    328328             MPFROM2SHORT(SC_SIZE, TRUE),
    329329             MPFROMP(NULL));
    330  
     330
    331331  WinSendMsg(hwndMenu, /* Delete Minimize from the system menu */
    332332             MM_DELETEITEM,
    333333             MPFROM2SHORT(SC_MINIMIZE, TRUE),
    334334             MPFROMP(NULL));
    335  
     335
    336336  WinSendMsg(hwndMenu, /* Delete Maximize from the system menu */
    337337             MM_DELETEITEM,
     
    368368
    369369  switch (msg)
    370     {     
     370    {
    371371    case WM_INITDLG:
    372372      {
     
    381381        swctl.fbJump=SWL_JUMPABLE;
    382382        WinAddSwitchEntry(&swctl);
    383        
     383
    384384        adjustDialogControlPos(hwnd);
    385        
     385
    386386        /* Set volume slider*/
    387387        WinSendMsg( WinWindowFromID(hwnd, IDSL_MMPLAYERVOLUME),
     
    389389                    MPFROM2SHORT(SMA_SLIDERARMPOSITION,SMA_INCREMENTVALUE),
    390390                    MPFROMLONG( ulVolume));
    391                        
     391
    392392        FixSysMenu(hwnd);
    393393
     
    397397          POINTL ptl;
    398398
    399           WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp);         
    400           WinSetWindowPos(WinWindowFromID(hwnd, ID_CLASSVOLCLIENT), NULLHANDLE, 
    401                           WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME), 
    402                           WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME), 
     399          WinQueryWindowPos(WinWindowFromID(hwnd, FID_TITLEBAR), &swp);
     400          WinSetWindowPos(WinWindowFromID(hwnd, ID_CLASSVOLCLIENT), NULLHANDLE,
     401                          WinQuerySysValue(HWND_DESKTOP, SV_CXDLGFRAME),
     402                          WinQuerySysValue(HWND_DESKTOP, SV_CYDLGFRAME),
    403403                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cx,
    404404                          allBMPs[MAIN_BMP_IDX].bmpInfoHdr.cy,
    405405                          SWP_SIZE|SWP_MOVE);
    406406          orgBgProc=WinSubclassWindow(WinWindowFromID(hwnd, ID_CLASSVOLCLIENT), bgProc);
    407          
     407
    408408          /* Get mouse position */
    409409          WinQueryPointerPos(HWND_DESKTOP, &ptl);
     
    459459        default:
    460460          break;
    461         }             
     461        }
    462462      break;
    463463
     
    468468      {
    469469        SWP swp;
    470        
     470
    471471        switch(SHORT2FROMMP(mp1))
    472472          {
     
    492492
    493493                      ulVolume=ulValue;
    494                       sprintf(command,"MMAUDIOVOLUME=%d", ulVolume);
     494                      sprintf(command,"MMAUDIOVOLUME=%lu", ulVolume);
    495495                      sendCommandToObject(chrSourceName, command);
    496496                      break;
     
    509509                    {
    510510                      ULONG ulValue;
    511                      
     511
    512512                      ulValue=LONGFROMMP(mp2);
    513513                      ulVolume=ulValue;
     
    529529      break;
    530530    }/* switch */
    531  
     531
    532532  return WinDefDlgProc( hwnd, msg, mp1, mp2);
    533533}
     
    541541BOOL writeVolumeToIni(char * iniFile,  ULONG ulVolume)
    542542{
    543  
     543
    544544  return IniSaveInt(iniFile, INI_CLASSVOLUME_APP, INI_VOLUME_KEY, ulVolume);
    545545}
     
    580580  if(hab) {
    581581    hmq=WinCreateMsgQueue(hab,0);
    582     if(hmq) { 
    583       /* Check if user started prog by hand */   
     582    if(hmq) {
     583      /* Check if user started prog by hand */
    584584      if(argc!=NUMPARAMS ) {/* Not the right num of params */
    585585        pmUsage();
     
    591591        //    ++chrPtrName;
    592592        //SysWriteToTrapLog("Name: %s\n", chrSourceName);
    593         /* Get our ressource dll */ 
     593        /* Get our ressource dll */
    594594        RESSOURCEHANDLE=queryResModuleHandle(argv[0]);
    595595        /* Get data from INI file */
     
    604604        _loadBmps();
    605605
    606         if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc, 
     606        if( WinDlgBox( HWND_DESKTOP, NULLHANDLE, decodeStatusDialogProc,
    607607                       RESSOURCEHANDLE, IDDLG_CLASSVOLUME, 0) == DID_ERROR )
    608608          {
    609609            /*
    610               Text:   
    611               Title:  "Installation problem"                       
    612               */             
     610              Text:
     611              Title:  "Installation problem"
     612              */
    613613            messageBox( text, IDSTR_CONVERTDIALOGERROR , sizeof(text),
    614614                        title, IDSTR_INSTALLERRORTITLE , sizeof(title),
  • trunk/classes/res/de/mmres_de.DEF

    r2 r104  
    1818; */
    1919
    20 LIBRARY MMRES_DE INITGLOBAL
     20LIBRARY MMRES_DE INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Chris Wohlgemuth :0.2 (13.03.02) (mmres_de.DLL)#@##1## 13.03.2002 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    2222PROTMODE
    2323CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED DISCARDABLE
    25 EXPORTS 
     24DATA MULTIPLE NONSHARED
     25EXPORTS
    2626        queryLanguage
    2727
  • trunk/classes/res/en/audioconv_en.dlg

    r2 r104  
    88            FCF_SYSMENU | FCF_TITLEBAR
    99    BEGIN
    10         GROUPBOX        "", IDGB_CONVERT, 3, 105, 203, 69
     10        GROUPBOX        "Source", IDGB_CONVERT, 3, 105, 203, 69
    1111        LTEXT           "Name:", IDST_CONVERTNAMELABEL, 7, 156, 32, 8
    1212        RTEXT           "", IDST_CONVERTNAME, 45, 156, 156, 8
    13         LTEXT           "? Hz", IDST_CONVERTSAMPLERATE, 7, 131, 91, 8
    14         LTEXT           "? Channels", IDST_CONVERTCHANNELS, 7, 120, 91, 8
    15         LTEXT           "", IDST_CONVERTCDBITS, 103, 142, 98, 8
     13        LTEXT           "Sample rate: ? Hz", IDST_CONVERTSAMPLERATE, 7, 131, 91, 8
     14        LTEXT           "Channels: ?", IDST_CONVERTCHANNELS, 7, 120, 91, 8
     15        LTEXT           "Bits per sample: ?", IDST_CONVERTCDBITS, 103, 142, 98, 8
    1616        LTEXT           "(CD: 44100 Hz)", IDST_CONVERTCDSAMPLELABEL, 103, 131,
    1717                        98, 8
    1818        LTEXT           "(CD: 2 Channels)", IDST_CONVERTCDCHANNELSLABEL, 103,
    1919                        120, 98, 8
    20         LTEXT           "Playtime: ?", IDST_CONVERTPLAYTIME, 7, 109, 161, 8
    21         GROUPBOX        "", IDGB_CONVERT2, 3, 19, 203, 85
     20        LTEXT           "Play time: ?", IDST_CONVERTPLAYTIME, 7, 109, 161, 8
     21        GROUPBOX        "Target", IDGB_CONVERT2, 3, 19, 203, 85
    2222        LTEXT           "Convert to:", 317, 7, 86, 86, 8
    2323        CONTROL         "", IDDD_IOPROC, 7, 28, 195, 54, WC_COMBOBOX,
     
    2626
    2727        LTEXT           "Target name:", 2419, 7, 57, 64, 8
    28         ENTRYFIELD      "", IDEF_CONVERTTARGETNAME, 9, 45, 139, 8, ES_RIGHT |
    29                         ES_MARGIN
     28        ENTRYFIELD      "", IDEF_CONVERTTARGETNAME, 9, 45, 139, 8, ES_MARGIN
     29
    3030        PUSHBUTTON      "~Browse...", IDPB_CONVERTBROWSE, 153, 42, 47, 14
    3131        CONTROL         "", IDBAR_CONVERTPROGRESS, 6, 24, 194, 13,
     
    3636    END
    3737END
    38 
  • trunk/classes/res/en/audioconv_en.rc

    r2 r104  
    77BEGIN
    88
    9 IDSTR_CONVERTCHANNELS    "%d Channels"
    10 IDSTR_CONVERTSAMPLERATE  "%d Hz"
    11 IDSTR_CONVERTPLAYTIME    "%d:%02d min playtime"
     9IDSTR_CONVERTCHANNELS    "Channels: %d"
     10IDSTR_CONVERTSAMPLERATE  "Sample rate: %d Hz"
     11IDSTR_CONVERTPLAYTIME    "Play time: %d:%02d"
    1212IDSTR_CONVERTDIALOGERROR "Can't load dialog template! Please check your installation."
    1313IDSTR_CONVERTNOSPACETITLE   "Convert to wave"
     
    1717
    1818END
    19 
    20 
  • trunk/classes/res/en/cwaudio_en.dlg

    r93 r104  
    3535        GROUPBOX        "", IDGB_WAVEINFO, 6, 4, 154, 67, NOT
    3636                        WS_GROUP
    37         LTEXT           "Samplerate:", IDST_SAMPLERATELABEL, 17, 35, 76, 8
     37        LTEXT           "Sample rate:", IDST_SAMPLERATELABEL, 17, 35, 76, 8
    3838        LTEXT           "Bits per sample:", IDST_BPSLABEL, 17, 23, 76, 8
    3939        LTEXT           "Play time:", IDST_PLAYTIMELABEL, 17, 47, 76, 8
     
    7171        GROUPBOX        "URL", IDGB_STREAMURL, 6, 4, 154, 61, NOT WS_GROUP
    7272        ENTRYFIELD      "", IDEF_URL, 13, 23, 140, 8, ES_MARGIN
    73         LTEXT           "Enter URL to streaming server:", IDST_URLTEXT, 12,
     73        LTEXT           "Enter URL for streaming server:", IDST_URLTEXT, 12,
    7474                        37, 143, 8
    7575    END
    7676END
    77 
  • trunk/classes/res/en/cwimage_en.rc

    r2 r104  
    2626IDSTR_CWIMAGETITLE  "Digital image"
    2727
    28 IDSTR_IMAGEINFOPAGENAME "~Image information"
    29 IDSTR_SPRINTFPIXEL      "%d Pixel"
     28IDSTR_IMAGEINFOPAGENAME "~Image details"
     29IDSTR_SPRINTFPIXEL      "%d Pixels"
    3030IDSTR_SPRINTFBIT       "%d Bit"
    3131;Bitmpap load errors
     
    4242
    4343;Titles used when starting player and editor applications
    44 IDSTR_IMGEDITORTITLE       "Imageviewer"
     44IDSTR_IMGEDITORTITLE       "Image viewer"
    4545IDSTR_MENU_IMAGEINFO        "Image information: %d x %d x %d"
    4646
    4747;IDSTR_HELPLIBRARY   "MMPARTS.HLP"
    4848END
    49 
    50 
  • trunk/classes/res/en/imageconv_en.dlg

    r2 r104  
    1313        CONTROL         "", IDSR_BMP, 12, 100, 185, 69, WC_STATIC,
    1414                        SS_FGNDRECT | WS_GROUP | WS_VISIBLE
    15         LTEXT           "Convert to", IDST_IMGCONVERTTO, 7, 88, 53, 8
     15        LTEXT           "Convert to:", IDST_IMGCONVERTTO, 7, 88, 53, 8
    1616        CONTROL         "", IDDD_IMGIOPROC, 6, 6, 196, 78, WC_COMBOBOX,
    1717                        CBS_DROPDOWNLIST | LS_HORZSCROLL | WS_GROUP |
     
    2727    END
    2828END
    29 
  • trunk/classes/res/en/mmfind_en.rc

    r4 r104  
    1010IDSTR_AUDIOINFOTEXT   "Play time:\t%02d:%02d\x0a\x0aSamplerate:\t%d\x0a\x0aBits per sample:\t%d\x0a\x0aChannels:\t%d"
    1111IDSTR_NOMMTEMPLATEFLDRTITLE "Error during file creation"
    12 IDSTR_NOMMTEMPLATEFLDR "Multimedia template folder can't be found. It may has lost the object ID <MMPM2_MMTEMPLATEFOLDER>."
     12IDSTR_NOMMTEMPLATEFLDR "Multimedia template folder can't be found. It may have lost the object ID <MMPM2_MMTEMPLATEFOLDER>."
    1313END
  • trunk/classes/res/en/mmres_en.DEF

    r2 r104  
    1818; */
    1919
    20 LIBRARY MMRES_EN INITGLOBAL
     20LIBRARY MMRES_EN INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Chris Wohlgemuth :0.2 (13.03.02) (mmres_en.DLL)#@##1## 13.03.2002 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    2222PROTMODE
    2323CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED DISCARDABLE
    25 EXPORTS 
     24DATA MULTIPLE NONSHARED
     25EXPORTS
    2626        queryLanguage
    2727
  • trunk/classes/res/it/mmres_it.DEF

    r2 r104  
    1818; */
    1919
    20 LIBRARY MMRES_IT INITGLOBAL
     20LIBRARY MMRES_IT INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Chris Wohlgemuth :0.2 (13.03.02) (mmres_it.DLL)#@##1## 13.03.2002 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    2222PROTMODE
    2323CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED DISCARDABLE
     24DATA MULTIPLE NONSHARED
    2525EXPORTS
    2626        queryLanguage
  • trunk/classes/res/nl/mmres_nl.DEF

    r2 r104  
    1818; */
    1919
    20 LIBRARY MMRES_NL INITGLOBAL
     20LIBRARY MMRES_NL INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) B. van Leeuwen :0.2 (13.03.02) (mmres_nl.DLL)#@##1## 13.03.2002 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    2222PROTMODE
    2323CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED DISCARDABLE
    25 EXPORTS 
     24DATA MULTIPLE NONSHARED
     25EXPORTS
    2626        queryLanguage
    2727
  • trunk/classes/res/tw/mmres_tw.DEF

    r4 r104  
    1818; */
    1919
    20 LIBRARY MMRES_TW INITGLOBAL
     20LIBRARY MMRES_TW INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Ming-Lung Cheng:0.2 (12.02.06) (mmres_tw.DLL)#@##1## 13.03.2002 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    2222PROTMODE
    2323CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED DISCARDABLE
    25 EXPORTS 
     24DATA MULTIPLE NONSHARED
     25EXPORTS
    2626        queryLanguage
    2727
  • trunk/common_functions/helper.c

    r4 r104  
    1919/*
    2020 * If you need another license for your prject/product contact me at
    21  * 
     21 *
    2222 * http://www.os2world.com/cdwriting
    2323 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    4040//#define INSTALLDIR 1
    4141
    42 #define INI_BGCLR_KEY       "bg"
    43 #define INI_FGCLR_KEY       "fg"
    44 #define INI_BTNBGCLR_KEY       "btnbg"
    45 #define INI_BTNFGCLR_KEY       "btnfg"
    46 #define INI_ACTIVETBBGCLR_KEY       "activetbbg"
    47 #define INI_INACTIVETBBGCLR_KEY       "inactivetbbg"
    48 #define INI_ACTIVETBFGCLR_KEY       "activetbfg"
    49 #define INI_INACTIVETBFGCLR_KEY       "inactivetbfg"
     42#define INI_BGCLR_KEY            (PSZ)"bg"
     43#define INI_FGCLR_KEY            (PSZ)"fg"
     44#define INI_BTNBGCLR_KEY         (PSZ)"btnbg"
     45#define INI_BTNFGCLR_KEY         (PSZ)"btnfg"
     46#define INI_ACTIVETBBGCLR_KEY    (PSZ)"activetbbg"
     47#define INI_INACTIVETBBGCLR_KEY  (PSZ)"inactivetbbg"
     48#define INI_ACTIVETBFGCLR_KEY    (PSZ)"activetbfg"
     49#define INI_INACTIVETBFGCLR_KEY  (PSZ)"inactivetbfg"
    5050
    5151/* The subdirectory in the installation directory where to put the log files */
     
    5656#define DEFRESDLLNAME "\\mmres_en.dll"
    5757
    58 extern char* params[];
     58extern PSZ params[];
    5959extern HMODULE RESSOURCEHANDLE;
    6060extern char logName[];
     
    6565
    6666HMODULE _queryResModuleHandle2(char *installDir);
    67 BOOL IniSaveData(char * iniFile, char* chrApp, char *chrKey, void* theData, ULONG ulSize);
    68 BOOL IniRestoreData(char * iniFile, char* chrApp, char *chrKey, void * theData, ULONG* ulMaxSize);
    69 void writeLog(char* logText);
     67BOOL IniSaveData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, ULONG ulSize);
     68BOOL IniRestoreData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, PULONG ulMaxSize);
     69void writeLog(PSZ logText);
    7070void HlpWriteToTrapLog(const char* chrFormat, ...);
    7171
     
    7474{
    7575  char logNameLocal[CCHMAXPATH];
    76  
     76
    7777  sprintf(logNameLocal,"%s\\%s\\%s",params[1],LOGFILE_SUBDIR,logName);
    7878
     
    8888}
    8989
    90 void writeLog(char* logText)
     90void writeLog(PSZ logText)
    9191{
    9292  char logNameLocal[CCHMAXPATH];
     
    117117{
    118118  STARTDATA startData={0};
    119   APIRET rc;
    120119  PID pid;
    121120  ULONG ulSessionID=0;
    122   char chrLoadError[CCHMAXPATH];
    123   char startParams[CCHMAXPATH*4];
    124   char exename[CCHMAXPATH]={0};
    125   char chrFolderPath[CCHMAXPATH+10];
    126  
     121  UCHAR chrLoadError[CCHMAXPATH];
     122  UCHAR startParams[CCHMAXPATH*4];
     123  UCHAR exename[CCHMAXPATH]={0};
     124  UCHAR chrFolderPath[CCHMAXPATH+10];
     125
    127126  memset(&startData,0,sizeof(startData));
    128127  startData.Length=sizeof(startData);
     
    131130  startData.TraceOpt=SSF_TRACEOPT_NONE;
    132131  startData.PgmTitle=pszTitle;
    133    
     132
    134133  /*  sprintf(exename,"%s",buildWrapName(wrapperExe));*/
    135   sprintf(exename,"%s\\bin\\%s",params[1],wrapperExe);
     134  sprintf((PCHAR)exename,"%s\\bin\\%s",params[1],wrapperExe);
    136135  /*
    137136    if(!checkHelper(exename))
     
    151150
    152151  /* Put the exe-path between " " to make sure, spaces are handled correctly */
    153   strcpy(chrFolderPath,folderPath);
    154   sprintf(startParams,"\"%s\" \"%s\" %s",
    155           chrInstallDir,chrFolderPath, parameter);
     152  strcpy((PCHAR)chrFolderPath,(PCHAR)folderPath);
     153  sprintf((PCHAR)startParams,"\"%s\" \"%s\" %s",
     154          (PCHAR)chrInstallDir,(PCHAR)chrFolderPath, (PCHAR)parameter);
    156155  startData.PgmInputs=startParams;
    157156
    158   rc=DosStartSession(&startData,&ulSessionID,&pid);   
    159   return 0;   
    160 }
    161 
    162 
    163 BOOL IniRestoreWindowPos(char * iniFile, char* chrApp, char *chrKey, HWND hwnd)
     157  DosStartSession(&startData,&ulSessionID,&pid);
     158  return 0;
     159}
     160
     161
     162BOOL IniRestoreWindowPos(char * iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd)
    164163{
    165164  HINI hini=0;
     
    183182    }/* end of if(!hini) */
    184183
    185     ulSize=sizeof(swp); 
     184    ulSize=sizeof(swp);
    186185    if(!PrfQueryProfileData(hini, chrApp, chrKey, &swp, &ulSize))
    187186      bError=TRUE;
     
    189188    if(hini)
    190189      PrfCloseProfile(hini);
    191    
     190
    192191    if(bError)
    193192      break;
     
    199198}
    200199
    201 BOOL IniSaveWindowPos(char * iniFile, char* chrApp, char *chrKey, HWND hwnd)
     200BOOL IniSaveWindowPos(PSZ iniFile, PSZ chrApp, PSZ chrKey, HWND hwnd)
    202201{
    203202  HINI hini=0;
     
    206205
    207206  /* Open ini-file */
    208   hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),(unsigned char *)iniFile);
     207  hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile);
    209208  do{
    210209
     
    227226    if(hini)
    228227      PrfCloseProfile(hini);
    229    
     228
    230229    if(bError)
    231230      break;
     
    235234}
    236235
    237 BOOL IniSaveWindowClrs(char * chrIniFile, char* chrApp , HWND hwnd)
     236BOOL IniSaveWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd)
    238237{
    239238  RGB rgb;
     
    283282}
    284283
    285 BOOL IniRestoreWindowClrs(char * chrIniFile, char* chrApp , HWND hwnd)
     284BOOL IniRestoreWindowClrs(PSZ chrIniFile, PSZ chrApp , HWND hwnd)
    286285{
    287286  RGB rgb;
    288287  ULONG ulSize;
    289  
     288
    290289  ulSize=sizeof(RGB);
    291290  if(IniRestoreData(chrIniFile, chrApp, INI_BGCLR_KEY, &rgb, &ulSize))
     
    295294                      PP_BACKGROUNDCOLOR,(ULONG)sizeof(rgb), &rgb);
    296295    }
    297   ulSize=sizeof(RGB);       
     296  ulSize=sizeof(RGB);
    298297  if(IniRestoreData(chrIniFile, chrApp, INI_FGCLR_KEY, &rgb, &ulSize))
    299298    {
     
    306305  if(IniRestoreData(chrIniFile, chrApp, INI_ACTIVETBBGCLR_KEY, &rgb, &ulSize))
    307306    {
    308            
     307
    309308      WinSetPresParam(WinWindowFromID(hwnd, FID_TITLEBAR),
    310309                      PP_ACTIVECOLOR,(ULONG)sizeof(rgb), &rgb);
     
    324323  if(IniRestoreData(chrIniFile, chrApp, INI_ACTIVETBFGCLR_KEY, &rgb, &ulSize))
    325324    {
    326            
     325
    327326      //            WinSetPresParam(WinWindowFromID(hwnd, FID_TITLEBAR),
    328327      //              PP_ACTIVECOLOR,(ULONG)sizeof(rgb), &rgb);
     
    341340}
    342341
    343 BOOL IniSaveInt(char * iniFile, char* chrApp, char *chrKey, int theInt)
     342BOOL IniSaveInt(PSZ iniFile, PSZ chrApp, PSZ chrKey, int theInt)
    344343{
    345344  HINI hini=0;
    346345  BOOL bError=FALSE;
    347   char chrIntString[50];
     346  UCHAR chrIntString[50];
    348347
    349348  /* Open ini-file */
     
    363362    }/* end of if(!hini) */
    364363
    365     sprintf(chrIntString, "%d", theInt);
     364    sprintf((PCHAR)chrIntString, "%d", theInt);
    366365    if(!PrfWriteProfileString(hini, chrApp, chrKey, chrIntString))
    367366      bError=TRUE;
     
    369368    if(hini)
    370369      PrfCloseProfile(hini);
    371    
     370
    372371    if(bError)
    373372      break;
     
    377376}
    378377
    379 BOOL IniSaveData(char * iniFile, char* chrApp, char *chrKey, void* theData, ULONG ulSize)
     378BOOL IniSaveData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, ULONG ulSize)
    380379{
    381380  HINI hini=0;
     
    383382
    384383  /* Open ini-file */
    385   hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),(unsigned char *)iniFile);
     384  hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile);
    386385  do{
    387386
     
    403402    if(hini)
    404403      PrfCloseProfile(hini);
    405    
     404
    406405    if(bError)
    407406      break;
     
    411410}
    412411
    413 BOOL IniRestoreData(char * iniFile, char* chrApp, char *chrKey, void * theData, ULONG* ulMaxSize)
     412BOOL IniRestoreData(PSZ iniFile, PSZ chrApp, PSZ chrKey, PVOID theData, PULONG ulMaxSize)
    414413{
    415414  HINI hini=0;
     
    417416
    418417  /* Open ini-file */
    419   hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),(unsigned char *)iniFile);
     418  hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile);
    420419  do{
    421420
     
    433432
    434433    bError=PrfQueryProfileData(hini, chrApp, chrKey, theData, ulMaxSize);
    435    
     434
    436435    if(hini)
    437436      PrfCloseProfile(hini);
    438    
     437
    439438    return bError;
    440439  } while(TRUE);
     
    443442
    444443
    445 int IniRestoreInt(char * iniFile, char* chrApp, char *chrKey, int defaultInt)
     444int IniRestoreInt(PSZ iniFile, PSZ chrApp, PSZ chrKey, int defaultInt)
    446445{
    447446  HINI hini=0;
     
    449448
    450449  /* Open ini-file */
    451   hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),(unsigned char *)iniFile);
     450  hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),iniFile);
    452451  do{
    453452
     
    465464
    466465    theInt=PrfQueryProfileInt(hini, chrApp, chrKey, defaultInt);
    467    
     466
    468467    if(hini)
    469468      PrfCloseProfile(hini);
    470    
     469
    471470    return theInt;
    472471  } while(TRUE);
     
    475474
    476475
    477 BOOL readIni2(char * installDir)
    478 {
    479   HWND hwnd;
    480 
    481   hwnd=HWND_DESKTOP;
     476BOOL readIni2(PSZ installDir)
     477{
    482478#if 0
    483479  strncpy(chrInstallDir, installDir,sizeof(chrInstallDir));
    484480  /* Build full path for cdrecord.ini file */
    485   sprintf(profileName,"%s\\cdrecord.ini", installDir);       
     481  sprintf(profileName,"%s\\cdrecord.ini", installDir);
    486482  /* Insert message in Logfile */
    487483  writeLog("Reading values from ");
     
    490486
    491487  /* Open ini-file */
    492   hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),(unsigned char *)profileName);
     488  hini=PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),profileName);
    493489  do{
    494490    if(!hini) {
     
    522518{
    523519  /* Build full path for cdrecord.ini file */
    524   snprintf(chrBuffer, iBufferSize, "%s\\cdrecord.ini", chrInstallDir);       
     520  snprintf(chrBuffer, iBufferSize, "%s\\cdrecord.ini", chrInstallDir);
    525521  chrBuffer[iBufferSize-1]=0; /* Always terminate with zero */
    526522}
     
    529525HINI HlpOpenIni()
    530526{
    531   char profileName[CCHMAXPATH];
     527  UCHAR profileName[CCHMAXPATH];
    532528
    533529  /* Build full path for cdrecord.ini file */
     
    535531
    536532  /* Open ini-file */
    537   return PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),(unsigned char *)profileName);
     533  return PrfOpenProfile(WinQueryAnchorBlock(HWND_DESKTOP),profileName);
    538534}
    539535
     
    568564BOOL HlpBuildMMProgIniFileName(char* chrProgname, char * chrBuffer, ULONG ulBufferSize)
    569565{
    570   char * chrPtr; 
     566  char * chrPtr;
    571567
    572568  /* Default is INI file in users home dir */
     
    591587#if 0
    592588/* This function returns the module handle of our ressource dll */
    593 HMODULE queryResModuleHandle(char *chrExePath)
     589HMODULE queryResModuleHandle(PSZ chrExePath)
    594590{
    595591  COUNTRYCODE country= {0};
    596592  COUNTRYINFO countryInfo= {0};
    597   char path[CCHMAXPATH]; 
    598   char buf[CCHMAXPATH];
    599   char* found;
     593  UCHAR path[CCHMAXPATH];
     594  UCHAR buf[CCHMAXPATH];
     595  PUCHAR found;
    600596  APIRET rc;
    601597  ULONG ulInfoLen;
    602    
     598
    603599  if(!RESSOURCEHANDLE) {
    604600
    605601    //writeLog("Trying to load ressource DLL.\n");
    606602
    607     /* Get the country code of our system and load the 
     603    /* Get the country code of our system and load the
    608604       resource DLL with the right language */
    609605    do {
     
    632628      /* Insert message in Logfile */
    633629      //      writeLog("Ressource-DLL for the current countrycode not found. Trying to load default one (CDFLD001.DLL).\n");
    634      
     630
    635631      /* NLS DLL not found. Try to load default */
    636632      found=strrchr(path,'\\');
     
    644640      //HlpWriteToTrapLog(path);
    645641      //HlpWriteToTrapLog("\n");
    646      
     642
    647643
    648644      rc=DosLoadModule(buf,sizeof(buf),path, &RESSOURCEHANDLE);
     
    662658
    663659/* This function returns the module handle of our ressource dll */
    664 HMODULE queryResModuleHandle(char *chrExePath)
    665 {
    666   char path[CCHMAXPATH]; 
    667   char buf[CCHMAXPATH];
    668   char* found;
     660HMODULE queryResModuleHandle(PSZ chrExePath)
     661{
     662  UCHAR path[CCHMAXPATH];
     663  UCHAR buf[CCHMAXPATH];
     664  PCHAR found;
    669665  APIRET rc;
    670    
     666
    671667  if(!RESSOURCEHANDLE) {
    672    
     668
    673669    //writeLog("Trying to load ressource DLL.\n");
    674    
    675     /* Get the language code of our system and load the 
     670
     671    /* Get the language code of our system and load the
    676672       resource DLL with the right language */
    677     do 
     673    do
    678674      {
    679         static char chrLang[]="en_EN";
    680         PSZ pszLang="";
    681         char *chrPtr;
    682        
     675        static UCHAR chrLang[]="en_EN";
     676        PSZ pszLang=NULL;
     677        PUCHAR chrPtr;
     678
    683679        /* Get Language var */
    684         if(NO_ERROR!=DosScanEnv("LANG", &pszLang)) {
     680        if(NO_ERROR!=DosScanEnv((PSZ)"LANG", &pszLang)) {
    685681         pszLang=chrLang;
    686         }       
     682        }
    687683        /* Skip leading spaces */
    688684        chrPtr=pszLang;
    689685        while(*chrPtr==' ')
    690686          chrPtr++;
    691        
     687
    692688        /* Check if value seems to be valid. The var must be something like xx_XX thus length is 5 */
    693         if(strlen(chrPtr)<5)
     689        if(strlen((PCHAR)chrPtr)<5)
    694690          break;
    695        
    696         sprintf(path,"%s", chrExePath);
     691
     692        sprintf((PCHAR)path,"%s", chrExePath);
    697693        //    SysWriteToTrapLog(path);
    698         if((found=strrchr(path, '\\'))!=NULLHANDLE)
     694        if((found=strrchr((PCHAR)path, '\\'))!=NULLHANDLE)
    699695          *found=0;
    700696
    701         /* Extract the first two chars */               
    702         sprintf(buf, RESDLLNAME, chrPtr[0], chrPtr[1]);
    703         strcat(path,buf);
     697        /* Extract the first two chars */
     698        sprintf((PCHAR)buf, RESDLLNAME, chrPtr[0], chrPtr[1]);
     699        strcat((PCHAR)path,(const PCHAR)buf);
    704700        /* Insert message in Logfile */
    705701        // SysWriteToTrapLog("Using the following DLL path: %s\n", path);
    706        
     702
    707703        rc=DosLoadModule(buf,sizeof(buf),path, &RESSOURCEHANDLE);
    708704        if(rc==NO_ERROR)
    709705          break;
    710        
     706
    711707        /* Insert message in Logfile */
    712708        SysWriteToTrapLog("Ressource-DLL for the current country not found. Trying to load default one.\n");
    713        
     709
    714710        /* NLS DLL not found. Try to load default */
    715         found=strrchr(path,'\\');
     711        found=strrchr((PCHAR)path,(int)'\\');
    716712        if(!found)
    717713          break;
    718        
     714
    719715        *found=0;
    720         sprintf(buf, DEFRESDLLNAME);
    721         strcat(path,buf);
     716        sprintf((PCHAR)buf, DEFRESDLLNAME);
     717        strcat((PCHAR)path,(const PCHAR)buf);
    722718        //HlpWriteToTrapLog("Using the following DLL path: ");
    723719        //HlpWriteToTrapLog(path);
    724720        //HlpWriteToTrapLog("\n");
    725        
    726        
     721
     722
    727723        rc=DosLoadModule(buf,sizeof(buf),path, &RESSOURCEHANDLE);
    728724        if(rc!=NO_ERROR) {
     
    745741}
    746742
    747 void HlpSendCommandToObject(char* chrObject, char* command)
     743void HlpSendCommandToObject(PSZ chrObject, PSZ command)
    748744{
    749745  HOBJECT hObject;
    750   char chrCommand[CCHMAXPATH];
     746  UCHAR chrCommand[CCHMAXPATH];
    751747
    752748  hObject=WinQueryObject(chrObject);
    753   sprintf(chrCommand,"Querying object pointer for: %s\n", chrObject);
     749  sprintf((PCHAR)chrCommand,"Querying object pointer for: %s\n", chrObject);
    754750  writeLog(chrCommand);
    755751  if(hObject!=NULLHANDLE) {
    756     strcpy(chrCommand,command);
     752    strcpy((PCHAR)chrCommand,(const PCHAR)command);
    757753    WinSetObjectData(hObject,chrCommand);
    758     writeLog("Sending command to object: ");
     754    writeLog((PSZ)"Sending command to object: ");
    759755    writeLog(command);
    760     writeLog("\n");
     756    writeLog((PSZ)"\n");
    761757  }
    762758  else {
    763     sprintf(chrCommand,"Can't query object pointer for: %s\n", chrObject);
     759    sprintf((PCHAR)chrCommand,"Can't query object pointer for: %s\n", chrObject);
    764760    writeLog(chrCommand);
    765761  }
    766762}
    767763
    768 
  • trunk/common_functions/img_funcs.c

    r4 r104  
    11/*
    2   This file conatins functions for loading image files. 
     2  This file conatins functions for loading image files.
    33 */
    44
     
    6464    SIZEL         ImageSize;
    6565    ULONG         dwHeight, dwWidth;
    66     SHORT          wBitCount;
    6766    FOURCC        fccStorageSystem;
    6867    ULONG         dwPadBytes;
    6968    ULONG         dwRowBits;
    7069    ULONG         ulReturnCode;
    71     ULONG         dwReturnCode;
    72     HBITMAP       hbReturnCode;
    73     LONG          lReturnCode;
    7470    FOURCC        fccIOProc;
    7571    HDC           hdc;
     
    129125
    130126
    131     dwReturnCode = mmioQueryHeaderLength ( hmmio,
     127    ulReturnCode = mmioQueryHeaderLength ( hmmio,
    132128                                         (PLONG)&ulImageHeaderLength,
    133129                                           0L,
     
    163159    dwHeight = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cy;
    164160    dwWidth = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cx;
    165     wBitCount = mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;
    166161    dwRowBits = dwWidth * mmImgHdr.mmXDIBHeader.BMPInfoHeader2.cBitCount;
    167162    dwNumRowBytes = dwRowBits >> 3;
     
    203198        return(0L);
    204199      }
    205    
     200
    206201    /*
    207202    // ***************************************************
     
    226221                       (ULONG) MB_OK | MB_MOVEABLE |
    227222                       MB_ERROR );
    228 #endif   
     223#endif
    229224        DevCloseDC(hdc);
    230225        DosFreeMem(pRowBuffer);
     
    265260      Select the bitmap into the memory device context.
    266261      ***************************************************/
    267     hbReturnCode = GpiSetBitmap ( hps,
     262    ulReturnCode = GpiSetBitmap ( hps,
    268263                                  hbm );
    269264    /***************************************************************
     
    285280          *  it to work. Perhaps will get to it when time is available...
    286281          */
    287          lReturnCode = GpiSetBitmapBits ( hps,
     282         ulReturnCode = GpiSetBitmapBits ( hps,
    288283                                          (LONG) dwRowCount,
    289284                                          (LONG) 1,
     
    293288
    294289    /* Clean up */
    295     hbReturnCode = GpiSetBitmap ( hps,
     290    ulReturnCode = GpiSetBitmap ( hps,
    296291                                  NULLHANDLE );
    297292    ulReturnCode = mmioClose (hmmio, 0L);
     
    368363    ULONG         ulReturnCode;
    369364    ULONG ulBytesRead;
    370    
     365
    371366    /* Check file size */
    372367    if(SysQueryFileSize(pszFileName)==0)
    373368      return FALSE; /* File is empty at the moment, so return without reading. */
    374    
     369
    375370    ulReturnCode = mmioIdentifyFile ( pszFileName,
    376371                                      0L,
     
    436431                       &mmioinfo,
    437432                       MMIO_READ | MMIO_DENYWRITE | MMIO_NOIDENTIFY );
    438    
     433
    439434    if ( ! hmmio )
    440435    {
  • trunk/common_functions/ini_funcs.c

    r4 r104  
    5555    if(hiniPriv && !hini)
    5656      PrfCloseProfile(hiniPriv);
    57    
     57
    5858    if(bError)
    5959      break;
     
    103103    }/* end of if(!hini) */
    104104
    105     ulSize=sizeof(swp); 
     105    ulSize=sizeof(swp);
    106106    if(!PrfQueryProfileData(hiniPriv, chrApp, chrKey, &swp, &ulSize))
    107107      bError=TRUE;
     
    109109    if(hiniPriv && !hini)
    110110      PrfCloseProfile(hiniPriv);
    111    
     111
    112112    if(bError)
    113113      break;
     
    166166    if(hiniPriv && !hini)
    167167      PrfCloseProfile(hiniPriv);
    168    
     168
    169169    if(bError)
    170170      break;
     
    214214    ulRC=PrfQueryProfileString(hiniPriv, chrApp, chrKey, chrDefault, chrBuffer, ulSize);
    215215
    216     if(hiniPriv && !hini)
    217       PrfCloseProfile(hiniPriv);
    218    
    219       break;
     216    if(hiniPriv && !hini) {
     217      PrfCloseProfile(hiniPriv);
     218    }
     219    break;
    220220  } while(TRUE);
    221221  return ulRC;
  • trunk/common_functions/makefile

    r53 r104  
    44
    55CC           = gcc
    6 LIB_DIR      = U:/usr/lib
     6LIB_DIR      = D:/usr/lib
    77#CPPFLAGS     = -Ge- /Gm+ -G4 -Gl  /O+ -Oc+ -Ol
    88CPPFLAGS     = -O -Zomf -Zcrtdll -s
    99INC             = ../include
    10 DEFS         = 
    11 PROGS        = 
     10DEFS         =
     11PROGS        =
    1212ODIR            = .
    1313CPPDIR  = .
  • trunk/common_functions/message.c

    r4 r104  
    1111  WinMessageBox(HWND_DESKTOP,0,
    1212                "The resource DLL which contains all the dialogs, graphics and messages cannot be loaded. \
    13 Please check your installation.",
    14 "Problem with class installation",12345,
     13                \nPlease check your installation.",
     14                "Problem with class installation",12345,
    1515                MB_OK|MB_MOVEABLE|MB_ERROR);
    1616}
     
    2323    At least I suspect this happens on system where the MM classes don't work.
    2424    Instead there's a new function errorResourceVerbose() which may be called when we
    25     know, the WPS is up and running. 
     25    know, the WPS is up and running.
    2626   */
    2727  WinMessageBox(HWND_DESKTOP,0,
     
    5151/*                                                  */
    5252/*!!*************************************************/
    53 ULONG messageBox( char* text, ULONG ulTextID , LONG lSizeText,
    54                   char* title, ULONG ulTitleID, LONG lSizeTitle,
     53ULONG messageBox( PSZ text, ULONG ulTextID , LONG lSizeText,
     54                  PSZ title, ULONG ulTitleID, LONG lSizeTitle,
    5555                  HMODULE hResource, HWND hwnd, ULONG ulFlags)
    5656{
     
    6767}
    6868
    69 static ULONG mBox( char* text, ULONG ulTextID , LONG lSizeText,
    70                    char* title, ULONG ulTitleID, LONG lSizeTitle,
     69static ULONG mBox( PSZ text, ULONG ulTextID , LONG lSizeText,
     70                   PSZ title, ULONG ulTitleID, LONG lSizeTitle,
    7171                   HMODULE hResource, HWND hwnd, ULONG ulFlags)
    7272{
     
    183183ULONG MsgShowMessageBox(HWND hwnd, ULONG ulIDTitle, ULONG ulIDText, HMODULE hModule, ULONG ulFlag)
    184184{
    185   char* pText;
    186   char* pTitle;
     185  PSZ pText;
     186  PSZ pTitle;
    187187  ULONG rc;
    188188
     
    223223/*                                                  */
    224224/*!!*************************************************/
    225 BOOL getMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
     225BOOL getMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
    226226{
    227227  if(!WinLoadString(WinQueryAnchorBlock(hwnd),hResource,ulID,lSizeText,text)) {
    228     strcpy(text,"");
     228    strcpy((PCHAR)text,"");
    229229    return FALSE;
    230230  }
     
    250250/*                                                           */
    251251/*!!**********************************************************/
    252 BOOL MsgGetMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
     252BOOL MsgGetMessage(PSZ text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
    253253{
    254254  return getMessage( text, ulID, lSizeText, hResource, hwnd);
     
    258258{
    259259  WinMessageBox(HWND_DESKTOP,0,
    260                 "This helper shouldn't be started by hand. It is called by the multimedia classes. \
    261 If you didn't launch the helper by hand you may have found a bug. Please contact the author.",
     260                "This helper shouldn't be started by hand. \
     261                \nIt is called by the multimedia classes. \
     262                \nIf you didn't launch the helper by hand you may have found a bug. \
     263                \nPlease contact the author.",
    262264                "Problem with multimedia classes",12345,
    263265                MB_OK|MB_MOVEABLE|MB_ERROR);
  • trunk/make.inc

    r55 r104  
    11# List of languages to be built.
    2 LANGUAGES       =       de en nl it tw
     2LANGUAGES       =       de en es fr nl it tw
    33
    44#define the next makro if compiling a release rather than a beta
     
    4040export COMMONSRC        =       $(BUILD_ROOT)/common_functions
    4141
    42 export NLVBASE          =       $(BUILD_ROOT)/Trunk/nlv
    43 export MMSRCBASE        =       $(BUILD_ROOT)/Trunk
     42export NLVBASE          =       $(BUILD_ROOT)/nlv
     43export MMSRCBASE        =       $(BUILD_ROOT)
    4444
    45 
  • trunk/mediafolder/Help/makefile

    r4 r104  
    1515       
    1616mediafldr.hlp:  mediafldr.ipf mediafldr049.ipf mediafldr031.ipf mediafldr039.ipf \
    17                 mediafldr_ecs.ipf mediafldr049_ecs.ipf mediafldr031_ecs.ipf mediafldr039_ecs.ipf
     17               mediafldr033.ipf mediafldr034.ipf \
     18                mediafldr_ecs.ipf mediafldr049_ecs.ipf mediafldr031_ecs.ipf mediafldr039_ecs.ipf \
     19               mediafldr033_ecs.ipf
    1820ifdef    ECS_COMPILE
    1921        ipfc mediafldr_ecs.ipf mediafldr.hlp
     
    2123        ipfc mediafldr031_ecs.ipf mediafldr031.hlp
    2224        ipfc mediafldr039_ecs.ipf mediafldr039.hlp
    23         ipfc mediafldr088_ecs.ipf mediafldr088.hlp
     25        ipfc mediafldr088_ecs.ipf mediafldr088.hlp     
     26        ipfc mediafldr033_ecs.ipf mediafldr033.hlp
    2427else
    2528        ipfc mediafldr.ipf
     
    2730        ipfc mediafldr031.ipf
    2831        ipfc mediafldr039.ipf
    29         ipfc mediafldr088.ipf
     32        ipfc mediafldr088.ipf   
     33        ipfc mediafldr033.ipf
     34        ipfc mediafldr034.ipf
    3035endif
    3136
     
    4348
    4449distribution:
    45 
  • trunk/mediafolder/Help/mediafldr.ipf

    r2 r104  
    11:userdoc.
    22
    3 :docprof.
    4 
    5 :title.Help for Media Folder distribution 
    6 
    7 :h1 res=100.Help for Media Player
    8 :p.
    9 This object is a Media-Folder. Put any audio file into it
    10 for playing. Specify the order of the tracks using drag and drop.
    11 The usual play controls are available like play, stop or volume.
    12 :p.
    13 More information and updates:
    14 :p.
    15 :link reftype=launch
    16 object='netscape.exe'
    17 data='http://www.os2world.com/cdwriting'.
    18 http&colon.//www.os2world.com/cdwriting:elink.
    19 .br
    20 :link reftype=launch
    21 object='netscape.exe'
    22 data='http://www.geocities.com/SiliconValley/Sector/5785/'.
    23 http&colon.//www.geocities.com/SiliconValley/Sector/5785/:elink.
    24 :p.
     3:docprof toc=123456.
     4
     5:title.Help for Media Folder distribution
     6
     7.* ----------------------------------------------------------------------------
     8:h1 res=100 name=mplayer
     9    x=left y=bottom width=100% height=100%.Media player
     10
     11This object is a Media folder. Drag one or more audio files into it for
     12playing. To reorder, ensure that View | Sort > Always maintain sort order option
     13is deselected, as well as any other sort options which might affect manual
     14ordering, and drag and drop tracks into the folder as desired.
     15
     16:p.Use the buttons or :link reftype=hd refid=mkeyboard.Keyboard:elink. to
     17control playback. The Repeat checkbox will cause the currently selected track to
     18continuously replay. The Random checkbox will select tracks arbitrarily, unless
     19the Repeat checkbox has been set.
     20
     21:p.More information and updates&colon.
     22
     23:p.https&colon.//trac.netlabs.org/cwmmclasses/wiki
     24
    2525:nt.
    26 :p.
    27 For playing of MP3 files you need the MMIOMP3 procedure written
    28 by Russell O'Connor.
    29 :p.
    30 Get it from
    31 :p.
    32 :link reftype=launch
    33 object='netscape.exe'
    34 data='http://www.math.berkeley.edu/~roconnor/'.
    35 http&colon.//www.math.berkeley.edu/~roconnor/:elink.
     26A suitable MP3 MMIOProc is required in order to play MP3 files, as is a suitable
     27MMIOProc for Ogg (Vorbis and FLAC) files. These are included in the MMAudio Pak
     282, available from&colon.
     29
     30:p.http&colon.//r6.ca/MMAudioPak/
     31
     32:p.(Ogg formats are supported by default in ArcaOS 5.x and above.)
    3633:ent.
    37 :p.
    38 :hp2.Keyboard control:ehp2.
    39 :p.
    40 Use the following keys to control the media folder. The buttons in the upper part
    41 of the folder must have the focus when using the keys. Use :hp2.TAB:ehp2. to switch
    42 the focus from the container to the buttons.
    43 :p.
    44 :ul.
    45 :li.:hp8.B:ehp8.ack
    46 :li.:hp8.S:ehp8.top
    47 :li.:hp8.P:ehp8.ause
    48 :li.P:hp8.l:ehp8.ay
    49 :li.:hp8.N:ehp8.ext
    50 :li.:hp8.R:ehp8.epeat
     34
     35.* ----------------------------------------------------------------------------
     36:h2 res=110 name=mview
     37    x=left y=bottom width=100% height=100%.View options
     38
     39By default, Media folders are displayed in Details view, listing track-
     40specific details for each file or object which has been added to the main
     41folder.
     42
     43:p.To switch to Compact view, select View | Compact from the main menu. In this
     44mode, the folder content is hidden, however,
     45:link reftype=hd refid=mlaunchpad.Launchpad:elink. buttons will be visible.
     46
     47:note text='Tip:'.Select files to play contiguously, reordering folder content
     48if necessary, click :hp2.Play:ehp2., and then change the view to Compact.
     49
     50.* ----------------------------------------------------------------------------
     51:h2 res=120 name=mkeyboard
     52    x=left y=bottom width=100% height=100%.Keyboard control
     53
     54Use the following keys to control the Media folder. The buttons in the upper
     55part of the folder must have focus when using these keys. Use
     56:hp2.&lt.Tab&gt.:ehp2. to switch the focus from the container to the buttons.
     57
     58:ul compact.
     59:li.:hp2.B:ehp2.ack
     60:li.:hp2.S:ehp2.top
     61:li.:hp2.P:ehp2.ause
     62:li.P:hp2.l:ehp2.ay
     63:li.:hp2.N:ehp2.ext
     64:li.:hp2.R:ehp2.epeat
     65:li.R:hp2.a:ehp2.ndom
    5166:eul.
    5267
    53 :h1 res=200.Help for CD-Player
    54 :p.
    55 This object is a CD player with FreeDB support. Tracktitles and other information
    56 are queried from a FreeDB server if an internet connection is available.
    57 :p.
    58 More information and updates:
    59 :p.
    60 :link reftype=launch
    61 object='netscape.exe'
    62 data='http://www.os2world.com/cdwriting'.
    63 http&colon.//www.os2world.com/cdwriting:elink.
    64 .br
    65 :link reftype=launch
    66 object='netscape.exe'
    67 data='http://www.geocities.com/SiliconValley/Sector/5785/'.
    68 http&colon.//www.geocities.com/SiliconValley/Sector/5785/:elink.
    69 :p.
     68.* ----------------------------------------------------------------------------
     69:h2 res=130 name=mvolume
     70    x=left y=bottom width=100% height=100%.Volume slider
     71
     72Below the player buttons is the Volume slider. This controls the volume level
     73for playback, within the limits set by the Master volume control for the system.
     74
     75.* ----------------------------------------------------------------------------
     76:h2 res=140 name=mtrackpos
     77    x=left y=bottom width=100% height=100%.Track position slider
     78
     79To the right of the player buttons is the Track position slider. Drag the
     80slider forward or back to reposition the playback point of the current file.
     81
     82.* ----------------------------------------------------------------------------
     83:h2 res=150 name=mlaunchpad
     84    x=left y=bottom width=100% height=100%.Launchpad
     85
     86Toward the lower left of the player folder is a square box. Drag and drop a
     87media file on the Launchpad to add it to the palette. The filename is displayed
     88in the button's tooltip. Drag and drop additional files in between existing
     89items in the Launchpad or to the right of the last item. Click any one of these
     90to begin playing it.
     91
     92:p.The Launchpad is common across all Media, CD player, and M3U playlist
     93folders.
     94
     95:note.When play is started in this manner, the
     96:link reftype=hd refid=mtrackpos.Track position slider:elink. does not reflect
     97the current playback state, and the player buttons do not control playback. Use
     98the button's context menu to control playback, instead.
     99
     100:warning.While it is possible to add MP3, Ogg, and other digital media files to
     101the Launchpad, do not add CD tracks here. CD tracks will not be playable from
     102the Launchpad.
     103
     104.* ----------------------------------------------------------------------------
     105:h1 res=200 name=cplayer
     106    x=left y=bottom width=100% height=100%.CD player
     107
     108This object is a CD player with CDDB support. Track titles and other metadata
     109are queried from a configured FreeDB-compatible server if an internet connection
     110is available.
     111
     112:p.More information and updates&colon.
     113
     114:p.https&colon.//trac.netlabs.org/cwmmclasses/wiki
     115
    70116:nt.
    71 To use FreeDB servers you have to install the appropriate package and you must
    72 specify an email address. Use the configuration object to do so.
     117Most CDDB servers follow the FreeDB practice of requiring a valid email address
     118for access. Use the FreeDB Client configuration object in the Multimedia folder
     119to set this.
    73120:ent.
    74 :p.
    75 :hp2.Keyboard control:ehp2.
    76 :p.
    77 Use the following keys to control the player. The buttons in the upper part
    78 of the window must have the focus when using the keys. Use :hp2.TAB:ehp2. to switch
    79 the focus from the container to the buttons.
    80 :p.
    81 :ul.
    82 :li.:hp8.B:ehp8.ack
    83 :li.:hp8.S:ehp8.top
    84 :li.:hp8.P:ehp8.ause
    85 :li.P:hp8.l:ehp8.ay
    86 :li.:hp8.N:ehp8.ext
    87 :li.:hp8.R:ehp8.epeat
     121
     122.* ----------------------------------------------------------------------------
     123:h2 res=210 name=cview
     124    x=left y=bottom width=100% height=100%.View options
     125
     126By default, the CD player is displayed in Details view, listing details for each
     127track on the mounted disc.
     128
     129:p.To switch to Compact view, select View | Compact from the main menu. In this
     130mode, the folder content is hidden, however,
     131:link reftype=hd refid=claunchpad.Launchpad:elink. buttons will be visible.
     132
     133:note text='Tip:'.Select the first track to be played, click :hp2.Play:ehp2., and
     134then change the view to Compact.
     135
     136.* ----------------------------------------------------------------------------
     137:h2 res=220 name=ckeyboard
     138    x=left y=bottom width=100% height=100%.Keyboard control
     139
     140Use the following keys to control the CD Player. The buttons in the upper
     141part of the player must have focus when using these keys. Use
     142:hp2.&lt.Tab&gt.:ehp2. to switch the focus from the container to the buttons.
     143
     144:ul compact.
     145:li.:hp2.B:ehp2.ack
     146:li.:hp2.S:ehp2.top
     147:li.:hp2.P:ehp2.ause
     148:li.P:hp2.l:ehp2.ay
     149:li.:hp2.N:ehp2.ext
     150:li.:hp2.R:ehp2.epeat
    88151:eul.
    89152
    90 :h1 res=300.Help for playlist editor
    91 :p.
    92 Use the playlist editor to create or modify M3U playlists. These playlists
    93 are for example used by portable MP3 players. Such a playlist file is a text file
    94 containing the filenames of every track to be played.
    95 :p.
    96 Weitere Informationen und Updates:
    97 :p.
    98 :link reftype=launch
    99 object='netscape.exe'
    100 data='http://www.os2world.com/cdwriting'.
    101 http&colon.//www.os2world.com/cdwriting:elink.
    102 .br
    103 :link reftype=launch
    104 object='netscape.exe'
    105 data='http://www.geocities.com/SiliconValley/Sector/5785/'.
    106 http&colon.//www.geocities.com/SiliconValley/Sector/5785/:elink.
    107 
     153.* ----------------------------------------------------------------------------
     154:h2 res=230 name=cvolume
     155    x=left y=bottom width=100% height=100%.Volume slider
     156
     157Below the player buttons is the Volume slider. This controls the volume level
     158for playback, within the limits set by the Master volume control for the system.
     159
     160.* ----------------------------------------------------------------------------
     161:h2 res=240 name=ctrackpos
     162    x=left y=bottom width=100% height=100%.Track position slider
     163
     164To the right of the player buttons is the Track position slider. Drag the
     165slider forward or back to reposition the playback point of the current track.
     166
     167.* ----------------------------------------------------------------------------
     168:h2 res=250 name=claunchpad
     169    x=left y=bottom width=100% height=100%.Launchpad
     170
     171Toward the lower left of the player folder is a square box. Drag and drop a
     172media file on the Launchpad to add it to the palette. The filename is displayed
     173in the button's tooltip. Drag and drop additional files in between existing
     174items in the Launchpad or to the right of the last item. Click any one of these
     175to begin playing it.
     176
     177:p.The Launchpad is common across all Media, CD player, and M3U playlist
     178folders.
     179
     180:note.When play is started in this manner, the
     181:link reftype=hd refid=mtrackpos.Track position slider:elink. does not reflect
     182the current playback state, and the player buttons do not control playback. Use
     183the button's context menu to control playback, instead.
     184
     185:warning.While it is possible to add MP3, Ogg, and other digital media files to
     186the Launchpad, do not add CD tracks here. CD tracks will not be playable from
     187the Launchpad.
     188
     189.* ----------------------------------------------------------------------------
     190:h1 res=300 name=peditor
     191    x=left y=bottom width=100% height=100%.Playlist editor
     192
     193Use the Playlist editor to modify M3U playlists. An M3U playlist is a text
     194file which contains paths (URLs) to the tracks it references.
     195
     196:p.M3U (Moving Picture Experts Group Audio Layer 3 Uniform Resource Locator) is
     197a :hp1.de facto:ehp1. standard, generally recognized by most MP3 players.
     198
     199:p.To add tracks, simply drag and drop them into the editor. To reorder, ensure
     200that :hp1.Always maintain sort order:ehp1. option on the :hp2.Sort:ehp2. submenu
     201is deselected, as well as any other sort options which might affect manual
     202ordering, and drag and drop the tracks as desired. Save the playlist by
     203selecting :hp2.File | Save:ehp2. from the menu.
     204
     205:p.To create a new playlist, drag the M3U playlist template from the Multimedia
     206Templates folder to a suitable location on the desktop.
     207
     208:p.More information and updates&colon.
     209
     210:p.https&colon.//trac.netlabs.org/cwmmclasses/wiki
     211
     212.* ----------------------------------------------------------------------------
     213:h2 res=350 name=plaunchpad
     214    x=left y=bottom width=100% height=100%.Launchpad
     215
     216Toward the lower left of the M3U playlist editor is a square box. Drag and drop
     217a media file on the Launchpad to add it to the palette. The filename is
     218displayed in the button's tooltip. Drag and drop additional files in between
     219existing items in the Launchpad or to the right of the last item. Click any one
     220of these to begin playing it.
     221
     222:p.The Launchpad is common across all Media, CD player, and M3U playlist
     223folders.
     224
     225:note.Use the button's context menu to control playback.
     226
     227:warning.While it is possible to add MP3, Ogg, and other digital media files to
     228the Launchpad, do not add CD tracks here. CD tracks will not be playable from
     229the Launchpad.
    108230
    109231:euserdoc.
    110 
  • trunk/mediafolder/MMconfigPage/cddbPage.def

    r2 r104  
    11LIBRARY cddbpage INITINSTANCE LONGNAMES
    2 PROTMODE
    32DESCRIPTION 'CDDB Config page - (c) Copyright Chris Wohlgemuth 2002'
    43DATA MULTIPLE NONSHARED
    5 STACKSIZE 32768
    64EXPORTS
    75     InsertCDDBConfigPage      @1
  • trunk/mediafolder/ProgFolder/makefile

    r53 r104  
    11################################################
    22#
    3 #                       Makefile for class CWProgFolder 
     3#                       Makefile for class CWProgFolder
    44#
    55#                          (C) Chris Wohlgenuth 1999-2001
    6 # 
     6#
    77#          E-mail:    christopher.wohlgemuth@bch.siemens.de
    88#
     
    5151
    5252CC           = icc
    53 LIB_DIR      = $d:/emx/lib 
     53LIB_DIR      = $d:/emx/lib
    5454CPPFLAGS     = /Ge- /Gm+ -G4 -Gl /O+ -Oc+ /C+ /Q+
    5555INC             = ../include
    5656INC2            = ..\include
    57 DEFS         = 
    58 PROGS        = 
     57DEFS         =
     58PROGS        =
    5959ODIR            = .
    6060CPPDIR  = .
     
    6363DLLDIR          =       ../../dist/DLL
    6464
    65 all:     progfolder.dll
     65all:     progfldr.dll
    6666
    67 progfolder.dll: $(OBJECTS) progfolder.def
    68                 icc -Ge-  $(OBJECTS) progfolder.def
    69                 rc -i $(INC2) progfolder.rc progfolder.dll
    70                 implib /NOLOGO progfldr.lib progfolder.def
    71                 cp progfolder.dll ../bin/progfldr.dll
     67progfldr.dll:   $(OBJECTS) progfolder.def
     68        icc -Ge- /Fe$@ /Fm$*.map $(OBJECTS) progfolder.def
     69        rc -i $(INC2) progfolder.rc $@
     70        mapsym $*.map
     71        implib /NOLOGO progfldr.lib progfolder.def
     72        mv $@ ..
     73        mv $*.map ..
     74        mv $*.sym ..
    7275               
    7376progfolder.obj:         progfolder.cpp $(INC)/progfolder.hh $(INC)/progfolder.h
     
    7578
    7679pframeproc.obj:         pframeproc.cpp $(INC)/progfolder.hh $(INC)/progfolder.h
    77         icc $(CPPFLAGS) -I$(INC) $< 
     80        icc $(CPPFLAGS) -I$(INC) $<
    7881
    7982storewindow.obj:        storewindow.cpp $(INC)/progfolder.hh $(INC)/progfolder.h
    80         icc $(CPPFLAGS) -I$(INC) $< 
     83        icc $(CPPFLAGS) -I$(INC) $<
    8184
    8285separatorwindow.obj: separatorwindow.cpp $(INC)/progfolder.hh $(INC)/progfolder.h
    83         icc $(CPPFLAGS) -I$(INC) $< 
     86        icc $(CPPFLAGS) -I$(INC) $<
    8487
    8588clean:
     
    9396
    9497#distribution:
    95 #       -cp progfolder.dll $(DLLDIR)/progfldr.dll
     98#       -cp progfldr.dll $(DLLDIR)/progfldr.dll
    9699
  • trunk/mediafolder/c/audioshadow/makefile

    r2 r104  
    66CC           = icc
    77#CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    8 CPPFLAGS     = /G5 /Ge- /Gm+ /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    9 LIBS         =  mmPM2.lib rexx.lib                 
     8CPPFLAGS     = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
     9LIBS         =  mmPM2.lib rexx.lib
    1010INC     =       ..\include
    1111HELPERDIR       =       .\helper
    12 DEFS         = 
    13 PROGS        = 
     12DEFS         =
     13PROGS        =
    1414ODIR            = ./obj
    1515CPPDIR  = .
     
    1818OBJECTS =       audioshadowoverridenwpmethods.obj audioshadowoverridenwpclsmethods.obj
    1919
    20 all:    mediafolder.dll
     20all:    mediafld.dll
    2121
    22 mediafolder.dll:        $(OBJECTS)
     22mediafld.dll:   $(OBJECTS)
    2323                cd ../. && make
    2424
  • trunk/mediafolder/c/cddb/cddb.cpp

    r40 r104  
    8888    delete(tempTrack);
    8989  }
    90  
     90
    9191  if(nextCddb)delete nextCddb;
    9292
     
    129129  if(tempTrack) {
    130130    /* Yes, add  the rest of the title to that what we already have */
    131     strncat(tempTrack->trackname, track->trackname, sizeof(tempTrack->trackname)-strlen(tempTrack->trackname)-1);   
     131    strncat(tempTrack->trackname, track->trackname, sizeof(tempTrack->trackname)-strlen(tempTrack->trackname)-1);
    132132    delete(track);
    133133    return;
     
    136136  tempTrack=firstTrack;
    137137  while(tempTrack->nextTrack) {
    138     tempTrack=tempTrack->nextTrack; 
     138    tempTrack=tempTrack->nextTrack;
    139139  }
    140140  tempTrack->nextTrack=track;
    141   return; 
     141  return;
    142142}
    143143
     
    152152      return tempTrack;
    153153
    154     tempTrack=tempTrack->nextTrack; 
     154    tempTrack=tempTrack->nextTrack;
    155155  }
    156156
     
    169169
    170170#if 0
    171 /* now defined in printHelper.cpp 
     171/* now defined in printHelper.cpp
    172172   or cddbhelper.cpp. By choosing the right module to link to, it's possible
    173173   to redirect the messages without changing this module. Used for different
     
    191191  fileHandle=open("cddb.out",O_APPEND|O_TEXT|O_WRONLY);
    192192  if(fileHandle==-1) {
    193     printError("Cannot open cddb.out");
     193    printError((char *)"Cannot open cddb.out");
    194194    return;
    195195  }
     
    205205
    206206int readResponse(int s, char * buffer,int size)
    207 { 
     207{
    208208  int a;
    209209  int rc;
    210  
     210
    211211  rc=1;
    212212  for(a=0;a<size&&rc>0;a++) {
     
    217217    }
    218218    if(rc==-1)
    219       return CDDB_ERROR;   
    220   }
    221    
     219      return CDDB_ERROR;
     220  }
     221
    222222  return CDDB_ERROR;
    223223}
     
    237237    case '3': return CDDB_MORE;
    238238    case '4':
    239       printError("CDDB server error");
     239      printError((char *)"CDDB server error");
    240240      return CDDB_ERROR;
    241241    case '5':
    242       printError("CDDB client error");
     242      printError((char *)"CDDB client error");
    243243      return CDDB_ERROR;
    244244    default:
    245       printError("Unknown error");
     245      printError((char *)"Unknown error");
    246246      break;
    247247    }
     
    258258  /* Handshaking */
    259259  if(verbose)
    260     printError("Handshaking...    ");
     260    printError((char *)"Handshaking...    ");
    261261  sprintf(buffer,"cddb hello %s %s %s %s\n",username,hostname,clientname,version);
    262   if(verbose==2) 
     262  if(verbose==2)
    263263    printError(buffer);
    264264  rc=write(s,buffer,strlen(buffer));
    265265  if(rc==-1) {
    266     printError("Handshaking: cannot write to CDDB server");
    267     return -1;
    268   }
    269   if(verbose)
    270     printError("done\n");
    271   if(verbose==2)
    272     printError("Response: ");
    273  
     266    printError((char *)"Handshaking: cannot write to CDDB server");
     267    return -1;
     268  }
     269  if(verbose)
     270    printError((char *)"done\n");
     271  if(verbose==2)
     272    printError((char *)"Response: ");
     273
    274274  rc=readResponse(s,buffer,sizeof(buffer));
    275275  if(rc==CDDB_ERROR) {
    276     printError("Handshaking: cannot get response");
    277     return -1;
    278   }
    279   if(verbose==2) 
     276    printError((char *)"Handshaking: cannot get response");
     277    return -1;
     278  }
     279  if(verbose==2)
    280280    printErrorCR(buffer);
    281  
     281
    282282  if(check_cddb_code(buffer)==CDDB_ERROR)
    283283    return -1;
     
    297297  do {
    298298    if(verbose)
    299       printError("\nSetting protocol level...    ");
     299      printError((char *)"\nSetting protocol level...    ");
    300300    sprintf(buffer,"proto %d\n",iProtLevel);
    301301    printError(buffer);
    302302    rc=write(s,buffer,strlen(buffer));
    303303    if(rc==-1) {
    304       printError("Protocol: cannot write to CDDB server");
     304      printError((char *)"Protocol: cannot write to CDDB server");
    305305      return -1;
    306306    }
    307307    if(verbose)
    308       printError("done\n");
     308      printError((char *)"done\n");
    309309    if(verbose==2)
    310       printError("Response: ");
    311    
     310      printError((char *)"Response: ");
     311
    312312    rc=readResponse(s,buffer,sizeof(buffer));
    313313    if(rc==CDDB_ERROR) {
    314       printError("Set protocol: cannot get response");
     314      printError((char *)"Set protocol: cannot get response");
    315315      return -1;
    316316    }
    317317    if(verbose==2)
    318318      printErrorCR(buffer);
    319    
     319
    320320    /* Check cddb code */
    321321    if(check_cddb_code(buffer)==CDDB_ERROR) {
     
    326326      break;
    327327    /* protocol not supported. Decrement level and try again. */
    328     iProtLevel--;     
     328    iProtLevel--;
    329329  }while(iProtLevel>0);
    330  
     330
    331331  return 0;
    332332}
     
    343343  do {
    344344    rc=readResponse(s,buffer,sizeof(buffer)); /* Get next line */
    345    
     345
    346346    if(rc==CDDB_ERROR)
    347347      return root; /* return what we have so far */
     
    351351
    352352    /* A new cddb instance for every match */
    353     Cddb=new cddb("","","",1); /* One fuzzy match or one of several matches */
     353    Cddb=new cddb((char *)"",(char *)"",(char *)"",1); /* One fuzzy match or one of several matches */
    354354    /* Get the data for this match */
    355355    sscanf(buffer, " %20s %x %100[^/\r\n] / %100[^\r\n]", Cddb->category,&Cddb->discid,Cddb->artist,Cddb->title);
     
    359359    else
    360360      root->linkCddb(Cddb);
    361    
     361
    362362  }while(true);
    363363
     
    383383  /* Sending query */
    384384  if(verbose)
    385     printError("Sending query cmd...    ");
     385    printError((char *)"Sending query cmd...    ");
    386386  /* Build cmd-line */
    387387  sprintf(buffer,"cddb query %08x %d",cddbInfo->discid,cddbInfo->numTracks);
     
    389389    rc=snprintf(track,sizeof(track)," %d",cddbInfo->startSector[a]);
    390390    if(rc==EOF||rc>=sizeof(track)) {
    391       printError("Query: buffer overrun while formatting track offsets.\nPlease report this bug.\n");
     391      printError((char *)"Query: buffer overrun while formatting track offsets.\nPlease report this bug.\n");
    392392      return 0;
    393393    }
    394394    if(sizeof(buffer)-strlen(buffer) <= strlen(track)) {
    395       printError("Query: buffer overrun while adding track offsets to command.\nPlease report this bug.\n");
     395      printError((char *)"Query: buffer overrun while adding track offsets to command.\nPlease report this bug.\n");
    396396      return 0;
    397397    }
     
    401401  rc=snprintf(track,sizeof(track), " %d\n",cddbInfo->discLength);
    402402  if(rc==EOF||rc>=sizeof(track)) {
    403     printError("Query: buffer overrun while formatting disclength.\nPlease report this bug.\n");
     403    printError((char *)"Query: buffer overrun while formatting disclength.\nPlease report this bug.\n");
    404404    return 0;
    405405  }
    406406  if(sizeof(buffer)-strlen(buffer) <= strlen(track)) {
    407     printError("Query: buffer overrun while adding disclength to command.\nPlease report this bug.\n");
     407    printError((char *)"Query: buffer overrun while adding disclength to command.\nPlease report this bug.\n");
    408408    return 0;
    409409  }
     
    415415  rc=write(s,buffer,strlen(buffer));
    416416  if(rc==-1) {
    417     printError("Query: cannot write to CDDB server");
     417    printError((char *)"Query: cannot write to CDDB server");
    418418    return 0;
    419419  }
    420420  if(verbose)
    421     printError(" done\n");
    422   if(verbose==2)
    423     printError("Response: ");
    424  
     421    printError((char *)" done\n");
     422  if(verbose==2)
     423    printError((char *)"Response: ");
     424
    425425  rc=readResponse(s,buffer,sizeof(buffer));
    426426  //rc=read(s,buffer,sizeof(buffer)-1);
    427427  if(rc==CDDB_ERROR) {
    428     printError("Query: cannot get response");
     428    printError((char *)"Query: cannot get response");
    429429    return 0;
    430430  }
     
    440440    {
    441441    case 200:  /* exact match */
    442       Cddb=new cddb("","","");
     442      Cddb=new cddb((char *)"",(char *)"",(char *)"");
    443443
    444444      sscanf(buffer+4, "%20s %x %100[^/\r\n] / %100[^\r\n]", Cddb->category,&Cddb->discid,Cddb->artist,Cddb->title);
     
    457457  /* We shouldn't reach this */
    458458  return 0;
    459 } 
     459}
    460460
    461461/* Reads the CDDB banner from the server after connecting */
     
    471471  rc=readResponse(s,buffer,sizeof(buffer));
    472472  if(rc==CDDB_ERROR) {
    473     printError("Cannot read CDDB-Banner");
     473    printError((char *)"Cannot read CDDB-Banner");
    474474    return -1;
    475475  }
     
    493493  int iTrack=0;
    494494  int iTemp=0;
    495  
     495
    496496  do{
    497497    rc=readResponse(s,buffer,sizeof(buffer));
    498498    if(rc==CDDB_ERROR) {
    499       printError("Read request: cannot get response");
     499      printError((char *)"Read request: cannot get response");
    500500      return CDDB_ERROR;
    501501    }
     
    504504    if(buffer[0]!='.')
    505505      printData(buffer);
    506    
     506
    507507    if(buffer[0]=='#') /* This is a comment */
    508508      { }
     
    511511      if(buffer[0]=='.') /* End of data */
    512512        return CDDB_OK; /* Done */
    513      
     513
    514514      //printf("Found data: %s\n",buffer);
    515515      sscanf(buffer,"%20[^0-9=]",key);
     
    524524  }while(rc==CDDB_MORE);
    525525
     526  return CDDB_OK;
    526527}
    527528
     
    534535
    535536  /* Build cmd-line */
    536   sprintf(buffer,"cddb read %s %08x\n",Cddb->category,Cddb->discid); 
    537   if(verbose) 
    538     printError("\nSending read cmd... ");
     537  sprintf(buffer,"cddb read %s %08x\n",Cddb->category,Cddb->discid);
     538  if(verbose)
     539    printError((char *)"\nSending read cmd... ");
    539540  if(verbose==2)
    540541    printError(buffer);
    541  
     542
    542543  rc=write(s,buffer,strlen(buffer));
    543544  if(rc==-1) {
    544     printError("Read request: cannot write to CDDB server");
    545     return -1;
    546   }
    547   if(verbose) 
    548     printError("done\n");
    549   if(verbose==2)
    550     printError("Response: ");
    551  
     545    printError((char *)"Read request: cannot write to CDDB server");
     546    return -1;
     547  }
     548  if(verbose)
     549    printError((char *)"done\n");
     550  if(verbose==2)
     551    printError((char *)"Response: ");
     552
    552553  rc=readResponse(s,buffer,sizeof(buffer));
    553554  if(rc==CDDB_ERROR) {
    554     printError("Read request: cannot get response");
    555     return -1;
    556   }
    557   if(verbose==2) 
     555    printError((char *)"Read request: cannot get response");
     556    return -1;
     557  }
     558  if(verbose==2)
    558559    printError(buffer);
    559560  if(check_cddb_code(buffer)==CDDB_ERROR)
    560561    return CDDB_ERROR;
    561562
    562   /* Get the data */ 
     563  /* Get the data */
    563564  read_and_parse(s,Cddb);
    564   return CDDB_OK; 
     565  return CDDB_OK;
    565566}
    566567
     
    577578  /* Creating socket */
    578579  if(verbose)
    579     printError("Creating socket...     ");
     580    printError((char *)"Creating socket...     ");
    580581  s=socket(AF_INET,SOCK_STREAM,0);
    581582  if(s==-1) {
    582     printError("Cannot create socket!");
     583    printError((char *)"Cannot create socket!");
    583584    return -1;
    584585  }
    585586  *skt=s;
    586587  if(verbose)
    587     printError("Socket created\n");
     588    printError((char *)"Socket created\n");
    588589
    589590  /* Querying host */
    590591  if(verbose)
    591     printError("Querying host...     ");
     592    printError((char *)"Querying host...     ");
    592593  he = gethostbyname(host);
    593594  if(he==NULL) {
    594     printError("Cannot get host address.\ngethostbyname() returned error:  ");
     595    printError((char *)"Cannot get host address.\ngethostbyname() returned error:  ");
    595596    switch (h_errno)
    596597      {
    597598      case HOST_NOT_FOUND:
    598         printError("Host not found\n");
     599        printError((char *)"Host not found\n");
    599600        break;
    600601      case TRY_AGAIN:
    601         printError("Temporary error. Try again later.\n");
     602        printError((char *)"Temporary error. Try again later.\n");
    602603        break;
    603604      case NO_DATA:
    604         printError("Name valid but name server has no associated address.\n");
     605        printError((char *)"Name valid but name server has no associated address.\n");
    605606        break;
    606607      case NO_RECOVERY:
    607         printError("Unrecoverable error.\n");
     608        printError((char *)"Unrecoverable error.\n");
    608609        break;
    609610      default:
    610         printError("Unknown error\n");
     611        printError((char *)"Unknown error\n");
    611612      }
    612613    /* Close the socket */
    613614    close(s);
    614615    return -1;
    615   }   
    616 
    617   if(verbose)
    618     printError("Host found.\n");
     616  }
     617
     618  if(verbose)
     619    printError((char *)"Host found.\n");
    619620
    620621
    621622  /* Connecting to host */
    622623  if(verbose)
    623     printError("Connecting to host...    ");
     624    printError((char *)"Connecting to host...    ");
    624625  memset(&sa_in,0, sizeof(struct sockaddr_in));
    625626
     
    634635      {
    635636      case EBADF:
    636         printError("No valid socket descriptor");
     637        printError((char *)"No valid socket descriptor");
    637638        break;
    638639      case EISCONN:
    639         printError("The socket is already connected\n");
     640        printError((char *)"The socket is already connected\n");
    640641        break;
    641642      case ETIMEDOUT:
    642         printError("No connection. Timed out.\n");
     643        printError((char *)"No connection. Timed out.\n");
    643644        break;
    644645      case ECONNREFUSED:
    645         printError("Connection refused by  host.\n");
     646        printError((char *)"Connection refused by  host.\n");
    646647        break;
    647648      case EADDRNOTAVAIL:
    648         printError("Address not avaiable.\n");
     649        printError((char *)"Address not avaiable.\n");
    649650        break;
    650651
    651652      default:
    652         printError("General failure: Cannot connect to host\n");
     653        printError((char *)"General failure: Cannot connect to host\n");
    653654      }
    654655    close(s);
     
    656657  }
    657658  if(verbose)
    658     printError("connected.\n");
     659    printError((char *)"connected.\n");
    659660  return 0;
    660661}
  • trunk/mediafolder/c/cddb/makefile

    r53 r104  
    77#CPPFLAGSSTATIC     = -O -Zomf -Zsys -Zmt -s
    88
    9 CPPFLAGSVAC  = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+
     9CPPFLAGSVAC  = /Ge- /Gm+ /G4 /Gl- /O+ /Oc+ /Ol- /Q+
    1010INC             = ../../include
    1111MOREINC         = $(COMMONSRC)/include
    12 DEFS         = 
    13 PROGS        = 
     12DEFS         =
     13PROGS        =
    1414ODIR            = .
    1515CPPDIR  = .
     
    2929all:     pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
    3030
    31 nlv:    pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll 
     31nlv:    pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
    3232
    3333pmdb001.dll:    ./res/pmcddb001.c ./res/pmcddb001.res
     
    3636                cp ./res/pmcddb001.dll pmdb001.dll
    3737
    38 ./res/pmcddb001.res:    ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h 
     38./res/pmcddb001.res:    ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h
    3939                cd ./Res && make
    4040
     
    4343                cp ./res/pmcddb049.dll pmdb049.dll
    4444
    45 ./res/pmcddb049.res:    ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h 
     45./res/pmcddb049.res:    ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h
    4646                cd ./Res && make
    4747
     
    5050                cp ./res/pmcddb031.dll pmdb031.dll
    5151
    52 ./res/pmcddb031.res:    ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h 
     52./res/pmcddb031.res:    ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h
    5353                cd ./Res && make
    5454
     
    5757                cp ./res/pmcddb039.dll pmdb039.dll
    5858
    59 ./res/pmcddb039.res:    ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h 
     59./res/pmcddb039.res:    ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h
    6060                cd ./Res && make
    6161
     
    6666                cp ./res/pmcddb088.dll pmdb088.dll
    6767
    68 ./res/pmcddb088.res:    ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h 
     68./res/pmcddb088.res:    ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h
    6969                cd ./Res && make
    7070
    7171
    72 $(LIBDIR)/%.obj:        $(COMMONSRC)/%.c 
    73         $(CC) -c -Wall -o$@ -Zomf -I$(INC) -I$(MOREINC) $< 
     72$(LIBDIR)/%.obj:        $(COMMONSRC)/%.c
     73        $(CC) -c -Wall -o$@ -Zomf -I$(INC) -I$(MOREINC) $<
    7474
    75 cd.obj: cd.c
     75cd.o:   cd.c
    7676                gcc -c $< -I$(INC) -Zcrtdll -Zomf
    7777
    78 helper.obj:     helper.c
     78helper.o:       helper.c
    7979                gcc -c $< -I$(INC) -Zcrtdll -Zomf
    8080
    81 message.obj:    message.c
     81message.o:      message.c
    8282                gcc -c $< -I$(INC) -Zcrtdll -Zomf
    8383
     
    8585        $(CC) $< $(CPPFLAGS) -I$(INC) -I$(MOREINC) $(LIBOBJECTS) $(OBJECTS) $(CDDBOBJ)  -lsocket -lstdc++6_dll.lib pmcddb.def
    8686
    87 cddb.obj:       cddb.cpp $(INC)\cddb.hh
     87cddb.o: cddb.cpp $(INC)\cddb.hh
    8888                gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
    8989
    90 cddbcls.obj:    cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
     90cddbcls.o:      cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
    9191                cd ../pm_launchers && make
    9292
    9393
    94 printHelper.obj:        printHelper.cpp
     94printHelper.o:  printHelper.cpp
    9595                gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
    9696
    97 cddbhelper.obj: $(HELPERDIR)\cddbhelper.cpp
     97cddbhelper.o:   $(HELPERDIR)\cddbhelper.cpp
    9898                gcc -c $< -I$(INC) -Zcrtdll -Zomf
    9999
  • trunk/mediafolder/c/cddb/printhelper.cpp

    r2 r104  
    3030 */
    3131
    32 void extern printError(char* errorString)
     32void printError(char* errorString)
    3333{
    3434  fprintf(stderr,"%s",errorString);
    3535}
    3636
    37 void extern printErrorCR(char* errorString)
     37void printErrorCR(char* errorString)
    3838{
    3939  fprintf(stderr,"%s\n",errorString);
     
    4141
    4242
    43 void extern printData(char* outString)
     43void printData(char* outString)
    4444{
    4545  int fileHandle;
  • trunk/mediafolder/c/cddb/res/makefile

    r53 r104  
    1313
    1414CPPFILES        =
    15 all:     pmcddb001.dll pmcddb049.dll pmcddb031.dll pmcddb039.dll pmcddb088.dll
     15all:     pmcddb001.dll pmcddb049.dll pmcddb031.dll pmcddb039.dll pmcddb088.dll pmcddb033.dll pmcddb034.dll
    1616
    1717
     
    2929                gcc -Zdll -Zomf -I$(INC) pmcddb049.c pmcddb049.def
    3030                rc pmcddb049.res pmcddb049.dll
    31 #               icc $(CPPFLAGS) -I$(INC) pmcddb001.c pmcddb04á.def
    3231
    3332pmcddb049.res:  pmcddb049.rc pmcddb049.dlg $(INC)\pmcddbres.h
     
    3736                gcc -Zdll -Zomf -I$(INC) pmcddb031.c pmcddb031.def
    3837                rc pmcddb031.res pmcddb031.dll
    39 #               icc $(CPPFLAGS) -I$(INC) pmcddb001.c pmcddb04á.def
    4038
    4139pmcddb031.res:  pmcddb031.rc pmcddb031.dlg $(INC)\pmcddbres.h
     
    4543                gcc -Zdll -Zomf -I$(INC) pmcddb039.c pmcddb039.def
    4644                rc pmcddb039.res pmcddb039.dll
    47 #               icc $(CPPFLAGS) -I$(INC) pmcddb001.c pmcddb04á.def
    4845
    4946pmcddb039.res:  pmcddb039.rc pmcddb039.dlg $(INC)\pmcddbres.h
     
    5754                rc  -i $(INC) -r pmcddb088.rc
    5855
     56pmcddb033.dll:  pmcddb033.c pmcddb033.res
     57                gcc -Zdll -Zomf -I$(INC) pmcddb033.c pmcddb033.def
     58                rc pmcddb033.res pmcddb033.dll
     59
     60pmcddb033.res:  pmcddb033.rc pmcddb033.dlg $(INC)\pmcddbres.h
     61                rc  -i $(INC) -r pmcddb033.rc
     62
     63pmcddb034.dll:  pmcddb034.c pmcddb034.res
     64                gcc -Zdll -Zomf -I$(INC) pmcddb034.c pmcddb034.def
     65                rc pmcddb034.res pmcddb034.dll
     66
     67pmcddb034.res:  pmcddb034.rc pmcddb034.dlg $(INC)\pmcddbres.h
     68                rc  -i $(INC) -r pmcddb034.rc
     69
    5970clean:
    6071        -rm *.obj
     
    6475cleaner:
    6576        -rm *.*~
    66 
    67        
    68 
  • trunk/mediafolder/c/cddb/res/pmcddb001.DEF

    r43 r104  
    1818; */
    1919
    20 LIBRARY PMDB001 INITGLOBAL
     20LIBRARY PMDB001 INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Chris Wohlgemuth :0.1 (12.05.02) (PMDB001.DLL)#@##1## 12.05.2002 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    22 PROTMODE
    23 CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED
    25 EXPORTS 
     22DATA MULTIPLE NONSHARED
     23EXPORTS
    2624      queryLanguage = _queryLanguage
  • trunk/mediafolder/c/cddb/res/pmcddb031.DEF

    r43 r104  
    1818; */
    1919
    20 LIBRARY PMDB031 INITGLOBAL
     20LIBRARY PMDB031 INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) B. van Leeuwen :0.1 (26.06.04) (PMDB031.DLL)#@##1## 25.06.2004 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    22 PROTMODE
    23 CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED
    25 EXPORTS 
     22DATA MULTIPLE NONSHARED
     23EXPORTS
    2624        queryLanguage = _queryLanguage
  • trunk/mediafolder/c/cddb/res/pmcddb039.DEF

    r43 r104  
    1818; */
    1919
    20 LIBRARY PMDB039 INITGLOBAL
     20LIBRARY PMDB039 INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Gabriele Gamba :0.1 (19.02.05) (PMDB039.DLL)#@##1## 19.02.2005 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    22 PROTMODE
    23 CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED
     22DATA MULTIPLE NONSHARED
    2523EXPORTS
    2624        queryLanguage = _queryLanguage
  • trunk/mediafolder/c/cddb/res/pmcddb049.DEF

    r43 r104  
    1818; */
    1919
    20 LIBRARY PMDB049 INITGLOBAL
     20LIBRARY PMDB049 INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Chris Wohlgemuth :0.1 (12.05.02) (PMDB001.DLL)#@##1## 12.05.2002 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    22 PROTMODE
    23 CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED
    25 EXPORTS 
     22DATA MULTIPLE NONSHARED
     23EXPORTS
    2624        queryLanguage = _queryLanguage
  • trunk/mediafolder/c/cddb/res/pmcddb088.DEF

    r43 r104  
    1818; */
    1919
    20 LIBRARY PMDB088 INITGLOBAL
     20LIBRARY PMDB088 INITINSTANCE TERMINSTANCE
    2121DESCRIPTION '$@#(c) Ming-Lung Cheng :0.1 (12.05.02) (PMDB088.DLL)#@##1## 12.02.2006 18:17:00      My ;-)  ::::1::@@Resource-DLL'
    22 PROTMODE
    23 CODE LOADONCALL DISCARDABLE
    24 DATA SINGLE SHARED
    25 EXPORTS 
     22DATA MULTIPLE NONSHARED
     23EXPORTS
    2624        queryLanguage = _queryLanguage
  • trunk/mediafolder/c/cdfldr/makefile

    r2 r104  
    55CC           = icc
    66#CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    7 CPPFLAGS     = /G5 /Ge- /Gm+ /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    8 LIBS         =  mmPM2.lib rexx.lib                 
     7CPPFLAGS     = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
     8LIBS         =  mmPM2.lib rexx.lib
    99INC     =       ..\include
    1010HELPERDIR       =       ..\helper
    11 DEFS         = 
    12 PROGS        = 
     11DEFS         =
     12PROGS        =
    1313ODIR            = ./obj
    1414CPPDIR  = .
     
    1818        ..\helper\cd.obj cdfldrdialogprocs.obj
    1919
    20 all:    mediafolder.dll
     20all:    mediafld.dll
    2121
    2222
     
    2424        icc $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
    2525
    26 mediafolder.dll:
     26mediafld.dll:
    2727                cd ../. && make
    2828
  • trunk/mediafolder/c/createcd/makefile

    r2 r104  
    44
    55CC           = icc
    6 LIB_DIR      = $d:/emx/lib 
     6LIB_DIR      = $d:/emx/lib
    77CPPFLAGS     = -O -Zomf -Zcrtdll -s
    8 CPPFLAGSVAC  = /Ge /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ /Ss
     8CPPFLAGSVAC  = /Ge /Gm+ /G4 /Gl- /O+ /Oc+ /Ol- /Q+ /Ss
    99INC             = ../../include
    10 DEFS         = 
    11 PROGS        = 
     10DEFS         =
     11PROGS        =
    1212ODIR            = .
    1313CPPDIR  = .
     
    2020
    2121
    22 creatcd.exe:    createcd.c 
     22creatcd.exe:    createcd.c
    2323ifdef    ECS_COMPILE
    24          icc  $(CPPFLAGSVAC) -I$(INC) $< 
     24         icc  $(CPPFLAGSVAC) -I$(INC) $<
    2525else
    26         icc  $(CPPFLAGSVAC) -I$(INC) $< 
     26        icc  $(CPPFLAGSVAC) -I$(INC) $<
    2727#       gcc  $(CPPFLAGS) -I$(INC) $< -Zlinker /PMTYPE:VIO
    2828endif
  • trunk/mediafolder/c/helper/cddbhelper.cpp

    r57 r104  
    3838 */
    3939
    40 void extern printError(char* errorString)
     40void printError(char* errorString)
    4141{
    4242    char buffer[CCHMAXPATH] = {0};
     
    5555}
    5656
    57 void extern printErrorCR(char* errorString)
     57void printErrorCR(char* errorString)
    5858{
    5959  fprintf(stderr,"%s\n",errorString);
     
    6363
    6464
    65 void extern printData(char* outString)
     65void printData(char* outString)
    6666{
    6767  int fileHandle;
    6868  int rc;
    6969
    70   /* The name cddbDataFile is defined in the main pmcddb.cpp file. It is 
     70  /* The name cddbDataFile is defined in the main pmcddb.cpp file. It is
    7171     the discid (this is the native format of the data hold by a cddb server) */
    7272  fileHandle=open(cddbDataFile,O_APPEND|O_TEXT|O_WRONLY|O_CREAT,S_IWRITE);
  • trunk/mediafolder/c/helper/except.cpp

    r41 r104  
    455455{
    456456  ULONG rc = XCPT_CONTINUE_SEARCH;
    457  
     457
    458458  if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND)
    459459    return (XCPT_CONTINUE_SEARCH);
     
    495495{
    496496  ULONG rc = XCPT_CONTINUE_SEARCH;
    497  
     497
    498498  if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND)
    499499    return (XCPT_CONTINUE_SEARCH);
     
    502502  if (pERepRec->fHandlerFlags & EH_NESTED_CALL)
    503503    return (XCPT_CONTINUE_SEARCH);
    504  
     504
    505505  if ((pERepRec->ExceptionNum & XCPT_SEVERITY_CODE) == XCPT_FATAL_EXCEPTION)
    506506    {
     
    530530
    531531  return 'c';
    532 } 
     532}
    533533
    534534ULONG APIENTRY HandleFatalException (PEXCEPTIONREPORTRECORD       pERepRec,
     
    641641          }
    642642#endif
    643        
     643
    644644        fAlreadyTrapped = TRUE;
    645645        /* end  John Currier's recursion prevention */
     
    11671167}
    11681168
    1169 #include <exe.h>
    11701169#include <newexe.h>
    11711170#define  FOR_EXEHDR  1  /* avoid define conflicts between newexe.h and exe386.h */
     
    18201819               do {
    18211820                  read(fh,(void *)&FirstLine,sizeof(FirstLine));
    1822    
     1821
    18231822                  if (FirstLine.LineNum!=0) {
    18241823                     fprintf(hTrap,"Missing Line table information\n");
     
    18491848                        }
    18501849                        break;
    1851    
     1850
    18521851                     case 1:
    18531852                        lseek(fh, sizeof(struct linlist_rec), SEEK_CUR);
    18541853                        break;
    1855    
     1854
    18561855                     case 2:
    18571856                        lseek(fh, sizeof(struct linsourcelist_rec), SEEK_CUR);
    18581857                        break;
    1859    
     1858
    18601859                     case 3:
    18611860                        lseek(fh, sizeof(struct filenam_rec), SEEK_CUR);
    18621861                        break;
    1863    
     1862
    18641863                     case 4:
    18651864                        lseek(fh, sizeof(struct pathtab_rec), SEEK_CUR);
    18661865                        break;
    1867    
     1866
    18681867                  }
    18691868               }
  • trunk/mediafolder/c/helper/makefile

    r2 r104  
    44
    55CC           = icc
    6 CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    7                  
     6CPPFLAGS     = /Ge- /Gm+ /G4 /Gl- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
     7
    88INC     =       ..\include
    9 DEFS         = 
    10 PROGS        = 
     9DEFS         =
     10PROGS        =
    1111ODIR            = ./obj
    1212CPPDIR  = .
  • trunk/mediafolder/c/m3ufolder/makefile

    r2 r104  
    55CC           = icc
    66#CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    7 CPPFLAGS     = /G5 /Ge- /Gm+ /Gl  /O+ /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG)
    8 LIBS         =  mmPM2.lib rexx.lib                 
     7CPPFLAGS     = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG)
     8LIBS         =  mmPM2.lib rexx.lib
    99INC     =       ..\include
    1010HELPERDIR       =       ..\helper
    11 DEFS         = 
    12 PROGS        = 
     11DEFS         =
     12PROGS        =
    1313ODIR            = ./obj
    1414CPPDIR  = .
    1515
    1616
    17 all:    mediafolder.dll
     17all:    mediafld.dll
    1818
    1919.cpp.obj:
    2020        icc $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
    2121
    22 mediafolder.dll:
     22mediafld.dll:
    2323                cd ../. && make
    2424
  • trunk/mediafolder/c/makefile

    r2 r104  
    77        cd ../. && make
    88
    9 mediafolder.dll:
     9mediafld.dll:
    1010
    1111clean:
  • trunk/mediafolder/c/mediafldr/makefile

    r2 r104  
    55CC           = icc
    66#CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    7 CPPFLAGS     = /G5 /Ge- /Gm+ /Gl  /O+ /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG)
    8 LIBS         =  mmPM2.lib rexx.lib                 
     7CPPFLAGS     = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG)
     8LIBS         =  mmPM2.lib rexx.lib
    99INC     =       ..\include
    1010HELPERDIR       =       ..\helper
    11 DEFS         = 
    12 PROGS        = 
     11DEFS         =
     12PROGS        =
    1313ODIR            = ./obj
    1414CPPDIR  = .
     
    2626        cd ../. && make
    2727
    28 mediafolder.dll:
     28mediafld.dll:
    2929#$(OBJECTS)
    3030                cd ../. && make
  • trunk/mediafolder/create_mfldr_def.CMD

    r2 r104  
    33call SysLoadFuncs
    44
    5 deffile=ARG(1)
     5deffile=strip(ARG(1))
    66if ARG(1)="" then deffile="tst.def"
    77
     
    3636def=def||'0d'x||'0a'x
    3737
    38 def=def||"LIBRARY MEDIAFLD INITGLOBAL"||'0d'x||'0a'x
     38def=def||"LIBRARY MEDIAFLD INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
    3939def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth "
    4040def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||"        #@##1## "||DATE("E")||" "||TIME("N")||"        My ;-)  ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||"'"||'0d'x||'0a'x
    41 def=def||"PROTMODE"||'0d'x||'0a'x
    42 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x
    43 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x
     41def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x
    4442def=def||"EXPORTS  "||'0d'x||'0a'x
    4543def=def||"        CWMediaFolderClassData"||'0d'x||'0a'x
     
    5957def=def||"        M_CWAudioShadowNewClass"||'0d'x||'0a'x
    6058def=def||""||'0d'x||'0a'x
    61 def=def||"       CWCDFolderClassData"||'0d'x||'0a'x
     59def=def||"        CWCDFolderClassData"||'0d'x||'0a'x
    6260def=def||"        CWCDFolderCClassData"||'0d'x||'0a'x
    6361def=def||"        CWCDFolderNewClass"||'0d'x||'0a'x
  • trunk/mediafolder/include/mediafolderres.h

    r4 r104  
    121121#define IDGB_ABOUT                  605
    122122#define IDST_URL2                   606
     123#define IDST_PRODCOPY2        607
    123124
    124125#define IDSL_TEST                   305
     
    127128
    128129#define IDPTR_ARROWWE              2    /* WE Cursor for slider controls */
    129 
    130 
    131 
    132 
    133 
    134 
    135 
    136 
  • trunk/mediafolder/include/wpobject.hh

    r59 r104  
    1818      #define OBJSTYLE_NOLINK          4
    1919      #define OBJSTYLE_NOCOPY          8
    20       #define OBJSTYLE_NOTDEFAULTICON 16   /* Intentionally not declared CLSSTYLE */ 
     20      #define OBJSTYLE_NOTDEFAULTICON 16   /* Intentionally not declared CLSSTYLE */
    2121      #define OBJSTYLE_TEMPLATE       32
    2222      #define OBJSTYLE_NODELETE       64
     
    2727      #define OBJSTYLE_NORENAME     2048
    2828      #define OBJSTYLE_NODROP       4096
    29       #define OBJSTYLE_NODROPON     8192   /* Use instead of OBJSTYLE_NODROP, 
    30                                               because OBJSTYLE_NODROP and     
    31                                               CLSSTYLE_PRIVATE have the same 
    32                                               value (DD 86093F) */           
    33       #define OBJSTYLE_CUSTOMICON   16384  /* Use instead of OBJSTYLE_NOTDEFAULTICON 
    34                                                because OBJSTYLE_NOTDEFAULTICON and   
    35                                                CLSSTYLE_NEVERTEMPLATE have the same   
    36                                                value (DD 86093F) */     
     29      #define OBJSTYLE_NODROPON     8192   /* Use instead of OBJSTYLE_NODROP,
     30                                              because OBJSTYLE_NODROP and
     31                                              CLSSTYLE_PRIVATE have the same
     32                                              value (DD 86093F) */
     33      #define OBJSTYLE_CUSTOMICON   16384  /* Use instead of OBJSTYLE_NOTDEFAULTICON
     34                                               because OBJSTYLE_NOTDEFAULTICON and
     35                                               CLSSTYLE_NEVERTEMPLATE have the same
     36                                               value (DD 86093F) */
    3737
    3838     /*  Class style flags (see wpclsQueryStyle) */
     
    4747      #define CLSSTYLE_NEVERVISIBLE   OBJSTYLE_NOTVISIBLE
    4848      #define CLSSTYLE_NEVERRENAME    OBJSTYLE_NORENAME
    49       #define CLSSTYLE_PRIVATE        4096   /* Intentionally not declared OBJSTYLE */     
    50       #define CLSSTYLE_NEVERSETTINGS  OBJSTYLE_NOSETTINGS                      /*DD 86093F*/ 
    51       #define CLSSTYLE_NEVERDROPON    OBJSTYLE_NODROPON                        /*DD 86093F*/ 
    52       #define CLSSTYLE_HIDDEN         32768  /* Use instead of CLSSTYLE_PRIVATE         
    53                                                  because OBJSTYLE_NODROP and             
    54                                                  CLSSTYLE_PRIVATE have the same         
    55                                                  value (DD 86093F) */                   
    56       #define CLSSTYLE_DONTTEMPLATE   65536  /* Use instead of CLSSTYLE_NEVERTEMPLATE   
    57                                                  because OBJSTYLE_NOTDEFAULTICON and     
    58                                                  CLSSTYLE_NEVERTEMPLATE have the same   
    59                                                  value (DD 86093F) */       
     49      #define CLSSTYLE_PRIVATE        4096   /* Intentionally not declared OBJSTYLE */
     50      #define CLSSTYLE_NEVERSETTINGS  OBJSTYLE_NOSETTINGS                      /*DD 86093F*/
     51      #define CLSSTYLE_NEVERDROPON    OBJSTYLE_NODROPON                        /*DD 86093F*/
     52      #define CLSSTYLE_HIDDEN         32768  /* Use instead of CLSSTYLE_PRIVATE
     53                                                 because OBJSTYLE_NODROP and
     54                                                 CLSSTYLE_PRIVATE have the same
     55                                                 value (DD 86093F) */
     56      #define CLSSTYLE_DONTTEMPLATE   65536  /* Use instead of CLSSTYLE_NEVERTEMPLATE
     57                                                 because OBJSTYLE_NOTDEFAULTICON and
     58                                                 CLSSTYLE_NEVERTEMPLATE have the same
     59                                                 value (DD 86093F) */
    6060
    6161      #define SETTINGS_PAGE_REMOVED  -1
     
    153153         HWND            hwndCnr;      /* Cnr into which object is inserted */
    154154         PMINIRECORDCORE pRecord;      /* Record pointer within that cnr */
    155          ULONG           ulUser;       /* For application use RECSH */ 
     155         ULONG           ulUser;       /* For application use RECSH */
    156156      } RECORDITEM;
    157157      typedef RECORDITEM *PRECORDITEM;
     
    359359      #define SEARCH_THIS_FOLDER 2
    360360      #define SEARCH_THIS_TREE   3
    361  
     361
    362362
    363363      /* Find method related types and constants */
     
    402402      #define CTXT_PUTDOWN_CANCEL 0x2000000          /*rme88844*/
    403403
    404  
     404
    405405     /* Flags for the wpDisplayMenu() method */
    406406
     
    420420      #define WPMENUID_SELECT             4
    421421      #define WPMENUID_SORT               5
    422       #define WPMENUID_TREE               123                                 /*DD 86092F*/ 
    423       #define WPMENUID_FIND               8                                   /*DD 86092F*/ 
    424       #define WPMENUID_CREATEANOTHER      101                                 /*DD 86092F*/ 
    425       #define WPMENUID_MOVE               107                                 /*DD 86092F*/ 
    426       #define WPMENUID_COPY               108                                 /*DD 86092F*/ 
    427       #define WPMENUID_DELETE             109                                 /*DD 86092F*/ 
    428       #define WPMENUID_PROPERTIES         112                                 /*DD 86092F*/ 
    429       #define WPMENUID_SELALL             114                                 /*DD 86092F*/ 
    430       #define WPMENUID_DESELALL           115                                 /*DD 86092F*/ 
    431       #define WPMENUID_RESERVED1          118                                 /*DD 86092F*/ 
    432       #define WPMENUID_CLOSE              120                                 /*DD 86092F*/ 
    433       #define WPMENUID_FORMAT             124                                 /*DD 86092F*/ 
    434       #define WPMENUID_CHKDSK             128                                 /*DD 86092F*/ 
    435       #define WPMENUID_FIXDSK             129                                 /*DD 86092F*/ 
    436       #define WPMENUID_PROGRAM            132                                 /*DD 86092F*/ 
    437       #define WPMENUID_COPYDSK            182                                 /*DD 86092F*/ 
    438       #define WPMENUID_LOCKDISK           184                                 /*DD 86092F*/ 
    439       #define WPMENUID_EJECTDISK          185                                 /*DD 86092F*/ 
    440       #define WPMENUID_UNLOCKDISK         186                                 /*DD 86092F*/ 
    441       #define WPMENUID_PICKUP             188                                 /* rme77131*/ 
    442       #define WPMENUID_PUTDOWN            189                                 /* rme77131*/ 
    443       #define WPMENUID_PUTDOWN_COPY       190                                 /* rme77131*/ 
    444       #define WPMENUID_PUTDOWN_MOVE       191                                 /* rme77131*/ 
    445       #define WPMENUID_PUTDOWN_LINK       192                                 /* rme77131*/ 
    446       #define WPMENUID_PUTDOWN_CANCEL     193                                 /* rme77131*/ 
    447       #define WPMENUID_PUTDOWN_CREATE     194                                 /* rme77131*/ 
    448       #define WPMENUID_ICON               303                                 /*DD 86092F*/ 
    449       #define WPMENUID_DETAILS            304                                 /*DD 86092F*/ 
    450       #define WPMENUID_ARRANGE            309                                 /*DD 86092F*/ 
    451       #define WPMENUID_RESERVED2          315                                 /*DD 86092F*/ 
    452       #define WPMENUID_CREATESHADOW       316                                 /*DD 86092F*/ 
    453       #define WPMENUID_PALETTE            317                                 /*DD 86092F*/ 
    454       #define WPMENUID_REFRESH            503                                 /*DD 86092F*/ 
    455       #define WPMENUID_HELP_FOR_HELP      601                                 /*DD 86092F*/ 
    456       #define WPMENUID_HOWTOGETHELP       601                                 /*DD 86092F*/ 
    457       #define WPMENUID_EXTENDEDHELP       602                                 /*DD 86092F*/ 
    458       #define WPMENUID_HELPKEYS           603                                 /*DD 86092F*/ 
    459       #define WPMENUID_HELPINDEX          604                                 /*DD 86092F*/ 
    460       #define WPMENUID_SHUTDOWN           704                                 /*DD 86092F*/ 
    461       #define WPMENUID_LOCKUP             705                                 /*DD 86092F*/ 
    462       #define WPMENUID_LOGIN              708                                 /*DD 86092F*/ 
    463       #define WPMENUID_LOGOUT             709                                 /*DD 86092F*/ 
    464       #define WPMENUID_ASSIGN             710                                 /*DD 86092F*/ 
    465       #define WPMENUID_UNASSIGN           711                                 /*DD 86092F*/ 
    466       #define WPMENUID_ACCESSNEW          712                                 /*DD 86092F*/ 
    467       #define WPMENUID_SYSTEMSETUP        713                                 /*DD 86092F*/ 
     422      #define WPMENUID_TREE               123                                 /*DD 86092F*/
     423      #define WPMENUID_FIND               8                                   /*DD 86092F*/
     424      #define WPMENUID_CREATEANOTHER      101                                 /*DD 86092F*/
     425      #define WPMENUID_MOVE               107                                 /*DD 86092F*/
     426      #define WPMENUID_COPY               108                                 /*DD 86092F*/
     427      #define WPMENUID_DELETE             109                                 /*DD 86092F*/
     428      #define WPMENUID_PROPERTIES         112                                 /*DD 86092F*/
     429      #define WPMENUID_SELALL             114                                 /*DD 86092F*/
     430      #define WPMENUID_DESELALL           115                                 /*DD 86092F*/
     431      #define WPMENUID_RESERVED1          118                                 /*DD 86092F*/
     432      #define WPMENUID_CLOSE              120                                 /*DD 86092F*/
     433      #define WPMENUID_FORMAT             124                                 /*DD 86092F*/
     434      #define WPMENUID_CHKDSK             128                                 /*DD 86092F*/
     435      #define WPMENUID_FIXDSK             129                                 /*DD 86092F*/
     436      #define WPMENUID_PROGRAM            132                                 /*DD 86092F*/
     437      #define WPMENUID_COPYDSK            182                                 /*DD 86092F*/
     438      #define WPMENUID_LOCKDISK           184                                 /*DD 86092F*/
     439      #define WPMENUID_EJECTDISK          185                                 /*DD 86092F*/
     440      #define WPMENUID_UNLOCKDISK         186                                 /*DD 86092F*/
     441      #define WPMENUID_PICKUP             188                                 /* rme77131*/
     442      #define WPMENUID_PUTDOWN            189                                 /* rme77131*/
     443      #define WPMENUID_PUTDOWN_COPY       190                                 /* rme77131*/
     444      #define WPMENUID_PUTDOWN_MOVE       191                                 /* rme77131*/
     445      #define WPMENUID_PUTDOWN_LINK       192                                 /* rme77131*/
     446      #define WPMENUID_PUTDOWN_CANCEL     193                                 /* rme77131*/
     447      #define WPMENUID_PUTDOWN_CREATE     194                                 /* rme77131*/
     448      #define WPMENUID_ICON               303                                 /*DD 86092F*/
     449      #define WPMENUID_DETAILS            304                                 /*DD 86092F*/
     450      #define WPMENUID_ARRANGE            309                                 /*DD 86092F*/
     451      #define WPMENUID_RESERVED2          315                                 /*DD 86092F*/
     452      #define WPMENUID_CREATESHADOW       316                                 /*DD 86092F*/
     453      #define WPMENUID_PALETTE            317                                 /*DD 86092F*/
     454      #define WPMENUID_REFRESH            503                                 /*DD 86092F*/
     455      #define WPMENUID_HELP_FOR_HELP      601                                 /*DD 86092F*/
     456      #define WPMENUID_HOWTOGETHELP       601                                 /*DD 86092F*/
     457      #define WPMENUID_EXTENDEDHELP       602                                 /*DD 86092F*/
     458      #define WPMENUID_HELPKEYS           603                                 /*DD 86092F*/
     459      #define WPMENUID_HELPINDEX          604                                 /*DD 86092F*/
     460      #define WPMENUID_SHUTDOWN           704                                 /*DD 86092F*/
     461      #define WPMENUID_LOCKUP             705                                 /*DD 86092F*/
     462      #define WPMENUID_LOGIN              708                                 /*DD 86092F*/
     463      #define WPMENUID_LOGOUT             709                                 /*DD 86092F*/
     464      #define WPMENUID_ASSIGN             710                                 /*DD 86092F*/
     465      #define WPMENUID_UNASSIGN           711                                 /*DD 86092F*/
     466      #define WPMENUID_ACCESSNEW          712                                 /*DD 86092F*/
     467      #define WPMENUID_SYSTEMSETUP        713                                 /*DD 86092F*/
    468468
    469469
     
    11561156 * New Method: wpDrop
    11571157 */
    1158 typedef MRESULT   SOMLINK somTP_WPObject_wpDrop(WPObject *somSelf, 
    1159                 HWND hwndCnr, 
    1160                 PDRAGINFO pdrgInfo, 
     1158typedef MRESULT   SOMLINK somTP_WPObject_wpDrop(WPObject *somSelf,
     1159                HWND hwndCnr,
     1160                PDRAGINFO pdrgInfo,
    11611161                PDRAGITEM pdrgItem);
    11621162//#pragma linkage(somTP_WPObject_wpDrop, system)
     
    12561256     virtual BOOL wpAssertObjectMutexSem();
    12571257     virtual BOOL wpClose();
    1258      virtual PMINIRECORDCORE wpCnrInsertObject(HWND hwndCnr, 
    1259                                                PPOINTL pptlIcon, 
    1260                                                PMINIRECORDCORE preccParent, 
     1258     virtual PMINIRECORDCORE wpCnrInsertObject(HWND hwndCnr,
     1259                                               PPOINTL pptlIcon,
     1260                                               PMINIRECORDCORE preccParent,
    12611261                                               PRECORDINSERT pRecInsert);
    12621262     virtual BOOL wpCnrRemoveObject(HWND hwndCnr);
    12631263     virtual BOOL wpCnrSetEmphasis(ULONG ulEmphasisAttr, BOOL fTurnOn);
    12641264     virtual ULONG wpConfirmDelete(ULONG fConfirmations);
    1265      virtual ULONG wpConfirmObjectTitle(WPFolder* Folder, WPObject** ppDuplicate, 
    1266                                         PSZ pszTitle, ULONG cbTitle, 
     1265     virtual ULONG wpConfirmObjectTitle(WPFolder* Folder, WPObject** ppDuplicate,
     1266                                        PSZ pszTitle, ULONG cbTitle,
    12671267                                        ULONG menuID);
    12681268     virtual void wpCopiedFromTemplate();
    12691269     virtual WPObject* wpCopyObject(WPFolder* Folder, BOOL fLock);
    1270      virtual WPObject* wpCreateAnother(PSZ pszTitle, PSZ pszSetupEnv, 
     1270     virtual WPObject* wpCreateAnother(PSZ pszTitle, PSZ pszSetupEnv,
    12711271                                       WPFolder* Folder);
    1272      virtual WPObject* wpCreateFromTemplate(WPFolder* folder, 
     1272     virtual WPObject* wpCreateFromTemplate(WPFolder* folder,
    12731273                                            BOOL fLock);
    1274      virtual WPObject* wpCreateShadowObject(WPFolder* Folder, 
     1274     virtual WPObject* wpCreateShadowObject(WPFolder* Folder,
    12751275                                            BOOL fLock);
    12761276     virtual ULONG wpDelete(ULONG fConfirmations);
    12771277     virtual BOOL wpDeleteFromObjUseList(PUSEITEM pUseItem);
    12781278     virtual BOOL wpDisplayHelp(ULONG HelpPanelId, PSZ HelpLibrary);
    1279      virtual HWND wpDisplayMenu(HWND hwndOwner, HWND hwndClient, 
    1280                                 POINTL* ptlPopupPt, ULONG ulMenuType, 
     1279     virtual HWND wpDisplayMenu(HWND hwndOwner, HWND hwndClient,
     1280                                POINTL* ptlPopupPt, ULONG ulMenuType,
    12811281                                ULONG ulReserved);
    12821282     virtual BOOL wpDoesObjectMatch(PVOID pvoidExtendedCriteria);
    12831283     virtual MRESULT wpDraggedOverObject(WPObject* DraggedOverObject);
    12841284     virtual MRESULT wpDragOver(HWND hwndCnr, PDRAGINFO pdrgInfo);
    1285      virtual MRESULT wpDrop(HWND hwndCnr, PDRAGINFO pdrgInfo, 
     1285     virtual MRESULT wpDrop(HWND hwndCnr, PDRAGINFO pdrgInfo,
    12861286                            PDRAGITEM pdrgItem);
    12871287     virtual BOOL wpDroppedOnObject(WPObject* DroppedOnObject);
    12881288     virtual MRESULT wpEndConversation(ULONG ulItemID, ULONG flResult);
    1289      virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr, 
     1289     virtual ULONG wpFilterPopupMenu(ULONG ulFlags, HWND hwndCnr,
    12901290                                     BOOL fMultiSelect);
    12911291     virtual PUSEITEM wpFindUseItem(ULONG type, PUSEITEM pCurrentItem);
     
    12951295     virtual BOOL wpHide();
    12961296     virtual void wpInitData();
    1297      virtual BOOL wpInsertPopupMenuItems(HWND hwndMenu, ULONG iPosition, 
    1298                                          HMODULE hmod, ULONG MenuID, 
     1297     virtual BOOL wpInsertPopupMenuItems(HWND hwndMenu, ULONG iPosition,
     1298                                         HMODULE hmod, ULONG MenuID,
    12991299                                         ULONG SubMenuID);
    13001300     virtual ULONG wpInsertSettingsPage(HWND hwndNotebook, PPAGEINFO ppageinfo);
    13011301     virtual BOOL wpMenuItemHelpSelected(ULONG MenuId);
    13021302     virtual BOOL wpMenuItemSelected(HWND hwndFrame, ULONG ulMenuId);
    1303      virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr, 
     1303     virtual BOOL wpModifyPopupMenu(HWND hwndMenu, HWND hwndCnr,
    13041304                                    ULONG iPosition);
    13051305     virtual BOOL wpMoveObject(WPFolder* Folder);
     
    13301330     virtual ULONG wpRequestObjectMutexSem(ULONG ulTimeout);
    13311331     virtual BOOL wpRestore();
    1332      virtual BOOL wpRestoreData(PSZ pszClass, ULONG ulKey, PBYTE pValue, 
     1332     virtual BOOL wpRestoreData(PSZ pszClass, ULONG ulKey, PBYTE pValue,
    13331333                                PULONG pcbValue);
    13341334     virtual BOOL wpRestoreLong(PSZ pszClass, ULONG ulKey, PULONG pulValue);
    13351335     virtual BOOL wpRestoreState(ULONG ulReserved);
    1336      virtual BOOL wpRestoreString(PSZ pszClass, ULONG ulKey, 
     1336     virtual BOOL wpRestoreString(PSZ pszClass, ULONG ulKey,
    13371337                                  PSZ pszValue, PULONG pcbValue);
    1338      virtual BOOL wpSaveData(PSZ pszClass, ULONG ulKey, PBYTE pValue, 
     1338     virtual BOOL wpSaveData(PSZ pszClass, ULONG ulKey, PBYTE pValue,
    13391339                             ULONG cbValue);
    13401340     virtual BOOL wpSaveImmediate();
     
    13431343     virtual BOOL wpSaveState();
    13441344     virtual BOOL wpSaveString(PSZ pszClass, ULONG ulKey, PSZ pszValue);
    1345      virtual BOOL wpScanSetupString(PSZ pszSetupString, PSZ pszKey, 
     1345     virtual BOOL wpScanSetupString(PSZ pszSetupString, PSZ pszKey,
    13461346                                    PSZ pszValue, PULONG pcbValue);
    13471347     virtual void wpSetConcurrentView(ULONG ulCCView);
     
    13501350     virtual BOOL wpSetDefaultView(ULONG ulView);
    13511351     virtual BOOL wpSetError(ULONG ulErrorId);
    1352      virtual BOOL wpSetIconHandle(HPOINTER hptrNewIcon);
    13531352     virtual USHORT wpQueryScreenGroupID(USHORT usPrevSgId);
    13541353     virtual BOOL wpSetupOnce(PSZ pszSetupString);
     
    13681367     virtual void wpObjectReady(ULONG ulCode, WPObject* refObject);
    13691368     virtual BOOL wpIsObjectInitialized();
    1370      virtual WPObject* wpCreateShadowObjectExt(WPFolder* Folder, 
    1371                                                BOOL fLock, PSZ pszSetup, 
     1369     virtual WPObject* wpCreateShadowObjectExt(WPFolder* Folder,
     1370                                               BOOL fLock, PSZ pszSetup,
    13721371                                               M_WPObject* shadowClass);
    13731372     virtual BOOL wpCnrDeleteUseItem(HWND hwndCnr);
     
    13831382     virtual BOOL wpIsLocked();
    13841383     virtual PULONG wpQueryContainerFlagPtr();
    1385      virtual ULONG wpWaitForClose(LHANDLE lhView, ULONG ulViews, 
     1384     virtual ULONG wpWaitForClose(LHANDLE lhView, ULONG ulViews,
    13861385                                  long lTimeOut, BOOL bAutoClose);
    1387      WPObject(); 
    1388      virtual ~WPObject(); 
    1389      #pragma SOMReleaseOrder ( \
     1386         virtual BOOL wpIdentify(PSZ pszIdentity);                                 
     1387         virtual BOOL wpModifyMenu(
     1388                HWND hwndMenu,
     1389                HWND hwndCnr,
     1390                ULONG iPosition,
     1391                ULONG ulMenuType,
     1392                ULONG ulView,
     1393                ULONG ulReserved);
     1394         virtual BOOL wpFilterMenu(
     1395                FILTERFLAGS* pFlags,
     1396                HWND hwndCnr,
     1397                BOOL fMultiSelect,
     1398                ULONG ulMenuType,
     1399                ULONG ulView,
     1400                ULONG ulReserved);
     1401         virtual BOOL wpInsertMenuItems(
     1402                HWND hwndMenu,
     1403                ULONG iPosition,
     1404                HMODULE hmod,
     1405                ULONG MenuID,
     1406                ULONG SubMenuID);
     1407     virtual BOOL wpSetMenuStyle(ULONG ulStyle);
     1408         virtual ULONG wpQueryMenuStyle();
     1409                                 
     1410     WPObject();
     1411     virtual ~WPObject();
     1412    #pragma SOMReleaseOrder ( \
    13901413                              "wpSetTitle", \
    13911414                              "wpQueryTitle", \
     
    14651488                              *, \
    14661489                              "wpRegisterView", \
    1467                               *, \
     1490                              "wpIdentify", \
    14681491                              "wpSetDefaultHelp", \
    14691492                              "wpQueryDefaultHelp", \
     
    15291552                              "wpIsObjectInitialized", \
    15301553                              "wpCreateShadowObjectExt", \
    1531                               "wpSetIconHandle", \
     1554                              *, \
    15321555                              *, \
    15331556                              *, \
     
    15371560                              "wpSetupOnce", \
    15381561                              "wpAddObjectGeneralPage2", \
     1562                              *, \
     1563                              *, \
     1564                              "wpModifyMenu", \
     1565                              "wpFilterMenu", \
     1566                              "wpInsertMenuItems", \
     1567                              "wpSetMenuStyle", \
     1568                              "wpQueryMenuStyle", \
     1569                              *, \
     1570                              *, \
     1571                              *, \
     1572                              *, \
     1573                              *, \
     1574                              *, \
     1575                              *, \
    15391576                              *, \
    15401577                              *)
     
    17631800 * New Method: wpclsQueryObject
    17641801 */
    1765 typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsQueryObject(M_WPObject *somSelf, 
     1802typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsQueryObject(M_WPObject *somSelf,
    17661803                HOBJECT hObject);
    17671804//#pragma linkage(somTP_M_WPObject_wpclsQueryObject, system)
     
    18411878     virtual BOOL wpclsCreateDefaultTemplates(WPObject* Folder);
    18421879     virtual void wpclsInitData();
    1843      virtual WPObject* wpclsMakeAwake(PSZ pszTitle, ULONG ulStyle, 
    1844                                       HPOINTER hptrIcon, POBJDATA pObjData, 
     1880     virtual WPObject* wpclsMakeAwake(PSZ pszTitle, ULONG ulStyle,
     1881                                      HPOINTER hptrIcon, POBJDATA pObjData,
    18451882                                      WPFolder* Folder, ULONG ulUser);
    1846      virtual WPObject* wpclsNew(PSZ pszTitle, PSZ pszSetupEnv, 
     1883     virtual WPObject* wpclsNew(PSZ pszTitle, PSZ pszSetupEnv,
    18471884                                WPFolder* Folder, BOOL fLock);
    1848      virtual BOOL wpclsQueryDefaultHelp(PULONG pHelpPanelId, 
     1885     virtual BOOL wpclsQueryDefaultHelp(PULONG pHelpPanelId,
    18491886                                        PSZ pszHelpLibrary);
    18501887     virtual ULONG wpclsQueryDefaultView();
    18511888     virtual PCLASSDETAILS wpclsQueryDetails();
    1852      virtual ULONG wpclsQueryDetailsInfo(PCLASSFIELDINFO* ppClassFieldInfo, 
     1889     virtual ULONG wpclsQueryDetailsInfo(PCLASSFIELDINFO* ppClassFieldInfo,
    18531890                                         PULONG pSize);
    1854      virtual BOOL wpclsQueryExtendedCriteria(PSZ pszName, ULONG ulSearchType, 
     1891     virtual BOOL wpclsQueryExtendedCriteria(PSZ pszName, ULONG ulSearchType,
    18551892                                             PVOID pvoidExtendedCriteria);
    18561893     virtual WPObject* wpclsQueryFolder(PSZ pszLocation, BOOL fLock);
    18571894     virtual HPOINTER wpclsQueryIcon();
    1858      virtual void wpclsQuerySearchInfo(M_WPObject** ClassExtended, 
    1859                                        M_WPObject** ClassCreate, 
     1895     virtual void wpclsQuerySearchInfo(M_WPObject** ClassExtended,
     1896                                       M_WPObject** ClassCreate,
    18601897                                       PULONG pulClassCriteriaSize);
    18611898     virtual ULONG wpclsQueryStyle();
    18621899     virtual PSZ wpclsQueryTitle();
    18631900     virtual void wpclsUnInitData();
    1864      virtual BOOL wpclsFindObjectFirst(PCLASS pClassList, PHFIND phFind, 
    1865                                        PSZ pszTitle, WPFolder* Folder, 
    1866                                        BOOL fSubfolders, PVOID pExtendedCriteria, 
     1901     virtual BOOL wpclsFindObjectFirst(PCLASS pClassList, PHFIND phFind,
     1902                                       PSZ pszTitle, WPFolder* Folder,
     1903                                       BOOL fSubfolders, PVOID pExtendedCriteria,
    18671904                                       POBJECT pBuffer, PULONG pCount);
    1868      virtual BOOL wpclsFindObjectNext(HFIND hFind, POBJECT pBuffer, 
     1905     virtual BOOL wpclsFindObjectNext(HFIND hFind, POBJECT pBuffer,
    18691906                                      PULONG pCount);
    18701907     virtual BOOL wpclsFindObjectEnd(HFIND hFind);
     
    18771914     virtual void wpclsDecUsage();
    18781915     virtual void wpclsIncUsage();
    1879      virtual BOOL wpclsInsertMultipleObjects(HWND hwndCnr, PPOINTL pptlIcon, 
    1880                                              PVOID* pObjectArray, 
    1881                                              PVOID pRecordParent, 
     1916     virtual BOOL wpclsInsertMultipleObjects(HWND hwndCnr, PPOINTL pptlIcon,
     1917                                             PVOID* pObjectArray,
     1918                                             PVOID pRecordParent,
    18821919                                             ULONG NumRecords);
    18831920     virtual WPObject* wpclsFindOneObject(HWND hwndOwner, PSZ pszFindParams);
     
    18861923     virtual BOOL wpclsSetIcon(HPOINTER hptrNewIcon);
    18871924     virtual WPObject* wpclsObjectFromHandle(HOBJECT hObject);
    1888      virtual BOOL wpclsRemoveObjects(HWND hwndCnr, PVOID* pRecordArray, 
     1925     virtual BOOL wpclsRemoveObjects(HWND hwndCnr, PVOID* pRecordArray,
    18891926                                     ULONG NumRecords, BOOL RemoveAll);
    1890      virtual ~M_WPObject(); 
     1927     virtual ~M_WPObject();
    18911928     virtual void somClassReady();
    18921929     virtual SOMObject* somNew();
  • trunk/mediafolder/makefile

    r53 r104  
    55CC           = icc
    66#CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    7 CPPFLAGS     = /G5 /Ge- /Gm+ /Gl  /O+ /Ss /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG)
    8 
    9 
    10 LIBS         =  mmPM2.lib rexx.lib                 
     7CPPFLAGS     = /G5 /Ge- /Gm+ /Gl- /Ga- /O+ /Ss /Oc+ /Ol- /Q+ /D$(ECS) $(VACDEBUG)
     8
     9
     10LIBS         =  somtk.lib mmPM2.lib rexx.lib
    1111INC     =       ./include
    1212
     
    1414
    1515HELPERDIR       =       ./c/helper
    16 DEFS         = 
    17 PROGS        = 
     16DEFS         =
     17PROGS        =
    1818CDIR            =       ./c
    1919IDLDIR          =       ../classes/idl
     
    7474#
    7575#######################################
    76 all:    mediafolder.dll mediafolder_en.dll mediafolder_nl.dll mediafolder_de.dll mediafolder_it.dll \
     76all:    mediafld.dll mfldr_en.dll mfldr_nl.dll mfldr_de.dll mfldr_it.dll \
    7777        ./help/mediafldr.hlp \
    7878        prog_tutorial\mediafldrprog.inf ./c/createcd/createcd.exe
     
    9494#######################################
    9595#
    96 # Compile 
     96# Compile
    9797#
    9898#######################################
     
    117117
    118118$(OBJDIR)/%.obj:        $(HELPERDIR)/%.cpp
    119         $(COMPILE) 
     119        $(COMPILE)
    120120
    121121$(HELPERDIR)/%.obj:     ./helper/%.cpp $(INC)\mediafolder.hh
    122122        $(COMPILE)
    123123
    124 mediafolder.dll:        $(OBJECTS) progfolder\progfolder.def $(INC)\mediafolderres.h ./res/mediafolder.res
     124mediafld.dll:   $(OBJECTS) progfolder\progfolder.def $(INC)\mediafolderres.h ./res/mediafolder.res
    125125                -cd ../. && make bld
    126126                @create_mfldr_def.CMD mediafolder.DEF
    127127                implib /NOLOGO lib\progfldr.lib progfolder\progfolder.def
    128                 icc -Ge- /Q+ /D$(ECS) /FM $(OBJECTS) lib\progfldr.lib $(LIBS) mediafolder.def
    129                 rc ./res/mediafolder.res $@ 
    130                 MAPSYM mediafolder
    131 
    132 mediafolder_en.dll:     
    133                 -cd ./res && make
    134 
    135 mediafolder_de.dll:
    136                 -cd ./res && make
    137 
    138 mediafolder_nl.dll:
    139                 -cd ./res && make
    140 
    141 mediafolder_it.dll:
     128                icc -Ge- /Q+ /D$(ECS) /Fe$@ /Fm$*.map $(OBJECTS) lib/progfldr.lib $(LIBS) mediafolder.def
     129                rc ./res/mediafolder.res $@
     130                MAPSYM $*.map
     131
     132mfldr_en.dll:   
     133                -cd ./res && make
     134
     135mfldr_de.dll:
     136                -cd ./res && make
     137
     138mfldr_nl.dll:
     139                -cd ./res && make
     140
     141mfldr_it.dll:
    142142                -cd ./res && make
    143143
     
    210210        -mkdir ..\..\$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\FreeDB\logfiles
    211211        -mkdir ..\..\$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\FreeDB\cddbdata
    212         cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\Doc\mediafldr.inf 
     212        cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-ger\CWMFldr-$(VERSION)-ger\Doc\mediafldr.inf
    213213        cp bin/*.cmd ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/
    214214        cp bin/*.rx ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/
    215215        cp bin/*.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/dll/
    216216        cp ./c/createcd/createcd.exe  ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/
    217         cp ./mediafolder.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mediafld.dll
    218         cp ./res/obj/mediafolder_de.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mfldr_de.dll
     217        cp ./mediafld.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mediafld.dll
     218        cp ./res/obj/mfldr_de.dll ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mfldr_de.dll
    219219        cp ./help/mediafldr049.hlp ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/bin/mediafld.hlp
    220220        cp ./install/MFLDRGER.ins  ../../$(PKGNAME)-$(VERSION)-ger/CWMFldr-$(VERSION)-ger/MFLDRGER.INS
     
    242242        -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\logfiles
    243243        -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\cddbdata
    244         cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf 
     244        cp prog_tutorial/mediafldrprog.inf ../../$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf
    245245        cp bin/*.cmd ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/
    246246        cp bin/*.rx ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/
    247247        cp bin/*.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/dll/
    248248        cp ./c/createcd/createcd.exe  ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/
    249         cp ./mediafolder.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll
    250         cp ./res/obj/mediafolder_en.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mfldr_en.dll
     249        cp ./mediafld.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll
     250        cp ./res/obj/mfldr_en.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mfldr_en.dll
    251251        cp ./help/mediafldr.hlp ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.hlp
    252252        cp ./install/MEDIAFLD.ins  ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/MEDIAFLD.INS
     
    269269        -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\logfiles
    270270        -mkdir ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\FreeDB\cddbdata
    271         -cp prog_tutorial\mediafldrprog.inf ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf 
     271        -cp prog_tutorial\mediafldrprog.inf ..\..\$(PKGNAME)-$(VERSION)-eng\CWMFldr-$(VERSION)-eng\Doc\mediafldr.inf
    272272        -cp doc/Readme.eng ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/
    273273        -cp doc/FILE_ID.DIZ ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/
     
    278278        -cp Skripte_eng/* ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/Skripte/
    279279        -cp ./help/mediafldr.hlp ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.hlp
    280         -cp ./mediafolder.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll
     280        -cp ./mediafld.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/mediafld.dll
    281281        -cp ./mediafolder001.dll ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/bin/media001.dll
    282282        -cp ./install/MEDIAFLD.INS  ../../$(PKGNAME)-$(VERSION)-eng/CWMFldr-$(VERSION)-eng/
     
    303303        -mkdir ..\..\$(ECSBASE)-eng\FreeDB\logfiles
    304304        -mkdir ..\..\$(ECSBASE)-eng\FreeDB\cddbdata
    305         -cp prog_tutorial/mediafldrprog.inf ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/Doc/mediafldr.inf 
     305        -cp prog_tutorial/mediafldrprog.inf ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/Doc/mediafldr.inf
    306306        -cp bin/*.cmd ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/
    307307        -cp bin/*.rx ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/
    308308        -cp bin/progfldr.dll ../../$(ECSBASE)-eng/dll/
    309309        -cp ./help/mediafldr.hlp ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/mediafld.hlp
    310         -cp ./mediafolder.dll ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/mediafld.dll
     310        -cp ./mediafld.dll ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/mediafld.dll
    311311        -cp ./mediafolder001.dll ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin/media001.dll
    312312        -cp ./install/createcd.exe  ../../$(ECSBASE)-eng/$(ECSMFLDRDIR)/bin
  • trunk/mediafolder/prog_tutorial/hiddenfeatures.inc

    r4 r104  
    1212:p.
    1313Even if a new program isn't specified in the INI file the classes improve the default
    14 behaviour by not starting the player as part of the WPS process. So if the player crashes
    15 the WPS doesn't crash anymore .
     14behavior by not starting the player as part of the WPS process. So if the player crashes
     15the WPS doesn't crash anymore.
    1616
    1717
     
    3030:p.
    3131Even if a new program isn't specified in the INI file the classes improve the default
    32 behaviour by not starting the editor as part of the WPS process. So if the editor crashes
     32behavior by not starting the editor as part of the WPS process. So if the editor crashes
    3333the WPS doesn't crash anymore.
    3434
     
    4747:p.
    4848Even if a new program isn't specified in the INI file the classes improve the default
    49 behaviour by not starting the player as part of the WPS process. So if the player crashes
    50 the WPS doesn't crash anymore .
     49behavior by not starting the player as part of the WPS process. So if the player crashes
     50the WPS doesn't crash anymore.
    5151
    5252
     
    6464:p.
    6565Even if a new program isn't specified in the INI file the classes improve the default
    66 behaviour by not starting the player as part of the WPS process. So if the player crashes
    67 the WPS doesn't crash anymore .
     66behavior by not starting the player as part of the WPS process. So if the player crashes
     67the WPS doesn't crash anymore.
    6868
    6969
     
    8181:p.
    8282Even if a new program isn't specified in the INI file the classes improve the default
    83 behaviour by not starting the player as part of the WPS process. So if the default player crashes
     83behavior by not starting the player as part of the WPS process. So if the default player crashes
    8484the WPS doesn't crash, too.
    8585
     
    108108:ent.
    109109:p.
    110 Default behaviour is to create a new MEdia folder and fill it with the tracks specified in the
    111 M3U file. Using this setting it's possible to use another MP3 player.
     110Default behavior is to create a new Media folder and fill it with the tracks specified in the
     111M3U file. Using this setting it's possible to use another M3U player.
    112112
    113113
     
    126126:p.
    127127Even if a new program isn't specified in the INI file the classes improve the default
    128 behaviour by not starting the editor as part of the WPS process. So if the editor crashes
    129 the WPS doesn't crash anymore. 
     128behavior by not starting the editor as part of the WPS process. So if the editor crashes
     129the WPS doesn't crash anymore.
    130130
    131131
  • trunk/mediafolder/prog_tutorial/mediafldrprog.ipf

    r4 r104  
    33:docprof.
    44
    5 :title.Programming tutorial for Multimedia classes 
     5:title.Programming tutorial for Multimedia classes
    66
    77:h1 res=100.Introduction
     
    1313For use of the REXX interface
    1414:p.
    15 :link reftype=launch
    16 object='netscape.exe'
    17 data='http://www.os2world.com/cdwriting'.
    18 WPS-Wizard V0.2.0:elink. (http&colon.//www.os2world.com/cdwriting)
    19 :p.
    20 or above must be installed.
     15WPS-Wizard V0.2.0 (http&colon.//www.os2world.com/cdwriting)
     16:p.
     17or above must be installed.
    2118
    2219:h1 res=200
     
    2926:li.:link reftype=hd res=211.MEDIAFLDRPLAY:elink.   Start playing
    3027:li.:link reftype=hd res=215.MEDIAFLDRPLAYFIRST:elink.   Start first track
    31 :li.:link reftype=hd res=212.MEDIAFLDRPREV:elink.   Skip to previus track
    32 :li.:link reftype=hd res=216.MEDIAFLDRREPEAT:elink. Set repeat.
     28:li.:link reftype=hd res=212.MEDIAFLDRPREV:elink.   Skip to previous track
     29:li.:link reftype=hd res=216.MEDIAFLDRREPEAT:elink. Set repeat
    3330:li.:link reftype=hd res=213.MEDIAFLDRSTOP:elink.   Stop playing
    3431:li.:link reftype=hd res=214.MEDIAFLDRVOLUME:elink. Set volume
     
    146143:p.
    147144Set the track name of the audio file. This information is saved in the EA of the file. For
    148 MP3 files this information id also saved in the ID3 tag.
     145MP3 files this information is also saved in the ID3 tag.
    149146:xmp.
    150147/* REXX - This command adds the track name to the audio file */
     
    225222Reread the audio information from the file and update internal object data.
    226223:xmp.
    227 /* REXX - This command adds the genre of the audio file */
     224/* REXX - This command rereads the information of the audio file */
    228225
    229226rc=SysSetObjectData('x&colon.\path_to_folder\audio_file.ext','MMREFRESH=1')
     
    234231group=2
    235232.MMAUDIOCOPYTAGTO
    236 :p.
    237 Reread the audio information from the file and update internal object data.
    238 :xmp.
    239 /* REXX - This command adds the genre of the audio file */
     233
     234Read the audio information from the file tag and copies it to another file.
     235
     236:xmp.
     237/* REXX - This command copies the file tag information to another audio file */
    240238
    241239rc=SysSetObjectData('x&colon.\path_to_folder\audio_file.ext','MMAUDIOCOPYTAGTO=x&colon.\path_to_folder\another_file.ext')
     
    311309param2         /* Second method parameter */
    312310:p.
    313 rc=MFldrCallFunc(methodName, Object, 
     311rc=MFldrCallFunc(methodName, Object,
    314312                 param1, param2, ...);
    315313:exmp.
     
    421419param2         /* Second method parameter */
    422420:p.
    423 rc=MMCallFunc(methodName, Object, 
     421rc=MMCallFunc(methodName, Object,
    424422                 param1, param2, ...);
    425423:exmp.
     
    517515:li.:link reftype=hd res=420.Disable audio file checking:elink.
    518516:li.:link reftype=hd res=421.Disable ID3 tag reading:elink.
    519 :li.:link reftype=hd res=422.Set time for message box display:elink.
     517:li.:link reftype=hd res=422.Replace M3U editor:elink.
     518:li.:link reftype=hd res=423.Replace M3U player:elink.
    520519:eul.
    521520
  • trunk/mediafolder/prog_tutorial/newmethods.inc

    r2 r104  
    121121.cwPauseAudioFile - Remarks
    122122:p.
    123 The frame handle of the media folder is given to the skript as a parameter
     123The frame handle of the media folder is given to the script as a parameter
    124124when started.
    125125
     
    177177.cwPlayAudioFile - Remarks
    178178:p.
    179 The frame handle of the media folder is given to the skript as a parameter
     179The frame handle of the media folder is given to the script as a parameter
    180180when started. The flag parameter may have one of the following values.
    181181
     
    292292.cwSetStatusLineText - Remarks
    293293:p.
    294 If the text parameter is 0 the folder shows it's standard
     294If the text parameter is 0 the folder shows its standard
    295295status line text.
    296296
     
    348348.cwStopAudioFile - Remarks
    349349:p.
    350 The frame handle of the media folder is given to the skript as a parameter
     350The frame handle of the media folder is given to the script as a parameter
    351351when started.
    352352
     
    407407.cwmmQueryTrackInfo - Remarks
    408408:p.
    409 The object must be an instance of :hp2.CWAudio:ehp2. or of one of it's
     409The object must be an instance of :hp2.CWAudio:ehp2. or of one of its
    410410subclasses (:hp2.CWMP3:ehp2., :hp2.MMWAV:ehp2....). This method was introduced
    411411by :hp2.CWAudio:ehp2.. Since V0.2.5 of the classes the class names are :hp2.MMAudio:ehp2.
     
    446446:li.IDINFO_BITRATE           11
    447447.br
    448 Bitrate in Hz (numeric value). This flag is only valid for instances of class MMMP3 and
    449 MMOGG. For other classes the return value is undefined. New with V0.2.7.
     448Bitrate in KB per second (numeric value). This flag is only valid for instances
     449of class MMMP3 and MMOGG. For other classes the return value is undefined. New
     450with V0.2.7.
    450451:eul.
    451452
     
    524525:pd.Image format.
    525526:eparml.
    526 :pt.:hp2.info:ehp2. (numeric)
    527 :pd.The queried information as a string.
    528527:eparml.
    529528
    530 
    531 
    532 
    533 
  • trunk/mediafolder/res/de/about_de.dlg

    r2 r104  
    66DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
    77BEGIN
    8     DIALOG  "Information", IDDLG_ABOUT, 115, 69, 208, 132, WS_VISIBLE, 
     8    DIALOG  "Information", IDDLG_ABOUT, 115, 69, 208, 132, WS_VISIBLE,
    99            FCF_TITLEBAR
    1010    BEGIN
    1111        GROUPBOX        "", IDGB_ABOUT, 3, 21, 200, 108
    12         CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187, 
     12        CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187,
    1313                        12, DT_VCENTER | NOT WS_GROUP
    14 ;        CTEXT           "Media-Ordner V0.2.5", IDST_PRODNAME, 16, 107, 175,
    15 ;                        12, DT_VCENTER | NOT WS_GROUP
    16         CTEXT           MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87,
     14        CTEXT           MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87,
    1715                        186, 12, DT_VCENTER | NOT WS_GROUP
    18         CTEXT           "Graphiken von Klaus Staedtler-Przyborski",
    19                         IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK |
     16        CTEXT           "Copyright (c) netlabs.org 2020",
     17                        IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP
     18        CTEXT           "Graphiken von Klaus Staedtler-Przyborski",
     19                        IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK |
    2020                        NOT WS_GROUP
    21         CTEXT           "http://www.geocities.com/SiliconValley/Sector/5785/"
    22                         "index.html", IDST_URL1, 10, 46, 186, 18,
    23                         DT_WORDBREAK | NOT WS_GROUP
     21        CTEXT           "https://trac.netlabs.org/cwmmclasses", IDST_URL1,
     22                        10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP
    2423                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    2524        DEFPUSHBUTTON   "~Ok", DID_OK, 83, 3, 40, 14
    26         CTEXT           "http://www.os2world.com/cdwriting", IDST_URL2, 10,
    27                         30, 186, 16, DT_WORDBREAK
    28                         PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    2925    END
    3026END
  • trunk/mediafolder/res/de/about_ecs_de.dlg

    r2 r104  
    77DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
    88BEGIN
    9     DIALOG  "Produktinformation", IDDLG_ABOUT, 110, 125, 184, 58, 
     9    DIALOG  "Produktinformation", IDDLG_ABOUT, 110, 125, 184, 58,
    1010            WS_VISIBLE, FCF_TITLEBAR
    1111    BEGIN
    12         ICON            IDICON_FOLDER1, IDICON_FOLDER1, 5, 33, 16, 15, 
     12        ICON            IDICON_FOLDER1, IDICON_FOLDER1, 5, 33, 16, 15,
    1313                        WS_GROUP
    14         LTEXT           "Multimedia-Integration fr die Arbeitsoberfl„che", 
    15                         IDST_PRODNAME, 28, 44, 154, 10, DT_VCENTER | NOT 
     14        LTEXT           "Multimedia-Integration fr die Arbeitsoberfl„che",
     15                        IDST_PRODNAME, 28, 44, 154, 10, DT_VCENTER | NOT
    1616                        WS_GROUP
    1717                        PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold"
    1818        CONTROL         "", 607, 28, 37, 150, 7, "CW_SEPARATOR", WS_VISIBLE
    19         LTEXT           "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 28,
     19        LTEXT           MFLDR_AUTHOR, IDST_PRODCOPY, 28,
    2020                        26, 154, 11, DT_VCENTER | NOT WS_GROUP
    21                         PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"
    22         LTEXT           "Lizenziert an Serenity Systems", 608, 28, 17, 154, 9,
    23                         DT_VCENTER
    2421                        PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"
    2522        DEFPUSHBUTTON   "~Ok", IDSTR_CLOSETEXT, 28, 3, 30, 11
  • trunk/mediafolder/res/de/create_res_de_def.CMD

    r2 r104  
    5252def=def||'0d'x||'0a'x
    5353
    54 def=def||"LIBRARY MFLDR_DE INITGLOBAL"||'0d'x||'0a'x
     54def=def||"LIBRARY MFLDR_DE INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
    5555def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth "
    5656def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||"        #@##1## "||DATE("E")||" "||TIME("N")||"        My ;-)  ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||" resource DLL -german-'"||'0d'x||'0a'x
    57 def=def||"PROTMODE"||'0d'x||'0a'x
    58 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x
    59 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x
     57def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x
    6058def=def||"EXPORTS  "||'0d'x||'0a'x
    6159def=def||"        queryLanguage"||'0d'x||'0a'x
  • trunk/mediafolder/res/en/about_ecs_en.dlg

    r70 r104  
    77DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
    88BEGIN
    9     DIALOG  "Product Information", IDDLG_ABOUT, 100, 120, 194, 67, 
     9    DIALOG  "Product Information", IDDLG_ABOUT, 100, 120, 194, 67,
    1010            WS_VISIBLE, FCF_TITLEBAR
    1111    BEGIN
    1212        ICON            IDICON_FOLDER1, IDICON_FOLDER1, 10, 39, 16, 15, WS_GROUP
    13         LTEXT           "Multimedia integration for the desktop", 
    14                         IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 
     13        LTEXT           "Multimedia integration for the desktop",
     14                        IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT
    1515                        WS_GROUP
    1616                        PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold"
    1717        CONTROL         "", 607, 38, 43, 154, 7, "CW_SEPARATOR", WS_VISIBLE
    18         LTEXT           "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38,
    19                         29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 
     18        LTEXT           MFLDR_AUTHOR, IDST_PRODCOPY, 38,
     19                        29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT
    2020                        WS_GROUP
    21         //                PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"
    22         //LTEXT           "Licensed to Serenity Systems", 608, 38, 19, 154, 9
    2321                        PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"
    2422        DEFPUSHBUTTON   "~Ok", IDSTR_CLOSETEXT, 38, 2, 34, 13
  • trunk/mediafolder/res/en/about_en.dlg

    r2 r104  
    1 #define VER_STRING "Media-Ordner V" \
     1#define VER_STRING "Media Folder v" \
    22MFLDR_VERSION \
    33BUILD_STRING
     
    55DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
    66BEGIN
    7     DIALOG  "Product Information", IDDLG_ABOUT, 115, 69, 208, 132, 
     7    DIALOG  "Product Information", IDDLG_ABOUT, 115, 69, 208, 132,
    88            WS_VISIBLE, FCF_TITLEBAR
    99    BEGIN
    1010        GROUPBOX        "", IDGB_ABOUT, 3, 21, 200, 108
    11 ;        CTEXT           "Media-Folder V0.2.9", IDST_PRODNAME, 36, 107, 135,
    12         CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187,
     11        CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187,
    1312                        12, DT_VCENTER | NOT WS_GROUP
    14         CTEXT           "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87,
    15                         186, 12, DT_VCENTER | NOT WS_GROUP
     13        CTEXT           MFLDR_AUTHOR,
     14                        IDST_PRODCOPY, 10, 87, 186, 12, DT_VCENTER | NOT WS_GROUP
     15        CTEXT           "Copyright (c) netlabs.org 2020",
     16                        IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP
    1617        CTEXT           "Graphics by Klaus Staedtler-Przyborski",
    17                         IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK |
     18                        IDST_PRODGRAPHICS, 10, 46, 186, 17, DT_WORDBREAK |
    1819                        NOT WS_GROUP
    19         CTEXT           "http://www.geocities.com/SiliconValley/Sector/5785/"
    20                         "index.html", IDST_URL1, 10, 46, 186, 18,
    21                         DT_WORDBREAK | NOT WS_GROUP
    22                         PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    23         CTEXT           "http://www.os2world.com/cdwriting", IDST_URL2, 10,
    24                         30, 186, 16, DT_WORDBREAK
     20        CTEXT           "https://trac.netlabs.org/cwmmclasses", IDST_URL1,
     21                        10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP
    2522                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    2623        DEFPUSHBUTTON   "~Ok", DID_OK, 83, 3, 40, 14
    2724    END
    2825END
    29 
    30 
  • trunk/mediafolder/res/en/create_res_en_def.CMD

    r2 r104  
    5353def=def||'0d'x||'0a'x
    5454
    55 def=def||"LIBRARY MFLDR_EN INITGLOBAL"||'0d'x||'0a'x
     55def=def||"LIBRARY MFLDR_EN INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
    5656def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth "
    5757def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||"        #@##1## "||DATE("E")||" "||TIME("N")||"        My ;-)  ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||" resource DLL -english-'"||'0d'x||'0a'x
    58 def=def||"PROTMODE"||'0d'x||'0a'x
    59 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x
    60 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x
     58def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x
    6159def=def||"EXPORTS  "||'0d'x||'0a'x
    6260def=def||"        queryLanguage"||'0d'x||'0a'x
  • trunk/mediafolder/res/en/mediafolder_en.dlg

    r2 r104  
    4141        GROUPBOX        "Toolbar", IDGB_TOOLBAR, 9, 24, 181, 127, NOT
    4242                        WS_GROUP
    43         AUTOCHECKBOX    "~Enable fly over help", IDCB_ENABLETBFLYOVER, 16,
     43        AUTOCHECKBOX    "~Enable fly-over help", IDCB_ENABLETBFLYOVER, 16,
    4444                        129, 152, 10
    4545        SPINBUTTON      IDSB_TBFLYOVERDELAY, 97, 115, 40, 12,
    4646                        SPBS_NUMERICONLY | SPBS_MASTER | SPBS_FASTSPIN |
    4747                        WS_GROUP
    48         GROUPBOX        "Fly over colours and font", IDGB_COLORANDFONT, 15,
     48        GROUPBOX        "Fly-over colors and font", IDGB_COLORANDFONT, 15,
    4949                        30, 168, 76, NOT WS_GROUP
    50         LTEXT           "Klick button for colour- or fontpalette.           "
     50        LTEXT           "Click button for color or font palette.           "
    5151                        "             
    52 Press <CTRL> during drag 'n drop to change the text colour.",
     52Hold <Ctrl> during drag'n'drop to change the text color.",
    5353                        IDST_TEXTDEMOFIELD, 23, 35, 95, 57, DT_WORDBREAK
    5454                        PRESPARAMS PP_FOREGROUNDCOLOR, 0x000000FFL
    5555                        PRESPARAMS PP_BACKGROUNDCOLOR, 0x00FFFFFFL
    56         PUSHBUTTON      "~Colour...", IDPB_COLORPALETTE, 129, 72, 45, 14
     56        PUSHBUTTON      "~Color...", IDPB_COLORPALETTE, 129, 72, 45, 14
    5757        PUSHBUTTON      "~Font...", IDPB_FONTPALETTE, 129, 49, 45, 14
    5858        PUSHBUTTON      "~Undo", IDPB_COLORUNDO, 16, 7, 52, 14
     
    100100    END
    101101END
    102 
    103 
  • trunk/mediafolder/res/en/mediafolder_en.rc

    r4 r104  
    1515BEGIN
    1616   MENUITEM  "" , ID_MENUSEPARATOR, MIS_SEPARATOR
    17    MENUITEM "~Product Information",ID_ABOUTITEM   
     17   MENUITEM "~Product Information",ID_ABOUTITEM
    1818END
    1919#else
     
    2121BEGIN
    2222   MENUITEM  "" , ID_MENUSEPARATOR, MIS_SEPARATOR
    23    MENUITEM "~Media Folder Information",ID_ABOUTITEM   
     23   MENUITEM "~Media Folder Information",ID_ABOUTITEM
    2424END
    2525#endif
     
    4545BEGIN
    4646        MENUITEM "~Save"   ,            ID_MENUITEMSAVE
    47         MENUITEM ""           ,                 ID_MENUSEPARATOR, MIS_SEPARATOR               
     47        MENUITEM ""           ,                 ID_MENUSEPARATOR, MIS_SEPARATOR
    4848        MENUITEM "~Exit" ,                      ID_MENUITEMEXIT
    4949END
     
    5353BEGIN
    5454IDSTR_CLOSETITLE "Confirmation"
    55 IDSTR_CLOSETEXT  "There's currently a song playing. Do you really want to stop playing and close the player?"
     55IDSTR_CLOSETEXT  "There's currently an audio file playing. Do you really want to stop playing and close the player?"
    5656IDSTRSETTING_TOOLBAR "Toolbar"
    57 IDSTRS_NOFONTPALETTE          "Can't open the font palette. It may have lost it's ID. Check your INI files."
    58 IDSTRS_NOCOLORPALETTE         "Can't open the color palette. It may have lost it's ID. Check your INI files."
     57IDSTRS_NOFONTPALETTE          "Can't open the font palette. It may have lost its ID. Check your INI files."
     58IDSTRS_NOCOLORPALETTE         "Can't open the color palette. It may have lost its ID. Check your INI files."
    5959IDSTRS_MEDIAFLDRSETTINGS   "Media-Folder setup"
    6060#ifdef ECS
  • trunk/mediafolder/res/it/create_res_it_def.CMD

    r2 r104  
    5353def=def||'0d'x||'0a'x
    5454
    55 def=def||"LIBRARY MFLDR_IT INITGLOBAL"||'0d'x||'0a'x
     55def=def||"LIBRARY MFLDR_IT INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
    5656def=def||"DESCRIPTION '$@#(C) Gabriele Gamba "
    5757def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||"        #@##1## "||DATE("E")||" "||TIME("N")||"        My ;-)  ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||" resource DLL -italian-'"||'0d'x||'0a'x
    58 def=def||"PROTMODE"||'0d'x||'0a'x
    59 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x
    60 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x
     58def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x
    6159def=def||"EXPORTS  "||'0d'x||'0a'x
    6260def=def||"        queryLanguage"||'0d'x||'0a'x
  • trunk/mediafolder/res/it/mediafolder_it.rc

    r4 r104  
    7878
    7979#ifdef ECS
    80 rcinclude "about_ecs_en.dlg"
     80rcinclude "about_ecs_it.dlg"
    8181#else
    82 rcinclude "about_en.dlg"
     82rcinclude "about_it.dlg"
    8383#endif
    8484
  • trunk/mediafolder/res/makefile

    r53 r104  
    55
    66CC           = icc
    7 CPPFLAGS     = /Ge- /Gm+ /G4 /Gl  /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
    8 INC     =       ..\include
     7CPPFLAGS     = /Ge- /Gm+ /G4 /Gl- /Ga- /O+ /Oc+ /Ol- /Q+ $(VACDEBUG)
     8INC     =       ..\\include
    99INC2    =       ../include
    10 DEFS         = 
    11 PROGS        = 
     10DEFS         =
     11PROGS        =
    1212
    1313OBJDIR  =       ./obj
     
    1515HELPSOURCE      =       $(RESDIR2)/ipf
    1616
    17 OBJECTS = 
     17OBJECTS =
    1818
    1919all:            $(OBJDIR)/version.h \
     
    2525                @for i in $(LANGUAGES); \
    2626                do \
    27                         echo "[33;1;m Creating mediafolder_"$$i".dll[0;m";  \
    28                         make LANGUAGE=$$i $(OBJDIR)/mediafolder_$$i.dll ; \
     27                        echo "[33;1;m Creating mfldr_"$$i".dll[0;m";  \
     28                        make LANGUAGE=$$i $(OBJDIR)/mfldr_$$i.dll ; \
    2929                done
    3030
     
    3535
    3636#### Resource DLL ####
    37 $(OBJDIR)/mediafolder_$(LANGUAGE).dll:  ./$(LANGUAGE)/mediafolder_$(LANGUAGE).c \
     37$(OBJDIR)/mfldr_$(LANGUAGE).dll:        ./$(LANGUAGE)/mediafolder_$(LANGUAGE).c \
    3838                                                $(OBJDIR)/mediafolder_$(LANGUAGE).res
    3939                @./$(LANGUAGE)/create_res_$(LANGUAGE)_def.CMD $(OBJDIR)/mediafolder_$(LANGUAGE).def
    40                 icc $(CPPFLAGS) -I$(INC)  -c  /Fo$(OBJDIR)/mediafolder_$(LANGUAGE).obj $< 
     40                icc $(CPPFLAGS) -I$(INC)  -c  /Fo$(OBJDIR)/mediafolder_$(LANGUAGE).obj $<
    4141                icc $(CPPFLAGS) -I$(INC) /Fe$@  $(OBJDIR)/mediafolder_$(LANGUAGE).obj ./obj/mediafolder_$(LANGUAGE).def
    42                 cd $(OBJDIR) && rc  mediafolder_$(LANGUAGE).res mediafolder_$(LANGUAGE).dll
     42                cd $(OBJDIR) && rc  mediafolder_$(LANGUAGE).res mfldr_$(LANGUAGE).dll
    4343       
    4444$(OBJDIR)/mediafolder_$(LANGUAGE).res:  ./$(LANGUAGE)/mediafolder_$(LANGUAGE).rc \
     
    5252
    5353mediafolder.res:                mediafolder.rc $(INC)\mediafolderres.h
    54                 rc -D $(ECS) -i $(INC) -i $(OBJDIR) -r mediafolder.rc 
     54                rc -D $(ECS) -i $(INC) -i $(OBJDIR) -r mediafolder.rc
    5555
    5656clean:
  • trunk/mediafolder/res/nl/about_ecs_nl.dlg

    r2 r104  
    77DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
    88BEGIN
    9     DIALOG  "Produkt Information", IDDLG_ABOUT, 100, 120, 194, 67, 
     9    DIALOG  "Produkt Information", IDDLG_ABOUT, 100, 120, 194, 67,
    1010            WS_VISIBLE, FCF_TITLEBAR
    1111    BEGIN
    1212        ICON            IDICON_FOLDER1, IDICON_FOLDER1, 10, 39, 16, 15, WS_GROUP
    13         LTEXT           "Multimedia integration for the desktop", 
    14                         IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT 
     13        LTEXT           "Multimedia integration for the desktop",
     14                        IDST_PRODNAME, 38, 50, 154, 10, DT_WORDBREAK | NOT
    1515                        WS_GROUP
    1616                        PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans Bold"
    1717        CONTROL         "", 607, 38, 43, 154, 7, "CW_SEPARATOR", WS_VISIBLE
    18         LTEXT           "(C) 2002-2004 Chris Wohlgemuth", IDST_PRODCOPY, 38,
    19                         29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT 
     18        LTEXT           MFLDR_AUTHOR, IDST_PRODCOPY, 38,
     19                        29, 154, 11, DT_VCENTER | DT_WORDBREAK | NOT
    2020                        WS_GROUP
    21                         PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"
    22         LTEXT           "Licensed to Serenity Systems", 608, 38, 19, 154, 9
    2321                        PRESPARAMS PP_FONTNAMESIZE, "9.WarpSans"
    2422        DEFPUSHBUTTON   "~Ok", IDSTR_CLOSETEXT, 38, 2, 34, 13
  • trunk/mediafolder/res/nl/about_nl.dlg

    r2 r104  
    55DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
    66BEGIN
    7     DIALOG  "Produkt informatie", IDDLG_ABOUT, 115, 69, 208, 132, 
     7    DIALOG  "Produkt informatie", IDDLG_ABOUT, 115, 69, 208, 132,
    88            WS_VISIBLE, FCF_TITLEBAR
    99    BEGIN
    1010        GROUPBOX        "", IDGB_ABOUT, 3, 21, 200, 108
    11 ;        CTEXT           "Media-map V0.2.5", IDST_PRODNAME, 36, 107, 135,
    12         CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187,
     11        CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187,
    1312                        12, DT_VCENTER | NOT WS_GROUP
    14         CTEXT           "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87,
     13        CTEXT           MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87,
    1514                        186, 12, DT_VCENTER | NOT WS_GROUP
    16         CTEXT           "Graphics door Klaus Staedtler-Przyborski",
    17                         IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK |
     15        CTEXT           "Copyright (c) netlabs.org 2020",
     16                        IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP                       
     17        CTEXT           "Graphics door Klaus Staedtler-Przyborski",
     18                        IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK |
    1819                        NOT WS_GROUP
    19         CTEXT           "http://www.geocities.com/SiliconValley/Sector/5785/"
    20                         "index.html", IDST_URL1, 10, 46, 186, 18,
    21                         DT_WORDBREAK | NOT WS_GROUP
    22                         PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    23         CTEXT           "http://www.os2world.com/cdwriting", IDST_URL2, 10,
    24                         30, 186, 16, DT_WORDBREAK
     20        CTEXT           "https://trac.netlabs.org/cwmmclasses", IDST_URL1,
     21                        10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP
    2522                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    2623        DEFPUSHBUTTON   "~Ok", DID_OK, 83, 3, 40, 14
  • trunk/mediafolder/res/nl/create_res_nl_def.CMD

    r2 r104  
    5353def=def||'0d'x||'0a'x
    5454
    55 def=def||"LIBRARY MFLDR_NL INITGLOBAL"||'0d'x||'0a'x
     55def=def||"LIBRARY MFLDR_NL INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
    5656def=def||"DESCRIPTION '$@#(C) B. van Leeuwen "
    5757def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||"        #@##1## "||DATE("E")||" "||TIME("N")||"        My ;-)  ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||" resource DLL -dutch-'"||'0d'x||'0a'x
    58 def=def||"PROTMODE"||'0d'x||'0a'x
    59 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x
    60 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x
     58def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x
    6159def=def||"EXPORTS  "||'0d'x||'0a'x
    6260def=def||"        queryLanguage"||'0d'x||'0a'x
  • trunk/mediafolder/res/tw/create_res_tw_def.CMD

    r4 r104  
    5353def=def||'0d'x||'0a'x
    5454
    55 def=def||"LIBRARY MFLDR_tw INITGLOBAL"||'0d'x||'0a'x
     55def=def||"LIBRARY MFLDR_tw INITINSTANCE TERMINSTANCE"||'0d'x||'0a'x
    5656def=def||"DESCRIPTION '$@#(C) C. Wohlgemuth "
    5757def=def||WORD(DATE(),3)||":"||LEFT(theVersion,3)||"        #@##1## "||DATE("E")||" "||TIME("N")||"        My ;-)  ::::"||WORD(TRANSLATE(theVersion," ", "."),3)||"::@@Media-Folder V"||theVersion||" resource DLL -Traditional Chinese-'"||'0d'x||'0a'x
    58 def=def||"PROTMODE"||'0d'x||'0a'x
    59 def=def||"CODE LOADONCALL DISCARDABLE"||'0d'x||'0a'x
    60 def=def||"DATA SINGLE SHARED DISCARDABLE"||'0d'x||'0a'x
     58def=def||"DATA MULTIPLE NONSHARED"||'0d'x||'0a'x
    6159def=def||"EXPORTS  "||'0d'x||'0a'x
    6260def=def||"        queryLanguage"||'0d'x||'0a'x
  • trunk/mediafolder/res/tw/mediafolder_tw.dlg

    r4 r104  
    77DLGTEMPLATE IDDLG_BOTTOMFRAME LOADONCALL MOVEABLE DISCARDABLE
    88BEGIN
    9     DIALOG  "", IDDLG_BOTTOMFRAME, 12, 70, 300, 16, NOT FS_DLGBORDER | NOT 
     9    DIALOG  "", IDDLG_BOTTOMFRAME, 12, 70, 300, 16, NOT FS_DLGBORDER | NOT
    1010            WS_SAVEBITS
    1111    BEGIN
     
    1616DLGTEMPLATE IDDLG_FRAMERIGHT LOADONCALL MOVEABLE DISCARDABLE
    1717BEGIN
    18     DIALOG  "", IDDLG_FRAMERIGHT, 134, 21, 24, 109, NOT FS_DLGBORDER | NOT 
     18    DIALOG  "", IDDLG_FRAMERIGHT, 134, 21, 24, 109, NOT FS_DLGBORDER | NOT
    1919            WS_SAVEBITS
    2020    BEGIN
     
    2424DLGTEMPLATE IDDLG_LEFTFRAME LOADONCALL MOVEABLE DISCARDABLE
    2525BEGIN
    26     DIALOG  "", IDDLG_LEFTFRAME, 12, 6, 148, 148, NOT FS_DLGBORDER | NOT 
     26    DIALOG  "", IDDLG_LEFTFRAME, 12, 6, 148, 148, NOT FS_DLGBORDER | NOT
    2727            WS_SAVEBITS
    2828    BEGIN
    29         CONTAINER       IDCNR_PLAYLIST, 14, 11, 123, 111, CCS_SINGLESEL | 
     29        CONTAINER       IDCNR_PLAYLIST, 14, 11, 123, 111, CCS_SINGLESEL |
    3030                        CCS_AUTOPOSITION | CCS_MINIRECORDCORE | WS_GROUP
    3131        PUSHBUTTON      "Add", IDPB_ADD, 8, 129, 40, 14
     
    3636DLGTEMPLATE IDDLG_TOOLBARSETTINGS LOADONCALL MOVEABLE DISCARDABLE
    3737BEGIN
    38     DIALOG  "", IDDLG_TOOLBARSETTINGS, 91, 22, 201, 199, NOT FS_DLGBORDER | 
     38    DIALOG  "", IDDLG_TOOLBARSETTINGS, 91, 22, 201, 199, NOT FS_DLGBORDER |
    3939            WS_VISIBLE
    4040    BEGIN
    41         GROUPBOX        "€ušãŠC", IDGB_TOOLBAR, 9, 24, 181, 127, NOT 
     41        GROUPBOX        "€ušãŠC", IDGB_TOOLBAR, 9, 24, 181, 127, NOT
    4242                        WS_GROUP
    43         AUTOCHECKBOX    "±Ò¥Î§Y®ÉžÑ»¡(~E)", IDCB_ENABLETBFLYOVER, 16, 
     43        AUTOCHECKBOX    "±Ò¥Î§Y®ÉžÑ»¡(~E)", IDCB_ENABLETBFLYOVER, 16,
    4444                        129, 152, 10
    45         SPINBUTTON      IDSB_TBFLYOVERDELAY, 97, 115, 40, 12, 
    46                         SPBS_NUMERICONLY | SPBS_MASTER | SPBS_FASTSPIN | 
     45        SPINBUTTON      IDSB_TBFLYOVERDELAY, 97, 115, 40, 12,
     46                        SPBS_NUMERICONLY | SPBS_MASTER | SPBS_FASTSPIN |
    4747                        WS_GROUP
    48         GROUPBOX        "§Y®ÉÃCŠâ€ÎŠr«¬", IDGB_COLORANDFONT, 15, 
     48        GROUPBOX        "§Y®ÉÃCŠâ€ÎŠr«¬", IDGB_COLORANDFONT, 15,
    4949                        30, 168, 76, NOT WS_GROUP
    5050        LTEXT           "ÃCŠâ©ÎŠrÅé¿ï¥Î°ÏªºÂIÀ»«ö¶s¡C"
    51                         "©ì©ñ®É«öŠí <CTRL> ¥i¥H§ïÅÜŠrÅéÃCŠâ¡C", 
     51                        "©ì©ñ®É«öŠí <CTRL> ¥i¥H§ïÅÜŠrÅéÃCŠâ¡C",
    5252                        IDST_TEXTDEMOFIELD, 23, 35, 95, 57, DT_WORDBREAK
    5353                        PRESPARAMS PP_FOREGROUNDCOLOR, 0x000000FFL
     
    5858        PUSHBUTTON      "¹w³]­È(~D)", IDPB_COLORSTANDARD, 74, 7, 52, 14
    5959        PUSHBUTTON      "žÑ»¡(~H)", IDPB_COLORHELP, 132, 7, 52, 14, BS_HELP
    60         RTEXT           "©µ¿ð(ms)¡G", IDGB_COLORANDFONT, 35, 116, 55, 8, 
     60        RTEXT           "©µ¿ð(ms)¡G", IDGB_COLORANDFONT, 35, 116, 55, 8,
    6161                        DT_VCENTER
    6262    END
     
    6565DLGTEMPLATE IDDLG_TOPFRAME LOADONCALL MOVEABLE DISCARDABLE
    6666BEGIN
    67     DIALOG  "", IDDLG_TOPFRAME, 13, 52, 287, 26, NOT FS_DLGBORDER | 
     67    DIALOG  "", IDDLG_TOPFRAME, 13, 52, 287, 26, NOT FS_DLGBORDER |
    6868            FS_BORDER | NOT WS_SAVEBITS
    6969    BEGIN
     
    7474DLGTEMPLATE IDDLG_TOPMIDDLE LOADONCALL MOVEABLE DISCARDABLE
    7575BEGIN
    76     DIALOG  "", IDDLG_TOPMIDDLE, 12, 51, 249, 39, NOT FS_DLGBORDER | 
     76    DIALOG  "", IDDLG_TOPMIDDLE, 12, 51, 249, 39, NOT FS_DLGBORDER |
    7777            FS_BORDER | WS_VISIBLE | NOT WS_SAVEBITS
    7878    BEGIN
    79         CONTROL         "­Ë°h(~B)", IDPB_SKIPBACK, 19, 25, 20, 14, WC_BUTTON, 
    80                         BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_TABSTOP | 
     79        CONTROL         "­Ë°h(~B)", IDPB_SKIPBACK, 19, 25, 20, 14, WC_BUTTON,
     80                        BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_TABSTOP |
    8181                        WS_VISIBLE
    82         CONTROL         "°±€î(~S)", IDPB_STOP, 40, 25, 22, 14, WC_BUTTON, 
     82        CONTROL         "°±€î(~S)", IDPB_STOP, 40, 25, 22, 14, WC_BUTTON,
    8383                        BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE
    84         CONTROL         "ŒÈ°±(~P)", IDPB_PAUSE, 61, 25, 20, 14, WC_BUTTON,
    85                         BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE
    86         CONTROL         "Œœ©ñ(~L)", IDPB_PLAY, 79, 25, 20, 14, WC_BUTTON,
     84        CONTROL         "ŒÈ°±(~P)", IDPB_PAUSE, 61, 25, 20, 14, WC_BUTTON,
    8785                        BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE
    88         CONTROL         "€U€@­º(~N)", IDPB_SKIPFORWARD, 99, 25, 20, 14, WC_BUTTON,
     86        CONTROL         "Œœ©ñ(~L)", IDPB_PLAY, 79, 25, 20, 14, WC_BUTTON,
     87                        BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE
     88        CONTROL         "€U€@­º(~N)", IDPB_SKIPFORWARD, 99, 25, 20, 14, WC_BUTTON,
    8989                        BS_USERBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE
    9090        AUTOCHECKBOX    "­«ÂÐ(~R)", IDCB_REPEAT, 133, 13, 73, 10,WS_VISIBLE|BS_USERBUTTON | BS_AUTOCHECKBOX
     
    9393        CTEXT           "0:00", IDST_PLAYTIME, 133, 24, 102, 10, DT_VCENTER
    9494                        PRESPARAMS PP_FONTNAMESIZE, "10.Helv"
    95         CONTROL         "­µ¶qºb", IDSL_VOLUMEARM, 209, 5, 14, 14, 
     95        CONTROL         "­µ¶qºb", IDSL_VOLUMEARM, 209, 5, 14, 14,
    9696                        WC_BUTTON, BS_USERBUTTON | WS_TABSTOP|BS_USERBUTTON
    97         PUSHBUTTON      "­µ¶q", IDSL_VOLUME, 19, 4, 69, 14, 
     97        PUSHBUTTON      "­µ¶q", IDSL_VOLUME, 19, 4, 69, 14,
    9898                        BS_NOPOINTERFOCUS | NOT WS_TABSTOP | NOT WS_VISIBLE |BS_USERBUTTON
    9999    END
     
    106106DLGTEMPLATE IDDLG_ABOUT LOADONCALL MOVEABLE DISCARDABLE
    107107BEGIN
    108     DIALOG  "²£«~žê°T", IDDLG_ABOUT, 115, 69, 208, 132, 
     108    DIALOG  "²£«~žê°T", IDDLG_ABOUT, 115, 69, 208, 132,
    109109            WS_VISIBLE, FCF_TITLEBAR
    110110    BEGIN
    111111        GROUPBOX        "", IDGB_ABOUT, 3, 21, 200, 108
    112 ;        CTEXT           "Media-Folder V0.2.5", IDST_PRODNAME, 36, 107, 135,
    113         CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187,
     112        CTEXT           VER_STRING, IDST_PRODNAME, 10, 107, 187,
    114113                        12, DT_VCENTER | NOT WS_GROUP
    115         CTEXT           "(C) Chris Wohlgemuth 2002/2003", IDST_PRODCOPY, 10, 87,
     114        CTEXT           MFLDR_AUTHOR, IDST_PRODCOPY, 10, 87,
    116115                        186, 12, DT_VCENTER | NOT WS_GROUP
    117         CTEXT           "Graphics by Klaus Staedtler-Przyborski",
    118                         IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK |
     116        CTEXT           "Copyright (c) netlabs.org 2020",
     117                        IDST_PRODCOPY2, 10, 64, 186, 12, DT_VCENTER | NOT WS_GROUP
     118        CTEXT           "Graphics by Klaus Staedtler-Przyborski",
     119                        IDST_PRODGRAPHICS, 10, 64, 186, 17, DT_WORDBREAK |
    119120                        NOT WS_GROUP
    120         CTEXT           "http://www.geocities.com/SiliconValley/Sector/5785/"
    121                         "index.html", IDST_URL1, 10, 46, 186, 18,
    122                         DT_WORDBREAK | NOT WS_GROUP
     121        CTEXT           "https://trac.netlabs.org/cwmmclasses", IDST_URL1,
     122                        10, 30, 186, 18, DT_WORDBREAK | NOT WS_GROUP
    123123                        PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    124124        DEFPUSHBUTTON   "~Ok", DID_OK, 83, 3, 40, 14
    125         CTEXT           "http://www.os2world.com/cdwriting", IDST_URL2, 10,
    126                         30, 186, 16, DT_WORDBREAK
    127                         PRESPARAMS PP_FONTNAMESIZE, "8.Helv"
    128125    END
    129126END
Note: See TracChangeset for help on using the changeset viewer.