From 7ee194b35e799861515a59be236123d7601fab6d Mon Sep 17 00:00:00 2001
From: Pat Thoyts <patthoyts@users.sourceforge.net>
Date: Sat, 1 Mar 2003 00:53:14 +0000
Subject: [PATCH] Fixed the VC++ project file and added version info resource.

---
 win/winsend.dsp | 28 ++++++++--------------------
 win/winsend.rc  | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 20 deletions(-)
 create mode 100644 win/winsend.rc

diff --git a/win/winsend.dsp b/win/winsend.dsp
index 813ae75..5998431 100644
--- a/win/winsend.dsp
+++ b/win/winsend.dsp
@@ -43,7 +43,7 @@ RSC=rc.exe
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WINSEND_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WINSEND_EXPORTS" /D "USE_TCL_STUBS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /D "NDEBUG" /D "BUILD_winsend" /D "USE_TCL_STUBS" /D VERSION=\"0.6\" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WINSEND_EXPORTS" /YX /FD /c
 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
 # ADD BASE RSC /l 0x809 /d "NDEBUG"
@@ -53,7 +53,7 @@ BSC32=bscmake.exe
 # 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 /dll /machine:I386
-# ADD LINK32 tclstub84.lib 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 /dll /machine:I386 /out:"winsend05.dll"
+# ADD LINK32 tclstub84.lib 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 /dll /machine:I386 /out:"Release/winsend06.dll"
 
 !ELSEIF  "$(CFG)" == "winsend - Win32 Debug"
 
@@ -69,7 +69,7 @@ LINK32=link.exe
 # PROP Ignore_Export_Lib 0
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WINSEND_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WINSEND_EXPORTS" /D "USE_TCL_STUBS" /YX /FD /GZ /c
+# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "BUILD_winsend" /D "USE_TCL_STUBS" /D VERSION=\"0.6\" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WINSEND_EXPORTS" /YX /FD /GZ /c
 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
 # ADD BASE RSC /l 0x809 /d "_DEBUG"
@@ -79,7 +79,7 @@ BSC32=bscmake.exe
 # 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 /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 tclstub84.lib kernel32.lib user32.lib ole32.lib oleaut32.lib uuid.lib /nologo /dll /profile /debug /machine:I386 /out:"winsend05d.dll"
+# ADD LINK32 tclstub84.lib kernel32.lib user32.lib ole32.lib oleaut32.lib uuid.lib /nologo /dll /profile /debug /machine:I386 /out:"Debug/winsend06d.dll"
 
 !ENDIF 
 
@@ -100,10 +100,6 @@ SOURCE=.\winsend.c
 # End Source File
 # Begin Source File
 
-SOURCE=.\winsend.def
-# End Source File
-# Begin Source File
-
 SOURCE=.\WinSendCom.c
 # End Source File
 # End Group
@@ -122,26 +118,18 @@ SOURCE=.\WinSendCom.h
 # Begin Group "Resource Files"
 
 # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
 # Begin Source File
 
-SOURCE=.\LICENSE
-# End Source File
-# Begin Source File
-
-SOURCE=.\Readme
-# End Source File
-# Begin Source File
-
-SOURCE=.\test.vbs
+SOURCE=.\winsend.rc
 # End Source File
+# End Group
 # Begin Source File
 
-SOURCE=.\test2.vbs
+SOURCE=..\LICENSE
 # End Source File
 # Begin Source File
 
-SOURCE=.\winsend.man
+SOURCE=..\README
 # End Source File
 # End Target
 # End Project
diff --git a/win/winsend.rc b/win/winsend.rc
new file mode 100644
index 0000000..0d16f96
--- /dev/null
+++ b/win/winsend.rc
@@ -0,0 +1,39 @@
+// RCS: @(#) $Id$
+//
+// Version Resource Script
+//
+
+#include <winver.h>
+
+LANGUAGE 0x9, 0x1	/* LANG_ENGLISH, SUBLANG_DEFAULT */
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION    0,6,0,0
+ PRODUCTVERSION 0,6,0,0
+ FILEFLAGSMASK 	0x3fL
+#ifdef DEBUG
+ FILEFLAGS 	VS_FF_DEBUG
+#else
+ FILEFLAGS 	0x0L
+#endif
+ FILEOS 	VOS__WINDOWS32
+ FILETYPE 	VFT_DLL
+ FILESUBTYPE 	0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904b0" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Unicode CP */
+        BEGIN
+            VALUE "FileDescription", "Windows COM based send extension\0"
+            VALUE "OriginalFilename", "winsend06.dll\0"
+            VALUE "FileVersion", "0.6.0.0\0"
+            VALUE "LegalCopyright", "Copyright \251 2002 Pat Thoyts <patthoyts@users.sourceforge.net>\0"
+            VALUE "ProductName", "Winsend\0"
+            VALUE "ProductVersion", "0.6.0.0\0"
+        END		    
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+    END
+END
-- 
2.23.0