realbasic-plugins
[Top] [All Lists]

Re: AND ONCE AGAIN! namespace QT { namespace std

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: AND ONCE AGAIN! namespace QT { namespace std
From: Ruslan Zasukhin <sunshine at public dot kherson dot ua>
Date: Fri, 18 Mar 2005 23:18:14 +0200
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
On 3/18/05 11:12 PM, "William Yu" <william at realsoftware dot com> wrote:

> On 3/18/05 3:00 PM, "Norman Palardy" <palardyn at shaw dot ca> wrote:
> 
>>> #ifndef IGNOREQT
>>> namespace QT {
>>>     #include <QTML.h>
>>>     #include <Movies.h>
>>> }
>>> #else
>>> #define QT
>>> typedef void* Movie;
>>> typedef void* MovieController;
>>> #endif
>>> 
>> If you need QT won't you have issues like Ruslan mentioned where
>> everything in QTML and Movies now is in a different namespace that you
>> might have expected ?
> 
> True, in which case you could probably get rid of the namespace and get rid
> of whatever conflicting types/functions we've defined against it.  We have
> our own internal plug-ins that rely on the namespace and such, so I'm less
> thrilled about this type of change to the SDK.  However, maybe it's time we
> do something drastic, if all are willing for breakage...

FYI, William,

Please note down, that IT SEEMS solution can be next:

1) I have add path to
    MacOS Support/Universal/Cinterfaces

    after Win32 and MSL and compile, but before MY fodlers

2) and I have change your OLD header as:

---------------------------------------------------------------------------
// REAL SDK with changes of RZ

#include <cstddef> // RZ

const unsigned long kCFStringEncodingUTF8 = 0x08000100;

namespace QT {

    // this namespace is RZ changes to work around RB SDK problem.
    namespace std{
        typedef ::std::ptrdiff_t  ptrdiff_t;
        typedef long size_t;
    }

    #include <Endian.h>        // RZ added
    #include <QTML.h>
    #include <Movies.h>
}


With this I was able compile...




-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft dot com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>