I've applied this patch. It works fine in VC6.

Cheers,


On 17/07/06, Rick <[EMAIL PROTECTED]> wrote:

Tried compiling the Tuscany SDO CPP with MS Visual C++ 2005 Express
Edition  http://msdn.microsoft.com/vstudio/express/visualC/default.aspx
which you can download for free, but need to eventually register for (no
charge though).
I got it to compile/link have not tested it yet.  Here are the changes I
needed to do. I also don't know if they present an issue with the 6/7 MS
developer or Linux compiler

Index: sdo/runtime/core/src/commonj/sdo/TypeImpl.cpp

===================================================================

--- sdo/runtime/core/src/commonj/sdo/TypeImpl.cpp    (revision 422669)

+++ sdo/runtime/core/src/commonj/sdo/TypeImpl.cpp    (working copy)

@@ -537,9 +537,9 @@


        if (propertyName == 0 || strlen(propertyName) == 0) return 0;

-        char*    tokenend    = strchr(propertyName,'/');
-        char *    bracket        = strchr(propertyName,'[');
-        char*    dot            = strchr(propertyName,'.');
+        char*    tokenend    = (char*) strchr(propertyName,'/');
+        char *    bracket        =  (char*) strchr(propertyName,'[');
+        char*    dot            =  (char*) strchr(propertyName,'.');
        char*   copy;


Index: sdo/runtime/core/src/commonj/sdo/DataFactoryImpl.cpp

===================================================================

--- sdo/runtime/core/src/commonj/sdo/DataFactoryImpl.cpp    (revision
422669)

+++ sdo/runtime/core/src/commonj/sdo/DataFactoryImpl.cpp    (working copy)

@@ -1871,7 +1871,7 @@

            if (!strcmp(tl[i].getURI(),"commonj.sdo")) continue;

            const char *uri = tl[i].getURI();
-            char *c = strchr(uri,'.');
+            char *c = (char*)strchr(uri,'.');

            if (c == 0)
            {
@@ -1922,7 +1922,7 @@


            const char *uri = tl[i].getURI();
            const char *name = tl[i].getName();
-            char* the_uri = strchr(uri,'.');
+            char* the_uri = (char*) strchr(uri,'.');

            if (the_uri == 0)
            {
@@ -1993,7 +1993,7 @@


            if (!strcmp(tl[i].getURI(),"commonj.sdo")) continue;
            const char *uri = tl[i].getURI();
-            char *c = strchr(uri,'.');
+            char *c = (char*) strchr(uri,'.');

            if (c == 0)
            {
Index: sdo/runtime/core/src/commonj/sdo/DataObjectImpl.cpp

===================================================================

--- sdo/runtime/core/src/commonj/sdo/DataObjectImpl.cpp    (revision
422669)

+++ sdo/runtime/core/src/commonj/sdo/DataObjectImpl.cpp    (working copy)

@@ -1313,7 +1313,7 @@

                        DataObjectImpl* cont = d->getContainerImpl();
                        if (cont != 0)
                        {
-                            pc = strrchr(path,'/');
+                            pc = (char*) strrchr(path,'/');
                            if (pc != 0)pc++;
                        }
                        const Property& pcont = cont->getProperty(pc);
@@ -2108,7 +2108,7 @@

        }

        DataObjectImpl* d;
-        char*  i = strchr(path,'/');
+        char*  i = (char*) strchr(path,'/');
        char* remaining = 0;
        char* token     = 0;




Index: sdo/runtime/core/src/commonj/sdo/TypeImpl.cpp
===================================================================
--- sdo/runtime/core/src/commonj/sdo/TypeImpl.cpp       (revision 422669)
+++ sdo/runtime/core/src/commonj/sdo/TypeImpl.cpp       (working copy)
@@ -537,9 +537,9 @@

        if (propertyName == 0 || strlen(propertyName) == 0) return 0;

-        char*    tokenend    = strchr(propertyName,'/');
-        char *    bracket        = strchr(propertyName,'[');
-        char*    dot            = strchr(propertyName,'.');
+        char*    tokenend    = (char*) strchr(propertyName,'/');
+        char *    bracket        =  (char*) strchr(propertyName,'[');
+        char*    dot            =  (char*) strchr(propertyName,'.');
        char*   copy;


Index: sdo/runtime/core/src/commonj/sdo/DataFactoryImpl.cpp
===================================================================
--- sdo/runtime/core/src/commonj/sdo/DataFactoryImpl.cpp        (revision
422669)
+++ sdo/runtime/core/src/commonj/sdo/DataFactoryImpl.cpp        (working
copy)
@@ -1871,7 +1871,7 @@
            if (!strcmp(tl[i].getURI(),"commonj.sdo")) continue;

            const char *uri = tl[i].getURI();
-            char *c = strchr(uri,'.');
+            char *c = (char*)strchr(uri,'.');

            if (c == 0)
            {
@@ -1922,7 +1922,7 @@

            const char *uri = tl[i].getURI();
            const char *name = tl[i].getName();
-            char* the_uri = strchr(uri,'.');
+            char* the_uri = (char*) strchr(uri,'.');

            if (the_uri == 0)
            {
@@ -1993,7 +1993,7 @@

            if (!strcmp(tl[i].getURI(),"commonj.sdo")) continue;
            const char *uri = tl[i].getURI();
-            char *c = strchr(uri,'.');
+            char *c = (char*) strchr(uri,'.');

            if (c == 0)
            {
Index: sdo/runtime/core/src/commonj/sdo/DataObjectImpl.cpp
===================================================================
--- sdo/runtime/core/src/commonj/sdo/DataObjectImpl.cpp (revision 422669)
+++ sdo/runtime/core/src/commonj/sdo/DataObjectImpl.cpp (working copy)
@@ -1313,7 +1313,7 @@
                        DataObjectImpl* cont = d->getContainerImpl();
                        if (cont != 0)
                        {
-                            pc = strrchr(path,'/');
+                            pc = (char*) strrchr(path,'/');
                            if (pc != 0)pc++;
                        }
                        const Property& pcont = cont->getProperty(pc);
@@ -2108,7 +2108,7 @@
        }

        DataObjectImpl* d;
-        char*  i = strchr(path,'/');
+        char*  i = (char*) strchr(path,'/');
        char* remaining = 0;
        char* token     = 0;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Pete

Reply via email to