This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

BIN
thtest/EXEOBJ32/THREAD.RES Normal file

Binary file not shown.

80
thtest/FOO.CPP Normal file
View File

@@ -0,0 +1,80 @@
#include <stdio.h>
#include <thtest/foo.hpp>
Foo::Foo(void)
: mhDisplay(0), mCounter(0), mlpLedDisplay(0)
{
mThreadHandler.setCallback(this,&Foo::threadHandler);
mTimerHandler.setCallback(this,&Foo::timerHandler);
MessageThread::insertHandler(&mThreadHandler);
Window::insertHandler(VectorHandler::TimerHandler,&mTimerHandler);
}
Foo::~Foo()
{
stop();
destroyWindow();
MessageThread::removeHandler(&mThreadHandler);
}
DWORD Foo::threadHandler(ThreadMessage &someThreadMessage)
{
switch(someThreadMessage.message())
{
case ThreadMessage::TM_CREATE :
createWindow(GetModuleHandle(0),mWindowPoint);
break;
case ThreadMessage::TM_DESTROY :
destroyWindow();
break;
case ThreadMessage::TM_USER :
if(someThreadMessage.userDataOne()==FooStart)cycle();
break;
}
return FALSE;
}
void Foo::cycle(void)
{
ThreadMessage threadMessage(ThreadMessage::TM_USER,FooStart,0L);
if(!Window::isValid()||!mlpLedDisplay)return;
if(mCounter>999)mCounter=0;
mlpLedDisplay->setNumber(mCounter++);
mlpLedDisplay->paint();
update();
MessageThread::postMessage(threadMessage);
::Sleep(50);
}
void Foo::createWindow(HINSTANCE hInstance,const Point &windowPoint)
{
if(mhDisplay)return;
Window::createWindow("BUTTON","",WS_POPUP|WS_CAPTION,Rect(windowPoint.x(),windowPoint.y(),50,50),0,0,0);
show(SW_SHOW);
update();
mlpLedDisplay=new LedDisplay((HWND)(Window&)*this,Point(0,0));
// setTimer(0,25);
}
void Foo::destroyWindow(void)
{
if(mlpLedDisplay){delete mlpLedDisplay;mlpLedDisplay=0;}
// killTimer(1);
Window::destroy();
}
CallbackData::ReturnType Foo::timerHandler(CallbackData &someCallbackData)
{
// ThreadMessage threadMessage(ThreadMessage::TM_USER,FooStart,0L);
if(!Window::isValid()||!mlpLedDisplay)return 0;
if(mCounter>999)mCounter=0;
mlpLedDisplay->setNumber(mCounter++);
mlpLedDisplay->paint();
update();
// MessageThread::postMessage(threadMessage);
return 0;
}

43
thtest/FOO.HPP Normal file
View File

@@ -0,0 +1,43 @@
#ifndef _THREAD_FOO_HPP_
#define _THREAD_FOO_HPP_
#include <thread/mthread.hpp>
#include <thtest/led.hpp>
#include <common/window.hpp>
class Foo : public MessageThread, public Window
{
public:
enum{FooStart};
Foo(void);
virtual ~Foo();
WORD operator==(const Foo &someFoo)const;
void setPoint(const Point &windowPoint);
private:
void createWindow(HINSTANCE hInstance,const Point &windowPoint);
DWORD threadHandler(ThreadMessage &someThreadMessage);
void destroyWindow(void);
void cycle(void);
CallbackData::ReturnType timerHandler(CallbackData &someCallbackData);
Callback<Foo> mTimerHandler;
HWND mhDisplay;
WORD mCounter;
LedDisplay *mlpLedDisplay;
ThreadCallback<Foo> mThreadHandler;
Point mWindowPoint;
};
inline
WORD Foo::operator==(const Foo &/*someFoo*/)const
{
return FALSE;
}
inline
void Foo::setPoint(const Point &windowPoint)
{
mWindowPoint=windowPoint;
}
#endif

BIN
thtest/LED.BMP Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

78
thtest/LED.CPP Normal file
View File

