Visual Studio 2005 support

Vladimir Simonov <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <68C3161B99102F4AB682CFE6AA27C7F43F7B3B5389@RU-EXSTRCL1.ru.corp.acronis.com>
Hi Dimitri,

Attached diff allows to build Doxygen by Microsoft Visual Studio 2005.
I have not found any regression. The diff is against current trunk
(revision 773).

Is it possible to push it?

Best regards
Vladimir Simonov

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2

_______________________________________________
Doxygen-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop
vs2005_support.diff (application/octet-stream, 2.1 KB)
VS 2005 support
patch fron Vladimir Simonov
There are 2 problems:
1. Microsoft Visual Studio 2005 Version 8.0.50727.762  (SP.050727-7600)
rejects to load Doxygen.vcproj and qtools.vcproj, cause - unsupported version.
2. C++ compiler fails on src\translator_fa.h
g:\doxygen-svn-orig\src\translator_fa.h(53) : error C2666: 'QCString::operator []' : 2 overloads have similar conversions
        g:\doxygen-svn-orig\qtools\qcstring.h(257): could be 'char &QCString::operator [](int) const'
        or 'built-in C++ operator[(const char *, unsigned int)'
        while trying to match the argument list '(QCString, unsigned int)'

Index: src/translator_fa.h
===================================================================
--- src/translator_fa.h	(revision 773)
+++ src/translator_fa.h	(working copy)
@@ -50,10 +50,10 @@
 		const char * PersianDigits[] = { "۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹" };
 		for(unsigned i=0; i<str.length(); i++)
 		{
-			if (str[i] >= '0' && str[i] <= '9')
-				output += PersianDigits[ str[i] - '0' ];
+			if (str.operator [](i) >= '0' && str.operator [](i) <= '9')
+				output += PersianDigits[ str.operator [](i) - '0' ];
 			else
-				output += str[i];
+				output += str.operator [](i);
 		}
 		
 		return output;
Index: winbuild/Doxygen.vcproj
===================================================================
--- winbuild/Doxygen.vcproj	(revision 773)
+++ winbuild/Doxygen.vcproj	(working copy)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
 	ProjectType="Visual C++"
-	Version="9,00"
+	Version="8,00"
 	Name="Doxygen"
 	ProjectGUID="{309C9A4A-94D2-4837-9A11-45B0A6CF35C3}"
 	RootNamespace="Doxygen"
Index: winbuild/qtools.vcproj
===================================================================
--- winbuild/qtools.vcproj	(revision 773)
+++ winbuild/qtools.vcproj	(working copy)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
 	ProjectType="Visual C++"
-	Version="9.00"
+	Version="8.00"
 	Name="qtools"
 	ProjectGUID="{B6BB4771-8A4E-4656-AC08-1EF8AC182F64}"
 	TargetFrameworkVersion="131072"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.