home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / SAMPLES / MAKEAPP / MAKEWC.BA_ / MAKEWC.BA
Encoding:
Text File  |  1993-02-08  |  1.0 KB  |  50 lines

  1. @echo off
  2. set _dstdir=%1
  3. set _file=%2
  4. set _class=%3
  5. set _type=%4
  6. set _ptr=%5
  7. set _prefix=%6
  8. set _app=%7
  9.  
  10. if "%_dstdir%"=="" goto help
  11. if "%_file%"=="" goto help
  12. if "%_class%"=="" goto help
  13. if "%_type%"=="" goto help
  14. if "%_ptr"=="" goto help
  15. if "%_prefix%"=="" goto help
  16. if "%_app%"=="" goto help
  17. if not exist .\client.h goto help
  18. goto gotparms
  19. :help
  20. echo.
  21. echo MAKEWC - Generic Window class source generator
  22. echo.
  23. echo Usage:   makewc destdir filename ClassName TYPENAME ptrtype AppPrefix_ appname
  24. echo.
  25. echo Example: makewc c:\myapp mywnd MyWnd MYWND pmywnd MyApp_ myapp
  26. echo.
  27. echo Must be run from MAKEAPP directory.
  28. echo.
  29. goto exit
  30.  
  31. :gotparms
  32. echo.
  33. echo Creating %_class% window class in %_dstdir%\%_file%.c...
  34.  
  35. call makewc2 makewc.c %_dstdir%\%_file%.c %_class% %_type% %_prefix% %_app% %_ptr%
  36. call makewc2 makewc.h %_dstdir%\%_file%.h %_class% %_type% %_prefix% %_app% %_ptr%
  37. echo.
  38. echo Done!
  39. echo.
  40. cd %_dstdir%
  41.  
  42. :exit
  43. set _dstdir=
  44. set _file=
  45. set _class=
  46. set _type=
  47. set _ptr=
  48. set _prefix=
  49. set _app=
  50.