@@ -0,0 +1,78 @@
#include <stdio.h>
#include <common/windows.hpp>
#include <thtest/led.hpp>
LedDisplay::LedDisplay(HWND hDisplayWindow,Point windowPoint)
: mWindowPoint(windowPoint), mhDisplayWindow(hDisplayWindow), mCurrentNumber(0),
mHasSpecialChar(TRUE), mCurrentSpecialChar(DashChar),
#if defined(__FLAT__)
mhFilm(::LoadBitmap((HINSTANCE)::GetWindowLong(hDisplayWindow,GWL_HINSTANCE),"LED"))
#else
mhFilm(::LoadBitmap((HINSTANCE)::GetWindowWord(hDisplayWindow,GWW_HINSTANCE),"LED"))
#endif
{
}
LedDisplay::~LedDisplay()
{
if(mhFilm){::DeleteObject(mhFilm);mhFilm=0;}
}
void LedDisplay::setNumber(SpecialChar specialChar)
{
mHasSpecialChar=TRUE;
mCurrentSpecialChar=specialChar;
paint();
}
void LedDisplay::setNumber(WORD someNumber)
{
mHasSpecialChar=FALSE;
mCurrentNumber=someNumber;
paint();
}
void LedDisplay::paint(void)
{
HBITMAP hOldBitmap;
HDC hDisplayDC;
HDC hMemDC;
WORD firstOffset;
WORD secondOffset;
WORD thirdOffset;
hDisplayDC=::GetDC(mhDisplayWindow);
hMemDC=::CreateCompatibleDC(hDisplayDC);
hOldBitmap=(HBITMAP)::SelectObject(hMemDC,mhFilm);
positions(firstOffset,secondOffset,thirdOffset);
::BitBlt(hDisplayDC,mWindowPoint.x(),mWindowPoint.y(),Width,Height,
hMemDC,0,firstOffset*Height,SRCCOPY);
::BitBlt(hDisplayDC,mWindowPoint.x()+Width,mWindowPoint.y(),Width,Height,
hMemDC,0,secondOffset*Height,SRCCOPY);
::BitBlt(hDisplayDC,mWindowPoint.x()+(Width*2),mWindowPoint.y(),Width,Height,
hMemDC,0,thirdOffset*Height,SRCCOPY);
::SelectObject(hMemDC,hOldBitmap);
::DeleteObject(hMemDC);
::ReleaseDC(mhDisplayWindow,hDisplayDC);
}
void LedDisplay::positions(WORD &firstOffset,WORD &secondOffset,WORD &thirdOffset)const
{
String numberString;
if(mHasSpecialChar)
{
if(BlankChar==mCurrentSpecialChar)
firstOffset=secondOffset=thirdOffset=OffsetBlankChar;
else
firstOffset=secondOffset=thirdOffset=OffsetDashChar;
}
else
{
::sprintf(numberString,"%03d",mCurrentNumber);
firstOffset=charPosition(*(numberString));
secondOffset=charPosition(*((LPSTR)numberString+1));
thirdOffset=charPosition(*((LPSTR)numberString+2));
}
}

40
thtest/LED.HPP Normal file
View File

@@ -0,0 +1,40 @@
#ifndef _LEDDISPLAY_HPP_
#define _LEDDISPLAY_HPP_
#include <common/string.hpp>
#include <common/point.hpp>
class LedDisplay
{
public:
enum SpecialChar{BlankChar,DashChar};
LedDisplay(HWND hDisplayWindow,Point windowPoint);
virtual ~LedDisplay();
void setNumber(WORD someNumber);
void setNumber(SpecialChar specialChar);
WORD getNumber(void)const;
void paint(void);
private:
enum {Width=13,Height=22,Frames=12};
enum {OffsetDashChar,OffsetBlankChar};
WORD charPosition(char someDisplayChar)const;
void positions(WORD &firstOffset,WORD &secondOffset,WORD &thirdOffset)const;
HBITMAP mhFilm;
WORD mCurrentNumber;
SpecialChar mCurrentSpecialChar;
WORD mHasSpecialChar;
Point mWindowPoint;
HWND mhDisplayWindow;
};
inline
WORD LedDisplay::charPosition(char someChar)const
{
return ((Frames-1)-((int)someChar-'0'));
}
inline
WORD LedDisplay::getNumber(void)const
{
return mCurrentNumber;
}
#endif

75
thtest/MAIN.CPP Normal file
View File

@@ -0,0 +1,75 @@
#include <common/console.hpp>
#include <common/string.hpp>
#include <common/pointer.hpp>
#include <common/pvector.hpp>
#include <common/profile.hpp>
#include <thread/mthread.hpp>
#include <thtest/foo.hpp>
void yieldTask(void);
void parseCommandLine(DWORD &itemCount,DWORD &timeToLive);
int PASCAL WinMain(HINSTANCE hInstance,HINSTANCE /*hPrevInstance*/,LPSTR /*lpszCmdLine*/,int /*nCmdShow*/)
{
PureVector<SmartPointer<Foo> > vectorFoo;
DWORD itemCount(25);
DWORD timeToLive(30000);
DWORD endTime(::GetTickCount());
Point windowPoint;
parseCommandLine(itemCount,timeToLive);
vectorFoo.size(itemCount);
for(int itemIndex=0;itemIndex<itemCount;itemIndex++)
{
vectorFoo[itemIndex]=new Foo;
vectorFoo[itemIndex].disposition(PointerDisposition::Delete);
(vectorFoo[itemIndex])->setPoint(windowPoint);
ThreadMessage userMessage(ThreadMessage::TM_USER,Foo::FooStart,0);
((MessageThread*)(vectorFoo[itemIndex]))->postMessage(userMessage);
windowPoint.x(windowPoint.x()+50);
if(windowPoint.x()>760)
{
windowPoint.x(0);
windowPoint.y(windowPoint.y()+50);
}
}
while(endTime+timeToLive>::GetTickCount())yieldTask();
#if 0
for(itemIndex=0;itemIndex<itemCount;itemIndex++)
{
ThreadMessage userMessage(ThreadMessage::TM_USER,Foo::FooStart,0);
(vectorFoo[itemIndex])->suspend();
// ::Sleep(50);
}
#endif
return FALSE;
}
void yieldTask(void)
{
MSG msg;
while(::PeekMessage((MSG far *)&msg,0,0,0,PM_REMOVE))
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
::Sleep(50);
}
}
void parseCommandLine(DWORD &itemCount,DWORD &timeToLive)
{
Profile thProfile("THREADS.INI","UNSET");
String strTimeToLive;
String strThreads;
thProfile.readProfileString(String("THREADS"),String("COUNT"),strThreads);
::OutputDebugString(strThreads+String("\n"));
thProfile.readProfileString(String("THREADS"),String("TIMETOLIVE"),strTimeToLive);
::OutputDebugString(strTimeToLive+String("\n"));
if(!(String("UNSET")==strThreads))itemCount=::atoi((LPSTR)strThreads);
if(!(String("UNSET")==strTimeToLive))timeToLive=::atoi((LPSTR)strTimeToLive);
}

