From: <lab...@us...> - 2016-09-20 21:14:23
|
Revision: 1541 http://sourceforge.net/p/opengtoolkit/svn/1541 Author: labviewer Date: 2016-09-20 21:14:21 +0000 (Tue, 20 Sep 2016) Log Message: ----------- cleanup project Modified Paths: -------------- trunk/lvpipe/c_source/pipes.dsw trunk/lvpipe/c_source/pipes.sln trunk/lvpipe/c_source/pipes.vcproj Added Paths: ----------- trunk/lvpipe/c_source/client.c trunk/lvpipe/c_source/client.dsp trunk/lvpipe/c_source/client.vcproj trunk/lvpipe/c_source/server.c trunk/lvpipe/c_source/server.vcproj Removed Paths: ------------- trunk/lvpipe/c_source/client/ trunk/lvpipe/c_source/pipes.ncb trunk/lvpipe/c_source/pipes.suo trunk/lvpipe/c_source/pipes.vcproj.KANTOOR1.rkalbermatter.user trunk/lvpipe/c_source/server/ Property Changed: ---------------- trunk/lvpipe/c_source/ Index: trunk/lvpipe/c_source =================================================================== --- trunk/lvpipe/c_source 2016-09-20 20:53:05 UTC (rev 1540) +++ trunk/lvpipe/c_source 2016-09-20 21:14:21 UTC (rev 1541) Property changes on: trunk/lvpipe/c_source ___________________________________________________________________ Added: svn:ignore ## -0,0 +1,3 ## +*.ncb +*.suo +*.user Added: trunk/lvpipe/c_source/client.c =================================================================== --- trunk/lvpipe/c_source/client.c (rev 0) +++ trunk/lvpipe/c_source/client.c 2016-09-20 21:14:21 UTC (rev 1541) @@ -0,0 +1,86 @@ +#include "extcode.h" +#include "hosttype.h" +#include <stdio.h> + +#if defined(DEBUG) + #if Win32 + #if defined(_CVI_DEBUG_) + #define DoDebugger() + #elif _MSC_VER >= 1400 + #define DoDebugger() __debugbreak() + #else + #define DoDebugger() {__asm int 3} + #endif + #elif MacOS + #define DoDebugger() Debugger() + #else + #define DoDebugger() + #endif + #define DEBUGPRINTF(args) DbgPrintf args +#else + #define DoDebugger() + #define DEBUGPRINTF(args) +/* long DebugPrintf(char* fmt, ...); + long DebugPrintf(char* fmt, ...) + { + return 0; + } +*/ +#endif + +#define BUFSIZE 4096 + +VOID main(VOID) +{ + CHAR chBuf[BUFSIZE]; + DWORD err, dwRead, dwWritten; + HANDLE hStdin, hStdout, hStderr; + BOOL fSuccess; + + DoDebugger(); + + hStdout = GetStdHandle(STD_OUTPUT_HANDLE); + hStdin = GetStdHandle(STD_INPUT_HANDLE); + hStderr = GetStdHandle(STD_ERROR_HANDLE); + if ((hStdout == INVALID_HANDLE_VALUE) || (hStdin == INVALID_HANDLE_VALUE)) + ExitProcess(1); + + // Write welcome message to standard output. + sprintf_s(chBuf, BUFSIZE, "Standard IO loopback test program\r\n3. Sep. 2016\r\n"); + fSuccess = WriteFile(hStdout, chBuf, (DWORD)strlen(chBuf), &dwWritten, NULL); + if (fSuccess) + { + for (;;) + { + // Read from standard input. + fSuccess = ReadFile(hStdin, chBuf, BUFSIZE, &dwRead, NULL); + if (!fSuccess || dwRead == 0) + { + err = GetLastError(); + if (err != ERROR_BROKEN_PIPE && hStderr != INVALID_HANDLE_VALUE) + { + sprintf_s(chBuf, BUFSIZE, "error = %d, dwRead = %d\r\n", err, dwRead); + WriteFile(hStderr, chBuf, (DWORD)strlen(chBuf), &dwWritten, NULL); + } + break; + } + + // Write to standard output. + fSuccess = WriteFile(hStdout, chBuf, dwRead, &dwWritten, NULL); + if (!fSuccess) + { + err = GetLastError(); + if (err != ERROR_BROKEN_PIPE && hStderr != INVALID_HANDLE_VALUE) + { + sprintf_s(chBuf, BUFSIZE, "error = %d, dwRead = %d\r\n", err, dwRead); + WriteFile(hStderr, chBuf, (DWORD)strlen(chBuf), &dwWritten, NULL); + } + break; + } + } + } + else + { + ExitProcess(2); + } +} \ No newline at end of file Added: trunk/lvpipe/c_source/client.dsp =================================================================== --- trunk/lvpipe/c_source/client.dsp (rev 0) +++ trunk/lvpipe/c_source/client.dsp 2016-09-20 21:14:21 UTC (rev 1541) @@ -0,0 +1,100 @@ +# Microsoft Developer Studio Project File - Name="client" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=client - Win32 Debug +!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 "client.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 "client.mak" CFG="client - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "client - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "client - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "client - 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 "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# 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 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:console /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 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:console /machine:I386 + +!ELSEIF "$(CFG)" == "client - 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 "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# 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 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:console /debug /machine:I386 /pdbtype:sept +# 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 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:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "client - Win32 Release" +# Name "client - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\client.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project Added: trunk/lvpipe/c_source/client.vcproj =================================================================== --- trunk/lvpipe/c_source/client.vcproj (rev 0) +++ trunk/lvpipe/c_source/client.vcproj 2016-09-20 21:14:21 UTC (rev 1541) @@ -0,0 +1,434 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="client" + ProjectGUID="{E1BF5C82-C33B-41EF-9C9C-36F8B94FF432}" + RootNamespace="client" + > + <Platforms> + <Platform + Name="Win32" + /> + <Platform + Name="x64" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + UseOfMFC="0" + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TypeLibraryName="$(IntDir)/client.tlb" + HeaderFileName="" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\cintools" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" + MinimalRebuild="true" + ExceptionHandling="0" + BasicRuntimeChecks="3" + RuntimeLibrary="1" + PrecompiledHeaderFile="$(IntDir)/client.pch" + WarningLevel="3" + SuppressStartupBanner="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + PreprocessorDefinitions="_DEBUG" + Culture="1033" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/client.exe" + LinkIncremental="2" + SuppressStartupBanner="true" + GenerateDebugInformation="true" + ProgramDatabaseFile="$(IntDir)/client.pdb" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + SuppressStartupBanner="true" + OutputFile="$(IntDir)/client.bsc" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Debug|x64" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + UseOfMFC="0" + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + TypeLibraryName="$(IntDir)/client.tlb" + HeaderFileName="" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\cintools" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" + MinimalRebuild="true" + ExceptionHandling="0" + BasicRuntimeChecks="3" + RuntimeLibrary="1" + PrecompiledHeaderFile="$(IntDir)/client.pch" + WarningLevel="3" + SuppressStartupBanner="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + PreprocessorDefinitions="_DEBUG" + Culture="1033" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/client.exe" + LinkIncremental="2" + SuppressStartupBanner="true" + GenerateDebugInformation="true" + ProgramDatabaseFile="$(IntDir)/client.pdb" + SubSystem="1" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + SuppressStartupBanner="true" + OutputFile="$(IntDir)/client.bsc" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + UseOfMFC="0" + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TypeLibraryName="$(IntDir)/client.tlb" + HeaderFileName="" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + AdditionalIncludeDirectories="..\..\cintools" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="true" + ExceptionHandling="0" + RuntimeLibrary="0" + EnableFunctionLevelLinking="true" + PrecompiledHeaderFile="$(IntDir)/client.pch" + WarningLevel="3" + SuppressStartupBanner="true" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + PreprocessorDefinitions="NDEBUG" + Culture="1033" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/client.exe" + LinkIncremental="1" + SuppressStartupBanner="true" + ProgramDatabaseFile="$(IntDir)/client.pdb" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + SuppressStartupBanner="true" + OutputFile="$(IntDir)/client.bsc" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Release|x64" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + UseOfMFC="0" + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + TypeLibraryName="$(IntDir)/client.tlb" + HeaderFileName="" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + AdditionalIncludeDirectories="..\..\cintools" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="true" + ExceptionHandling="0" + RuntimeLibrary="0" + EnableFunctionLevelLinking="true" + PrecompiledHeaderFile="$(IntDir)/client.pch" + WarningLevel="3" + SuppressStartupBanner="true" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + PreprocessorDefinitions="NDEBUG" + Culture="1033" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/client.exe" + LinkIncremental="1" + SuppressStartupBanner="true" + ProgramDatabaseFile="$(IntDir)/client.pdb" + SubSystem="1" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + SuppressStartupBanner="true" + OutputFile="$(IntDir)/client.bsc" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + > + <File + RelativePath="client.c" + > + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + <FileConfiguration + Name="Debug|x64" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + <FileConfiguration + Name="Release|x64" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + </File> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl" + > + </Filter> + <Filter + Name="Resource Files" + Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" + > + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> Modified: trunk/lvpipe/c_source/pipes.dsw =================================================================== --- trunk/lvpipe/c_source/pipes.dsw 2016-09-20 20:53:05 UTC (rev 1540) +++ trunk/lvpipe/c_source/pipes.dsw 2016-09-20 21:14:21 UTC (rev 1541) @@ -3,7 +3,7 @@ ############################################################################### -Project: "client"=.\client\client.dsp - Package Owner=<4> +Project: "client"=.\client.dsp - Package Owner=<4> Package=<5> {{{ Deleted: trunk/lvpipe/c_source/pipes.ncb =================================================================== (Binary files differ) Modified: trunk/lvpipe/c_source/pipes.sln =================================================================== --- trunk/lvpipe/c_source/pipes.sln 2016-09-20 20:53:05 UTC (rev 1540) +++ trunk/lvpipe/c_source/pipes.sln 2016-09-20 21:14:21 UTC (rev 1541) @@ -1,9 +1,9 @@ Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client\client.vcproj", "{E1BF5C82-C33B-41EF-9C9C-36F8B94FF432}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client.vcproj", "{E1BF5C82-C33B-41EF-9C9C-36F8B94FF432}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "server", "server\server.vcproj", "{CDEFAF54-3451-4EF9-A58D-A762E8C9D17D}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "server", "server.vcproj", "{CDEFAF54-3451-4EF9-A58D-A762E8C9D17D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pipes", "pipes.vcproj", "{E68A2364-C20D-4724-81CA-CC78007D493B}" EndProject Deleted: trunk/lvpipe/c_source/pipes.suo =================================================================== (Binary files differ) Modified: trunk/lvpipe/c_source/pipes.vcproj =================================================================== --- trunk/lvpipe/c_source/pipes.vcproj 2016-09-20 20:53:05 UTC (rev 1540) +++ trunk/lvpipe/c_source/pipes.vcproj 2016-09-20 21:14:21 UTC (rev 1541) @@ -19,8 +19,8 @@ <Configurations> <Configuration Name="Debug|Win32" - OutputDirectory="$(PlatformName)/$(ConfigurationName)" - IntermediateDirectory="$(PlatformName)/$(ConfigurationName)" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" @@ -45,18 +45,18 @@ MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" - TypeLibraryName=".\Debug/pipes.tlb" + TypeLibraryName="$(IntDir)/pipes.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalIncludeDirectories="..\..\cintools" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PIPES_EXPORTS" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" - PrecompiledHeaderFile=".\Debug/pipes.pch" + PrecompiledHeaderFile="$(IntDir)/pipes.pch" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="4" @@ -79,10 +79,10 @@ OutputFile="$(OutDir)/ogpipes.dll" LinkIncremental="2" SuppressStartupBanner="true" - AdditionalLibraryDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalLibraryDirectories="..\..\cintools" IgnoreDefaultLibraryNames="msvcrt" GenerateDebugInformation="true" - ProgramDatabaseFile=".\Debug/ogpipes.pdb" + ProgramDatabaseFile="$(IntDir)/ogpipes.pdb" ImportLibrary="$(OutDir)/ogpipes.lib" TargetMachine="1" /> @@ -98,7 +98,7 @@ <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" - OutputFile=".\Debug/pipes.bsc" + OutputFile="$(IntDir)/pipes.bsc" /> <Tool Name="VCFxCopTool" @@ -115,8 +115,8 @@ </Configuration> <Configuration Name="Debug|x64" - OutputDirectory="$(PlatformName)/$(ConfigurationName)" - IntermediateDirectory="$(PlatformName)/$(ConfigurationName)" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" @@ -141,13 +141,13 @@ MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="3" - TypeLibraryName=".\Debug/pipes.tlb" + TypeLibraryName="$(IntDir)/pipes.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" - AdditionalIncludeDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalIncludeDirectories="..\..\cintools" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PIPES_EXPORTS" MinimalRebuild="true" BasicRuntimeChecks="0" @@ -175,7 +175,7 @@ OutputFile="$(OutDir)/ogpipes.dll" LinkIncremental="2" SuppressStartupBanner="true" - AdditionalLibraryDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalLibraryDirectories="..\..\cintools" IgnoreDefaultLibraryNames="msvcrt" GenerateDebugInformation="true" ProgramDatabaseFile="$(IntDir)/ogpipes.pdb" @@ -194,7 +194,7 @@ <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" - OutputFile=".\Debug/pipes.bsc" + OutputFile="$(IntDir)/pipes.bsc" /> <Tool Name="VCFxCopTool" @@ -211,8 +211,8 @@ </Configuration> <Configuration Name="Release|Win32" - OutputDirectory="$(PlatformName)/$(ConfigurationName)" - IntermediateDirectory="$(PlatformName)/$(ConfigurationName)" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" @@ -237,19 +237,19 @@ MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" - TypeLibraryName=".\Release/pipes.tlb" + TypeLibraryName="$(IntDir)/pipes.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" - AdditionalIncludeDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalIncludeDirectories="..\..\cintools" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PIPES_EXPORTS" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" - PrecompiledHeaderFile=".\Release/pipes.pch" + PrecompiledHeaderFile="$(IntDir)/pipes.pch" WarningLevel="3" SuppressStartupBanner="true" CompileAs="1" @@ -271,7 +271,7 @@ OutputFile="$(OutDir)/ogpipes.dll" LinkIncremental="1" SuppressStartupBanner="true" - AdditionalLibraryDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalLibraryDirectories="..\..\cintools" ImportLibrary="$(OutDir)/ogpipes.lib" TargetMachine="1" /> @@ -287,7 +287,7 @@ <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" - OutputFile=".\Release/pipes.bsc" + OutputFile="$(IntDir)/pipes.bsc" /> <Tool Name="VCFxCopTool" @@ -304,8 +304,8 @@ </Configuration> <Configuration Name="Release|x64" - OutputDirectory="$(PlatformName)/$(ConfigurationName)" - IntermediateDirectory="$(PlatformName)/$(ConfigurationName)" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" @@ -330,19 +330,19 @@ MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="3" - TypeLibraryName=".\Release/pipes.tlb" + TypeLibraryName="$(IntDir)/pipes.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" - AdditionalIncludeDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalIncludeDirectories="..\..\cintools" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PIPES_EXPORTS" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" - PrecompiledHeaderFile=".\Release/pipes.pch" + PrecompiledHeaderFile="$(IntDir)/pipes.pch" WarningLevel="3" SuppressStartupBanner="true" CompileAs="1" @@ -364,7 +364,7 @@ OutputFile="$(OutDir)/ogpipes.dll" LinkIncremental="1" SuppressStartupBanner="true" - AdditionalLibraryDirectories="D:\Development\000xxx_Product_Lua4LabVIEW\csource\cintools" + AdditionalLibraryDirectories="..\..\cintools" ImportLibrary="$(OutDir)/ogpipes.lib" TargetMachine="17" /> @@ -380,7 +380,7 @@ <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" - OutputFile=".\Release/pipes.bsc" + OutputFile="$(IntDir)/pipes.bsc" /> <Tool Name="VCFxCopTool" Deleted: trunk/lvpipe/c_source/pipes.vcproj.KANTOOR1.rkalbermatter.user =================================================================== --- trunk/lvpipe/c_source/pipes.vcproj.KANTOOR1.rkalbermatter.user 2016-09-20 20:53:05 UTC (rev 1540) +++ trunk/lvpipe/c_source/pipes.vcproj.KANTOOR1.rkalbermatter.user 2016-09-20 21:14:21 UTC (rev 1541) @@ -1,121 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioUserFile - ProjectType="Visual C++" - Version="8,00" - ShowAllFiles="false" - > - <Configurations> - <Configuration - Name="Debug|Win32" - > - <DebugSettings - Command="" - WorkingDirectory="" - CommandArguments="" - Attach="false" - DebuggerType="3" - Remote="1" - RemoteMachine="WS-L017" - RemoteCommand="" - HttpUrl="" - PDBPath="" - SQLDebugging="" - Environment="" - EnvironmentMerge="true" - DebuggerFlavor="" - MPIRunCommand="" - MPIRunArguments="" - MPIRunWorkingDirectory="" - ApplicationCommand="" - ApplicationArguments="" - ShimCommand="" - MPIAcceptMode="" - MPIAcceptFilter="" - /> - </Configuration> - <Configuration - Name="Debug|x64" - > - <DebugSettings - Command="" - WorkingDirectory="" - CommandArguments="" - Attach="false" - DebuggerType="3" - Remote="1" - RemoteMachine="WS-L017" - RemoteCommand="" - HttpUrl="" - PDBPath="" - SQLDebugging="" - Environment="" - EnvironmentMerge="true" - DebuggerFlavor="" - MPIRunCommand="" - MPIRunArguments="" - MPIRunWorkingDirectory="" - ApplicationCommand="" - ApplicationArguments="" - ShimCommand="" - MPIAcceptMode="" - MPIAcceptFilter="" - /> - </Configuration> - <Configuration - Name="Release|Win32" - > - <DebugSettings - Command="" - WorkingDirectory="" - CommandArguments="" - Attach="false" - DebuggerType="3" - Remote="1" - RemoteMachine="WS-L017" - RemoteCommand="" - HttpUrl="" - PDBPath="" - SQLDebugging="" - Environment="" - EnvironmentMerge="true" - DebuggerFlavor="" - MPIRunCommand="" - MPIRunArguments="" - MPIRunWorkingDirectory="" - ApplicationCommand="" - ApplicationArguments="" - ShimCommand="" - MPIAcceptMode="" - MPIAcceptFilter="" - /> - </Configuration> - <Configuration - Name="Release|x64" - > - <DebugSettings - Command="" - WorkingDirectory="" - CommandArguments="" - Attach="false" - DebuggerType="3" - Remote="1" - RemoteMachine="WS-L017" - RemoteCommand="" - HttpUrl="" - PDBPath="" - SQLDebugging="" - Environment="" - EnvironmentMerge="true" - DebuggerFlavor="" - MPIRunCommand="" - MPIRunArguments="" - MPIRunWorkingDirectory="" - ApplicationCommand="" - ApplicationArguments="" - ShimCommand="" - MPIAcceptMode="" - MPIAcceptFilter="" - /> - </Configuration> - </Configurations> -</VisualStudioUserFile> Added: trunk/lvpipe/c_source/server.c =================================================================== --- trunk/lvpipe/c_source/server.c (rev 0) +++ trunk/lvpipe/c_source/server.c 2016-09-20 21:14:21 UTC (rev 1541) @@ -0,0 +1,47 @@ +#include "extcode.h" +#include "hosttype.h" +#include <stdio.h> + +#define BUFSIZE 4096 + +int main(int argc, char* argv[]) +{ + HANDLE handle = CreateNamedPipeW(L"\\\\.\\pipe\\opengtest", PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT, + PIPE_UNLIMITED_INSTANCES, 1024, 1024, NMPWAIT_USE_DEFAULT_WAIT, NULL); + if (handle != INVALID_HANDLE_VALUE) + { + BOOL fSuccess; + DWORD err, dwRead, dwWritten; + CHAR chBuf[BUFSIZE]; + + while (TRUE) + { + // Read from named pipe + fSuccess = ReadFile(handle, chBuf, BUFSIZE, &dwRead, NULL); + if (!fSuccess || dwRead == 0) + { + err = GetLastError(); + if (err != ERROR_BROKEN_PIPE) + { + printf("Error reading pipe, error code: %x", err); + } + break; + } + + // Write to named pipe + fSuccess = WriteFile(handle, chBuf, dwRead, &dwWritten, NULL); + if (!fSuccess) + { + err = GetLastError(); + if (err != ERROR_BROKEN_PIPE) + { + printf("Error writing pipe, error code: %x", err); + } + break; + } + } + CloseHandle(handle); + } + return 0; +} + Added: trunk/lvpipe/c_source/server.vcproj =================================================================== --- trunk/lvpipe/c_source/server.vcproj (rev 0) +++ trunk/lvpipe/c_source/server.vcproj 2016-09-20 21:14:21 UTC (rev 1541) @@ -0,0 +1,199 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="server" + ProjectGUID="{CDEFAF54-3451-4EF9-A58D-A762E8C9D17D}" + RootNamespace="server" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\cintools" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + LinkIncremental="2" + GenerateDebugInformation="true" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)/$(ProjectName)/$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="1" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="..\..\cintools" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + RuntimeLibrary="2" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + LinkIncremental="1" + GenerateDebugInformation="true" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > + <File + RelativePath=".\server.c" + > + </File> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc;xsd" + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > + </Filter> + <Filter + Name="Resource Files" + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" + > + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |