From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../code/tool/open_file/?hideattic=0/index.html | 95 ++++++++++++++ .../code/tool/open_file/?sortby=author/index.html | 95 ++++++++++++++ .../code/tool/open_file/?sortby=date/index.html | 95 ++++++++++++++ cvs/cvsweb.cgi/code/tool/open_file/index.html | 94 ++++++++++++++ cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp | 144 +++++++++++++++++++++ .../x-cvsweb-markup/index.html | 98 ++++++++++++++ cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp | 134 +++++++++++++++++++ .../x-cvsweb-markup/index.html | 118 +++++++++++++++++ 8 files changed, 873 insertions(+) create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/?hideattic=0/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/?sortby=author/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/?sortby=date/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp?rev=1.2&content-type=text/x-cvsweb-markup/index.html create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp create mode 100644 cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp?rev=1.1&content-type=text/x-cvsweb-markup/index.html (limited to 'cvs/cvsweb.cgi/code/tool/open_file') diff --git a/cvs/cvsweb.cgi/code/tool/open_file/?hideattic=0/index.html b/cvs/cvsweb.cgi/code/tool/open_file/?hideattic=0/index.html new file mode 100644 index 00000000..de46217e --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/?hideattic=0/index.html @@ -0,0 +1,95 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + + +
Nevrax / code / tool / open_file
+ + + + + + + +
FileRev.AgeAuthorLast log entry
[BACK] + Previous Directory +    
[TXT] + open_file.cpp + 1.2  18 months corvazier  no message +
[TXT] + open_file.dsp + 1.1  18 months corvazier  Open a file with the app assigned in windows +
[TXT] + open_file.dsw + 1.1  18 months corvazier  Open a file with the app assigned in windows +

+ +Show only files with tag: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/open_file/?sortby=author/index.html b/cvs/cvsweb.cgi/code/tool/open_file/?sortby=author/index.html new file mode 100644 index 00000000..dd126392 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/?sortby=author/index.html @@ -0,0 +1,95 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + + +
Nevrax / code / tool / open_file
+ + + + + + + +
FileRev.AgeAuthorLast log entry
[BACK] + Previous Directory +    
[TXT] + open_file.cpp + 1.2  18 months corvazier  no message +
[TXT] + open_file.dsp + 1.1  18 months corvazier  Open a file with the app assigned in windows +
[TXT] + open_file.dsw + 1.1  18 months corvazier  Open a file with the app assigned in windows +

+ +Show only files with tag: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/open_file/?sortby=date/index.html b/cvs/cvsweb.cgi/code/tool/open_file/?sortby=date/index.html new file mode 100644 index 00000000..60d19901 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/?sortby=date/index.html @@ -0,0 +1,95 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + + +
Nevrax / code / tool / open_file
+ + + + + + + +
FileRev.AgeAuthorLast log entry
[BACK] + Previous Directory +    
[TXT] + open_file.cpp + 1.2  18 months corvazier  no message +
[TXT] + open_file.dsp + 1.1  18 months corvazier  Open a file with the app assigned in windows +
[TXT] + open_file.dsw + 1.1  18 months corvazier  Open a file with the app assigned in windows +

+ +Show only files with tag: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/open_file/index.html b/cvs/cvsweb.cgi/code/tool/open_file/index.html new file mode 100644 index 00000000..084cd242 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/index.html @@ -0,0 +1,94 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + + +
Nevrax / code / tool / open_file
+ + + + + + + +
FileRev.AgeAuthorLast log entry
[BACK] + Previous Directory +    
[TXT] + open_file.cpp + 1.2  18 months corvazier  no message +
[TXT] + open_file.dsp + 1.1  18 months corvazier  Open a file with the app assigned in windows +
[TXT] + open_file.dsw + 1.1  18 months corvazier  Open a file with the app assigned in windows +

+Show only files with tag: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp b/cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp new file mode 100644 index 00000000..172f07d1 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp @@ -0,0 +1,144 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + +
Nevrax / code / tool / open_file / open_file.cpp
+ + + + + +
open_file.cpp
+

+

Default branch: MAIN
+


+ Revision 1.2 / (download) - annotate - [select for diffs] +, Fri Dec 8 10:21:10 2000 UTC (18 months, 3 weeks ago) by corvazier +
Branch: MAIN + +
CVS Tags: HEAD +
Changes since 1.1: +10 -3 + lines
Diff to previous 1.1 +

+no message
+
+

+ Revision 1.1 / (download) - annotate - [select for diffs] +, Fri Dec 8 10:16:16 2000 UTC (18 months, 3 weeks ago) by corvazier +
Branch: MAIN + +
Diff

+Open a file with the app assigned in windows
+
+ + + + + +
Request Diffs
+

+

+

+Diffs between + + + and + + +
Type of Diff should be a  +
+ + + + + +
Select branch
+

+

+ +

+View only Branch: + + +
+ +
+Sort log by: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp?rev=1.2&content-type=text/x-cvsweb-markup/index.html b/cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp?rev=1.2&content-type=text/x-cvsweb-markup/index.html new file mode 100644 index 00000000..ae82c684 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/open_file.cpp?rev=1.2&content-type=text/x-cvsweb-markup/index.html @@ -0,0 +1,98 @@ + + + +code/tool/open_file/open_file.cpp - view - 1.2 + +
[BACK] Return to open_file.cpp + CVS log [TXT][DIR] Up to Nevrax / code / tool / open_file

File: Nevrax / code / tool / open_file / open_file.cpp (download)
+Revision 1.2, Fri Dec 8 10:21:10 2000 UTC (18 months, 3 weeks ago) by corvazier +
Branch: MAIN +
CVS Tags: HEAD
Changes since 1.1: +10 -3 + lines
+no message
+
+

// openhtml.cpp : Defines the entry point for the application.
+//
+
+#include <windows.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+LONG GetRegKey(HKEY key, LPCTSTR subkey, LPTSTR retdata)
+{
+    HKEY hkey;
+    LONG retval = RegOpenKeyEx(key, subkey, 0, KEY_QUERY_VALUE, &hkey);
+
+    if (retval == ERROR_SUCCESS) 
+        {
+        long datasize = MAX_PATH;
+        TCHAR data[MAX_PATH];
+        RegQueryValue(hkey, NULL, data, &datasize);
+        lstrcpy(retdata,data);
+        RegCloseKey(hkey);
+    }
+
+    return retval;
+}
+
+bool OpenFile (LPCTSTR filename, LPCTSTR ext, int showcmd)
+{
+    TCHAR key[MAX_PATH + MAX_PATH];
+
+    // First try ShellExecute()
+    HINSTANCE result = ShellExecute(NULL, "open", filename, NULL,NULL, showcmd);
+
+    // If it failed, get the .htm regkey and lookup the program
+    if ((UINT)result <= HINSTANCE_ERROR) 
+        {
+        if (GetRegKey(HKEY_CLASSES_ROOT, ext, key) == ERROR_SUCCESS) 
+                {
+            lstrcat(key, "\\shell\\open\\command");
+
+            if (GetRegKey(HKEY_CLASSES_ROOT,key,key) == ERROR_SUCCESS) 
+                        {
+                TCHAR *pos;
+                pos = strstr(key, "\"%1\"");
+                if (pos == NULL) {                     // No quotes found
+                    pos = strstr(key, "%1");       // Check for %1, without quotes 
+                    if (pos == NULL)                   // No parameter at all...
+                        pos = key+lstrlen(key)-1;
+                    else
+                        *pos = '\0';                   // Remove the parameter
+                }
+                else
+                    *pos = '\0';                       // Remove the parameter
+
+                lstrcat(pos, " ");
+                lstrcat(pos, filename);
+                int res = WinExec(key,showcmd);
+                                return (res>31);
+            }
+        }
+    }
+        else
+                return true;
+
+        return false;
+}
+
+int APIENTRY WinMain(HINSTANCE hInstance,
+                     HINSTANCE hPrevInstance,
+                     LPSTR     lpCmdLine,
+                     int       nCmdShow)
+{
+        // TODO: Place code here.
+        if (strcmp (lpCmdLine, "")==0)
+        {
+                MessageBox (NULL, "Open a file with the default application.\nUsage: open_file [filepath]", "Open file", MB_OK|MB_ICONINFORMATION);
+        }
+        else
+        {
+                char ext[512];
+                _splitpath (lpCmdLine, NULL, NULL, NULL, ext);
+                OpenFile(lpCmdLine, ext, SW_SHOW);
+        }
+
+        return 0;
+}
+
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp b/cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp new file mode 100644 index 00000000..8f1b2370 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp @@ -0,0 +1,134 @@ + + + + nevrax.org : cvs + + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#Free software
+
+ + +
+ + +
+cvs + +
+ + +
Nevrax / code / tool / open_file / open_file.dsp
+ + + + + +
open_file.dsp
+

+

Default branch: MAIN
+


+ Revision 1.1 / (download) - annotate - [select for diffs] +, Fri Dec 8 10:16:16 2000 UTC (18 months, 3 weeks ago) by corvazier +
Branch: MAIN + +
CVS Tags: HEAD +
Diff

+Open a file with the app assigned in windows
+
+ + + + + +
Request Diffs
+

+

+

+Diffs between + + + and + + +
Type of Diff should be a  +
+ + + + + +
Select branch
+

+

+ +

+View only Branch: + + +
+ +
+Sort log by: + + +
+ + +
                                                                                                                                                                    +
+ + diff --git a/cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp?rev=1.1&content-type=text/x-cvsweb-markup/index.html b/cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp?rev=1.1&content-type=text/x-cvsweb-markup/index.html new file mode 100644 index 00000000..16e9e3f7 --- /dev/null +++ b/cvs/cvsweb.cgi/code/tool/open_file/open_file.dsp?rev=1.1&content-type=text/x-cvsweb-markup/index.html @@ -0,0 +1,118 @@ + + + +code/tool/open_file/open_file.dsp - view - 1.1 + +
[BACK] Return to open_file.dsp + CVS log [TXT][DIR] Up to Nevrax / code / tool / open_file

File: Nevrax / code / tool / open_file / open_file.dsp (download)
+Revision 1.1, Fri Dec 8 10:16:16 2000 UTC (18 months, 3 weeks ago) by corvazier +
Branch: MAIN +
CVS Tags: HEAD
+Open a file with the app assigned in windows
+
+

# Microsoft Developer Studio Project File - Name="open_file" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Application" 0x0101
+
+CFG=open_file - 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 "open_file.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 "open_file.mak" CFG="open_file - Win32 Debug"
+!MESSAGE 
+!MESSAGE Possible choices for configuration are:
+!MESSAGE 
+!MESSAGE "open_file - Win32 Release" (based on "Win32 (x86) Application")
+!MESSAGE "open_file - Win32 Debug" (based on "Win32 (x86) Application")
+!MESSAGE 
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF  "$(CFG)" == "open_file - 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" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x40c /d "NDEBUG"
+# ADD RSC /l 0x40c /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)" == "open_file - 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 "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x40c /d "_DEBUG"
+# ADD RSC /l 0x40c /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 /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 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
+
+!ENDIF 
+
+# Begin Target
+
+# Name "open_file - Win32 Release"
+# Name "open_file - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\open_file.cpp
+# 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
+
\ No newline at end of file -- cgit v1.2.1