20
thtest/STDTMPL.CPP Normal file
View File

@@ -0,0 +1,20 @@
#ifndef _MSC_VER
#define _EXPAND_BLOCK_TEMPLATES_
#include <common/block.hpp>
#include <common/block.tpp>
#include <common/pvector.hpp>
#include <common/pvector.tpp>
#include <common/pointer.hpp>
#include <common/pointer.tpp>
#include <common/string.hpp>
#include <thread/thmsg.hpp>
#include <thread/tcallbck.hpp>
#include <thread/tcallbck.tpp>
#include <thtest/foo.hpp>
class FTPData;
typedef ThreadCallback<Foo> a;
typedef PureVector<SmartPointer<Foo> > b;
typedef ThreadCallback<FTPData> c;
#endif

BIN
thtest/TDCONFIG.TDW Normal file

Binary file not shown.

BIN
thtest/TDW.TRW Normal file

Binary file not shown.

57
thtest/THLNCH.CPP Normal file
View File

@@ -0,0 +1,57 @@
#include <stdio.h>
#include <thtest/thlnch.hpp>
template <class T>
ThreadLaunch<T>::ThreadLaunch(void)
: mThreadHandler(this,&ThreadLaunch::threadHandler), mhDisplay(0)
{
insertHandler(&mThreadHandler);
}
template <class T>
ThreadLaunch<T>::~ThreadLaunch()
{
stop();
destroyWindow();
removeHandler(&mThreadHandler);
}
template <class T>
DWORD ThreadLaunch<T>::threadHandler(ThreadMessage &someThreadMessage)
{
switch(someThreadMessage.message())
{
case ThreadMessage::TM_CREATE :
break;
case ThreadMessage::TM_DESTROY :
break;
case ThreadMessage::TM_USER :
if(someThreadMessage.userDataOne()==ThreadStart)cycle();
break;
}
return FALSE;
}
template <class T>
void ThreadLaunch<T>::cycle(void)
{
ThreadMessage threadMessage(ThreadMessage::TM_USER,ThreadStart,0L);
if(!mhDisplay)return;
postMessage(threadMessage);
}
template <class T>
void ThreadLaunch<T>::createWindow(HINSTANCE hInstance,const Point &windowPoint)
{
if(mhDisplay)return;
mhDisplay=::CreateWindow("BUTTON","",WS_POPUP|WS_CAPTION,windowPoint.x(),windowPoint.y(),50,50,0,(HMENU)0,hInstance,0);
::ShowWindow(mhDisplay,SW_SHOW);
::UpdateWindow(mhDisplay);
}
template <class T>
void ThreadLaunch<T>::destroyWindow(void)
{
if(mhDisplay){::DestroyWindow(mhDisplay);mhDisplay=0;}
}

30
thtest/THLNCH.HPP Normal file
View File

@@ -0,0 +1,30 @@
#ifndef _THTEST_THLAUNCH_HPP_
#define _THTEST_THLAUNCH_HPP_
#include <thread/mthread.hpp>
template <class T>
class ThreadLaunch : public MessageThread
{
public:
enum{ThreadStart};
ThreadLaunch(void);
virtual ~ThreadLaunch();
WORD operator==(const ThreadLaunch &someThreadLaunch)const;
void createWindow(HINSTANCE hInstance,const Point &windowPoint);
private:
DWORD threadHandler(ThreadMessage &someThreadMessage);
void destroyWindow(void);
void cycle(void);
HWND mhDisplay;
WORD mCounter;
ThreadCallback<ThreadLaunch> mThreadHandler;
};
inline
WORD ThreadLaunch::operator==(const ThreadLaunch &/*someFoo*/)const
{
return FALSE;
}
#endif

BIN
thtest/THREAD.DSW Normal file

Binary file not shown.

BIN
thtest/THREAD.IDE Normal file

Binary file not shown.

3
thtest/THREAD.RC Normal file
View File

@@ -0,0 +1,3 @@
LED BITMAP LED.BMP

387
thtest/THTEST.BAK Normal file
View File

@@ -0,0 +1,387 @@
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
!IF "$(CFG)" == ""
CFG=thtest - Win32 Debug
!MESSAGE No configuration specified. Defaulting to thtest - Win32 Debug.
!ENDIF
!IF "$(CFG)" != "thtest - Win32 Release" && "$(CFG)" != "thtest - Win32 Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE on this makefile
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "Thtest.mak" CFG="thtest - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "thtest - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "thtest - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
################################################################################
# Begin Project
# PROP Target_Last_Scanned "thtest - Win32 Debug"
MTL=mktyplib.exe
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "thtest - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
OUTDIR=.\Release
INTDIR=.\Release
ALL : "$(OUTDIR)\Thtest.exe"
CLEAN :
-@erase "$(INTDIR)\Foo.obj"
-@erase "$(INTDIR)\Led.obj"
-@erase "$(INTDIR)\Main.obj"
-@erase "$(INTDIR)\Stdtmpl.obj"
-@erase "$(INTDIR)\Thread.res"
-@erase "$(OUTDIR)\Thtest.exe"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS"\
/Fp"$(INTDIR)/Thtest.pch" /YX /Fo"$(INTDIR)/" /c
CPP_OBJS=.\Release/
CPP_SBRS=.\.
# ADD BASE MTL /nologo /D "NDEBUG" /win32
# ADD MTL /nologo /D "NDEBUG" /win32
MTL_PROJ=/nologo /D "NDEBUG" /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
RSC_PROJ=/l 0x409 /fo"$(INTDIR)/Thread.res" /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Thtest.bsc"
BSC32_SBRS= \
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
odbccp32.lib /nologo /subsystem:windows /incremental:no\
/pdb:"$(OUTDIR)/Thtest.pdb" /machine:I386 /out:"$(OUTDIR)/Thtest.exe"
LINK32_OBJS= \
"$(INTDIR)\Foo.obj" \
"$(INTDIR)\Led.obj" \
"$(INTDIR)\Main.obj" \
"$(INTDIR)\Stdtmpl.obj" \
"$(INTDIR)\Thread.res" \
"..\Exe\mscommon.lib" \
"..\Exe\msthread.lib"
"$(OUTDIR)\Thtest.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "msvcobj"
# PROP Intermediate_Dir "msvcobj"
# PROP Target_Dir ""
OUTDIR=.\msvcobj
INTDIR=.\msvcobj
ALL : "$(OUTDIR)\Thtest.exe"
CLEAN :
-@erase "$(INTDIR)\Foo.obj"
-@erase "$(INTDIR)\Led.obj"
-@erase "$(INTDIR)\Main.obj"
-@erase "$(INTDIR)\Stdtmpl.obj"
-@erase "$(INTDIR)\Thread.res"
-@erase "$(INTDIR)\vc40.idb"
-@erase "$(INTDIR)\vc40.pdb"
-@erase "$(OUTDIR)\Thtest.exe"
-@erase "$(OUTDIR)\Thtest.ilk"
-@erase "$(OUTDIR)\Thtest.pdb"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /Zp1 /MTd /Gm /Gi /Zi /O2 /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /YX /c
CPP_PROJ=/nologo /Zp1 /MTd /Gm /Gi /Zi /O2 /D "WIN32" /D "_DEBUG" /D "_WINDOWS"\
/D "__FLAT__" /D "STRICT" /Fp"$(INTDIR)/Thtest.pch" /YX /Fo"$(INTDIR)/"\
/Fd"$(INTDIR)/" /c
CPP_OBJS=.\msvcobj/
CPP_SBRS=.\.
# ADD BASE MTL /nologo /D "_DEBUG" /win32
# ADD MTL /nologo /D "_DEBUG" /win32
MTL_PROJ=/nologo /D "_DEBUG" /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
RSC_PROJ=/l 0x409 /fo"$(INTDIR)/Thread.res" /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Thtest.bsc"
BSC32_SBRS= \
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386
# SUBTRACT LINK32 /pdb:none
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:yes\
/pdb:"$(OUTDIR)/Thtest.pdb" /debug /machine:I386 /out:"$(OUTDIR)/Thtest.exe"
LINK32_OBJS= \
"$(INTDIR)\Foo.obj" \
"$(INTDIR)\Led.obj" \
"$(INTDIR)\Main.obj" \
"$(INTDIR)\Stdtmpl.obj" \
"$(INTDIR)\Thread.res" \
"..\Exe\mscommon.lib" \
"..\Exe\msthread.lib"
"$(OUTDIR)\Thtest.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ENDIF
.c{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.cpp{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.cxx{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.c{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
.cpp{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
.cxx{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
################################################################################
# Begin Target
# Name "thtest - Win32 Release"
# Name "thtest - Win32 Debug"
!IF "$(CFG)" == "thtest - Win32 Release"
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
!ENDIF
################################################################################
# Begin Source File
SOURCE=.\Thread.rc
DEP_RSC_THREA=\
".\LED.BMP"\
"$(INTDIR)\Thread.res" : $(SOURCE) $(DEP_RSC_THREA) "$(INTDIR)"
$(RSC) $(RSC_PROJ) $(SOURCE)
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Led.cpp
DEP_CPP_LED_C=\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
"$(INTDIR)\Led.obj" : $(SOURCE) $(DEP_CPP_LED_C) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Main.cpp
DEP_CPP_MAIN_=\
{$(INCLUDE)}"\.\Foo.hpp"\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\assert.hpp"\
{$(INCLUDE)}"\common\block.hpp"\
{$(INCLUDE)}"\common\block.tpp"\
{$(INCLUDE)}"\Common\Console.hpp"\
{$(INCLUDE)}"\Common\Coord.hpp"\
{$(INCLUDE)}"\Common\Filetime.hpp"\
{$(INCLUDE)}"\Common\Fixup.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\Common\Pointer.hpp"\
{$(INCLUDE)}"\Common\Pvector.hpp"\
{$(INCLUDE)}"\Common\Pvector.tpp"\
{$(INCLUDE)}"\Common\Scrnbuff.hpp"\
{$(INCLUDE)}"\Common\Smrect.hpp"\
{$(INCLUDE)}"\Common\Stdio.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\Common\Systime.hpp"\
{$(INCLUDE)}"\Common\Types.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
{$(INCLUDE)}"\Common\Winnt.hpp"\
{$(INCLUDE)}"\Thread\Context.hpp"\
{$(INCLUDE)}"\Thread\Event.hpp"\
{$(INCLUDE)}"\Thread\Msgqueue.hpp"\
{$(INCLUDE)}"\Thread\Mthread.hpp"\
{$(INCLUDE)}"\Thread\Mutex.hpp"\
{$(INCLUDE)}"\Thread\Ptcllbck.hpp"\
{$(INCLUDE)}"\Thread\Qthread.hpp"\
{$(INCLUDE)}"\Thread\Savearea.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.tpp"\
{$(INCLUDE)}"\Thread\Thmsg.hpp"\
{$(INCLUDE)}"\Thread\Thread.hpp"\
"$(INTDIR)\Main.obj" : $(SOURCE) $(DEP_CPP_MAIN_) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Stdtmpl.cpp
DEP_CPP_STDTM=\
{$(INCLUDE)}"\.\Foo.hpp"\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\assert.hpp"\
{$(INCLUDE)}"\common\block.hpp"\
{$(INCLUDE)}"\common\block.tpp"\
{$(INCLUDE)}"\Common\Filetime.hpp"\
{$(INCLUDE)}"\Common\Fixup.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\Common\Pointer.hpp"\
{$(INCLUDE)}"\Common\Pointer.tpp"\
{$(INCLUDE)}"\Common\Pvector.hpp"\
{$(INCLUDE)}"\Common\Pvector.tpp"\
{$(INCLUDE)}"\Common\Stdio.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\Common\Systime.hpp"\
{$(INCLUDE)}"\Common\Types.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
{$(INCLUDE)}"\Common\Winnt.hpp"\
{$(INCLUDE)}"\Thread\Context.hpp"\
{$(INCLUDE)}"\Thread\Event.hpp"\
{$(INCLUDE)}"\Thread\Msgqueue.hpp"\
{$(INCLUDE)}"\Thread\Mthread.hpp"\
{$(INCLUDE)}"\Thread\Mutex.hpp"\
{$(INCLUDE)}"\Thread\Ptcllbck.hpp"\
{$(INCLUDE)}"\Thread\Qthread.hpp"\
{$(INCLUDE)}"\Thread\Savearea.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.tpp"\
{$(INCLUDE)}"\Thread\Thmsg.hpp"\
{$(INCLUDE)}"\Thread\Thread.hpp"\
"$(INTDIR)\Stdtmpl.obj" : $(SOURCE) $(DEP_CPP_STDTM) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Foo.cpp
DEP_CPP_FOO_C=\
{$(INCLUDE)}"\.\Foo.hpp"\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\assert.hpp"\
{$(INCLUDE)}"\common\block.hpp"\
{$(INCLUDE)}"\common\block.tpp"\
{$(INCLUDE)}"\Common\Filetime.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\Common\Stdio.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\Common\Systime.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
{$(INCLUDE)}"\Common\Winnt.hpp"\
{$(INCLUDE)}"\Thread\Context.hpp"\
{$(INCLUDE)}"\Thread\Event.hpp"\
{$(INCLUDE)}"\Thread\Msgqueue.hpp"\
{$(INCLUDE)}"\Thread\Mthread.hpp"\
{$(INCLUDE)}"\Thread\Mutex.hpp"\
{$(INCLUDE)}"\Thread\Ptcllbck.hpp"\
{$(INCLUDE)}"\Thread\Qthread.hpp"\
{$(INCLUDE)}"\Thread\Savearea.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.tpp"\
{$(INCLUDE)}"\Thread\Thmsg.hpp"\
{$(INCLUDE)}"\Thread\Thread.hpp"\
"$(INTDIR)\Foo.obj" : $(SOURCE) $(DEP_CPP_FOO_C) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=\Work\Exe\mscommon.lib
!IF "$(CFG)" == "thtest - Win32 Release"
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
!ENDIF
# End Source File
################################################################################
# Begin Source File
SOURCE=\Work\Exe\msthread.lib
!IF "$(CFG)" == "thtest - Win32 Release"
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
!ENDIF
# End Source File
# End Target
# End Project
################################################################################

141
thtest/THTEST.DSP Normal file
View File

@@ -0,0 +1,141 @@
# Microsoft Developer Studio Project File - Name="thtest" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=thtest - Win32 Release
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "Thtest.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "Thtest.mak" CFG="thtest - Win32 Release"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "thtest - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "thtest - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "thtest - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir ".\Release"
# PROP BASE Intermediate_Dir ".\Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ".\Release"
# PROP Intermediate_Dir ".\Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir ".\Debug"
# PROP BASE Intermediate_Dir ".\Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir ".\msvcobj"
# PROP Intermediate_Dir ".\msvcobj"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /Zp1 /MTd /Gm /Gi /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /YX /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386
# SUBTRACT LINK32 /pdb:none
!ENDIF
# Begin Target
# Name "thtest - Win32 Release"
# Name "thtest - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
# Begin Source File
SOURCE=.\Foo.cpp
# End Source File
# Begin Source File
SOURCE=.\Led.cpp
# End Source File
# Begin Source File
SOURCE=.\Main.cpp
# End Source File
# Begin Source File
SOURCE=..\Exe\mscommon.lib
# End Source File
# Begin Source File
SOURCE=..\Exe\msthread.lib
# End Source File
# Begin Source File
SOURCE=.\Stdtmpl.cpp
# End Source File
# Begin Source File
SOURCE=.\Thread.rc
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
# Begin Source File
SOURCE=.\Foo.hpp
# End Source File
# Begin Source File
SOURCE=.\led.hpp
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=.\LED.BMP
# End Source File
# End Group
# End Target
# End Project

29
thtest/THTEST.DSW Normal file
View File

@@ -0,0 +1,29 @@
Microsoft Developer Studio Workspace File, Format Version 5.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "thtest"=.\Thtest.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################

387
thtest/THTEST.MAK Normal file
View File

@@ -0,0 +1,387 @@
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.20
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
!IF "$(CFG)" == ""
CFG=thtest - Win32 Debug
!MESSAGE No configuration specified. Defaulting to thtest - Win32 Debug.
!ENDIF
!IF "$(CFG)" != "thtest - Win32 Release" && "$(CFG)" != "thtest - Win32 Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE on this makefile
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "Thtest.mak" CFG="thtest - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "thtest - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "thtest - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
################################################################################
# Begin Project
# PROP Target_Last_Scanned "thtest - Win32 Debug"
MTL=mktyplib.exe
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "thtest - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
OUTDIR=.\Release
INTDIR=.\Release
ALL : "$(OUTDIR)\Thtest.exe"
CLEAN :
-@erase "$(INTDIR)\Foo.obj"
-@erase "$(INTDIR)\Led.obj"
-@erase "$(INTDIR)\Main.obj"
-@erase "$(INTDIR)\Stdtmpl.obj"
-@erase "$(INTDIR)\Thread.res"
-@erase "$(OUTDIR)\Thtest.exe"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS"\
/Fp"$(INTDIR)/Thtest.pch" /YX /Fo"$(INTDIR)/" /c
CPP_OBJS=.\Release/
CPP_SBRS=.\.
# ADD BASE MTL /nologo /D "NDEBUG" /win32
# ADD MTL /nologo /D "NDEBUG" /win32
MTL_PROJ=/nologo /D "NDEBUG" /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
RSC_PROJ=/l 0x409 /fo"$(INTDIR)/Thread.res" /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Thtest.bsc"
BSC32_SBRS= \
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
odbccp32.lib /nologo /subsystem:windows /incremental:no\
/pdb:"$(OUTDIR)/Thtest.pdb" /machine:I386 /out:"$(OUTDIR)/Thtest.exe"
LINK32_OBJS= \
"$(INTDIR)\Foo.obj" \
"$(INTDIR)\Led.obj" \
"$(INTDIR)\Main.obj" \
"$(INTDIR)\Stdtmpl.obj" \
"$(INTDIR)\Thread.res" \
"..\Exe\mscommon.lib" \
"..\Exe\msthread.lib"
"$(OUTDIR)\Thtest.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "msvcobj"
# PROP Intermediate_Dir "msvcobj"
# PROP Target_Dir ""
OUTDIR=.\msvcobj
INTDIR=.\msvcobj
ALL : "$(OUTDIR)\Thtest.exe"
CLEAN :
-@erase "$(INTDIR)\Foo.obj"
-@erase "$(INTDIR)\Led.obj"
-@erase "$(INTDIR)\Main.obj"
-@erase "$(INTDIR)\Stdtmpl.obj"
-@erase "$(INTDIR)\Thread.res"
-@erase "$(INTDIR)\vc40.idb"
-@erase "$(INTDIR)\vc40.pdb"
-@erase "$(OUTDIR)\Thtest.exe"
-@erase "$(OUTDIR)\Thtest.ilk"
-@erase "$(OUTDIR)\Thtest.pdb"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /Zp1 /MTd /Gm /Gi /Zi /O2 /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /YX /c
CPP_PROJ=/nologo /Zp1 /MTd /Gm /Gi /Zi /O2 /D "WIN32" /D "_DEBUG" /D "_WINDOWS"\
/D "__FLAT__" /D "STRICT" /Fp"$(INTDIR)/Thtest.pch" /YX /Fo"$(INTDIR)/"\
/Fd"$(INTDIR)/" /c
CPP_OBJS=.\msvcobj/
CPP_SBRS=.\.
# ADD BASE MTL /nologo /D "_DEBUG" /win32
# ADD MTL /nologo /D "_DEBUG" /win32
MTL_PROJ=/nologo /D "_DEBUG" /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
RSC_PROJ=/l 0x409 /fo"$(INTDIR)/Thread.res" /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
BSC32_FLAGS=/nologo /o"$(OUTDIR)/Thtest.bsc"
BSC32_SBRS= \
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386
# SUBTRACT LINK32 /pdb:none
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:yes\
/pdb:"$(OUTDIR)/Thtest.pdb" /debug /machine:I386 /out:"$(OUTDIR)/Thtest.exe"
LINK32_OBJS= \
"$(INTDIR)\Foo.obj" \
"$(INTDIR)\Led.obj" \
"$(INTDIR)\Main.obj" \
"$(INTDIR)\Stdtmpl.obj" \
"$(INTDIR)\Thread.res" \
"..\Exe\mscommon.lib" \
"..\Exe\msthread.lib"
"$(OUTDIR)\Thtest.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS)
<<
!ENDIF
.c{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.cpp{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.cxx{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $<
.c{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
.cpp{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
.cxx{$(CPP_SBRS)}.sbr:
$(CPP) $(CPP_PROJ) $<
################################################################################
# Begin Target
# Name "thtest - Win32 Release"
# Name "thtest - Win32 Debug"
!IF "$(CFG)" == "thtest - Win32 Release"
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
!ENDIF
################################################################################
# Begin Source File
SOURCE=.\Thread.rc
DEP_RSC_THREA=\
".\LED.BMP"\
"$(INTDIR)\Thread.res" : $(SOURCE) $(DEP_RSC_THREA) "$(INTDIR)"
$(RSC) $(RSC_PROJ) $(SOURCE)
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Led.cpp
DEP_CPP_LED_C=\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
"$(INTDIR)\Led.obj" : $(SOURCE) $(DEP_CPP_LED_C) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Main.cpp
DEP_CPP_MAIN_=\
{$(INCLUDE)}"\.\Foo.hpp"\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\assert.hpp"\
{$(INCLUDE)}"\common\block.hpp"\
{$(INCLUDE)}"\common\block.tpp"\
{$(INCLUDE)}"\Common\Console.hpp"\
{$(INCLUDE)}"\Common\Coord.hpp"\
{$(INCLUDE)}"\Common\Filetime.hpp"\
{$(INCLUDE)}"\Common\Fixup.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\Common\Pointer.hpp"\
{$(INCLUDE)}"\Common\Pvector.hpp"\
{$(INCLUDE)}"\Common\Pvector.tpp"\
{$(INCLUDE)}"\Common\Scrnbuff.hpp"\
{$(INCLUDE)}"\Common\Smrect.hpp"\
{$(INCLUDE)}"\Common\Stdio.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\Common\Systime.hpp"\
{$(INCLUDE)}"\Common\Types.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
{$(INCLUDE)}"\Common\Winnt.hpp"\
{$(INCLUDE)}"\Thread\Context.hpp"\
{$(INCLUDE)}"\Thread\Event.hpp"\
{$(INCLUDE)}"\Thread\Msgqueue.hpp"\
{$(INCLUDE)}"\Thread\Mthread.hpp"\
{$(INCLUDE)}"\Thread\Mutex.hpp"\
{$(INCLUDE)}"\Thread\Ptcllbck.hpp"\
{$(INCLUDE)}"\Thread\Qthread.hpp"\
{$(INCLUDE)}"\Thread\Savearea.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.tpp"\
{$(INCLUDE)}"\Thread\Thmsg.hpp"\
{$(INCLUDE)}"\Thread\Thread.hpp"\
"$(INTDIR)\Main.obj" : $(SOURCE) $(DEP_CPP_MAIN_) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Stdtmpl.cpp
DEP_CPP_STDTM=\
{$(INCLUDE)}"\.\Foo.hpp"\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\assert.hpp"\
{$(INCLUDE)}"\common\block.hpp"\
{$(INCLUDE)}"\common\block.tpp"\
{$(INCLUDE)}"\Common\Filetime.hpp"\
{$(INCLUDE)}"\Common\Fixup.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\Common\Pointer.hpp"\
{$(INCLUDE)}"\Common\Pointer.tpp"\
{$(INCLUDE)}"\Common\Pvector.hpp"\
{$(INCLUDE)}"\Common\Pvector.tpp"\
{$(INCLUDE)}"\Common\Stdio.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\Common\Systime.hpp"\
{$(INCLUDE)}"\Common\Types.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
{$(INCLUDE)}"\Common\Winnt.hpp"\
{$(INCLUDE)}"\Thread\Context.hpp"\
{$(INCLUDE)}"\Thread\Event.hpp"\
{$(INCLUDE)}"\Thread\Msgqueue.hpp"\
{$(INCLUDE)}"\Thread\Mthread.hpp"\
{$(INCLUDE)}"\Thread\Mutex.hpp"\
{$(INCLUDE)}"\Thread\Ptcllbck.hpp"\
{$(INCLUDE)}"\Thread\Qthread.hpp"\
{$(INCLUDE)}"\Thread\Savearea.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.tpp"\
{$(INCLUDE)}"\Thread\Thmsg.hpp"\
{$(INCLUDE)}"\Thread\Thread.hpp"\
"$(INTDIR)\Stdtmpl.obj" : $(SOURCE) $(DEP_CPP_STDTM) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=.\Foo.cpp
DEP_CPP_FOO_C=\
{$(INCLUDE)}"\.\Foo.hpp"\
{$(INCLUDE)}"\.\led.hpp"\
{$(INCLUDE)}"\common\assert.hpp"\
{$(INCLUDE)}"\common\block.hpp"\
{$(INCLUDE)}"\common\block.tpp"\
{$(INCLUDE)}"\Common\Filetime.hpp"\
{$(INCLUDE)}"\common\point.hpp"\
{$(INCLUDE)}"\Common\Stdio.hpp"\
{$(INCLUDE)}"\common\stdlib.hpp"\
{$(INCLUDE)}"\common\string.hpp"\
{$(INCLUDE)}"\Common\Systime.hpp"\
{$(INCLUDE)}"\common\windows.hpp"\
{$(INCLUDE)}"\Common\Winnt.hpp"\
{$(INCLUDE)}"\Thread\Context.hpp"\
{$(INCLUDE)}"\Thread\Event.hpp"\
{$(INCLUDE)}"\Thread\Msgqueue.hpp"\
{$(INCLUDE)}"\Thread\Mthread.hpp"\
{$(INCLUDE)}"\Thread\Mutex.hpp"\
{$(INCLUDE)}"\Thread\Ptcllbck.hpp"\
{$(INCLUDE)}"\Thread\Qthread.hpp"\
{$(INCLUDE)}"\Thread\Savearea.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.hpp"\
{$(INCLUDE)}"\Thread\Tcallbck.tpp"\
{$(INCLUDE)}"\Thread\Thmsg.hpp"\
{$(INCLUDE)}"\Thread\Thread.hpp"\
"$(INTDIR)\Foo.obj" : $(SOURCE) $(DEP_CPP_FOO_C) "$(INTDIR)"
# End Source File
################################################################################
# Begin Source File
SOURCE=\Work\Exe\mscommon.lib
!IF "$(CFG)" == "thtest - Win32 Release"
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
!ENDIF
# End Source File
################################################################################
# Begin Source File
SOURCE=\Work\Exe\msthread.lib
!IF "$(CFG)" == "thtest - Win32 Release"
!ELSEIF "$(CFG)" == "thtest - Win32 Debug"
!ENDIF
# End Source File
# End Target
# End Project
################################################################################

BIN
thtest/THTEST.MDP Normal file

Binary file not shown.

35
thtest/THTEST.PLG Normal file
View File

@@ -0,0 +1,35 @@
--------------------Configuration: thtest - Win32 Debug--------------------
Begining build with project "C:\WORK\THTEST\Thtest.dsp", at root.
Active configuration is Win32 (x86) Application (based on Win32 (x86) Application)
Project's tools are:
"32-bit C/C++ Compiler for 80x86" with flags "/nologo /Zp1 /MTd /Gm /Gi /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /Fp".\msvcobj/Thtest.pch" /YX /Fo".\msvcobj/" /Fd".\msvcobj/" /FD /c "
"OLE Type Library Maker" with flags "/nologo /D "_DEBUG" /mktyplib203 /win32 "
"Win32 Resource Compiler" with flags "/l 0x409 /fo".\msvcobj/Thread.res" /d "_DEBUG" "
"Browser Database Maker" with flags "/nologo /o".\msvcobj/Thtest.bsc" "
"COFF Linker for 80x86" with flags "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:yes /pdb:".\msvcobj/Thtest.pdb" /debug /machine:I386 /out:".\msvcobj/Thtest.exe" "
"Custom Build" with flags ""
"<Component 0xa>" with flags ""
Creating temp file "D:\TEMP\RSP163.tmp" with contents </nologo /Zp1 /MTd /Gm /Gi /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__FLAT__" /D "STRICT" /Fp".\msvcobj/Thtest.pch" /YX /Fo".\msvcobj/" /Fd".\msvcobj/" /FD /c
"C:\WORK\THTEST\Foo.cpp"
>
Creating command line "cl.exe @D:\TEMP\RSP163.tmp"
Creating temp file "D:\TEMP\RSP164.tmp" with contents <kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:yes /pdb:".\msvcobj/Thtest.pdb" /debug /machine:I386 /out:".\msvcobj/Thtest.exe"
.\msvcobj\Foo.obj
.\msvcobj\Led.obj
.\msvcobj\Main.obj
.\msvcobj\Stdtmpl.obj
.\msvcobj\Thread.res
..\Exe\mscommon.lib
..\Exe\msthread.lib>
Creating command line "link.exe @D:\TEMP\RSP164.tmp"
Compiling...
Foo.cpp
Linking...
LINK : fatal error LNK1168: cannot open .\msvcobj/Thtest.exe for writing
Error executing link.exe.
Thtest.exe - 1 error(s), 0 warning(s)