<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I was using Windows XP and MSVC6<br>
<br>
After reading your email I changed to MSVC.NET and that fixed the
problem.<br>
<br>
Thanks for your help.<br>
<br>
Jim Bublitz wrote:
<blockquote cite="mid200508012102.38376.jbublitz@nwinternet.com"
type="cite">
<pre wrap="">On Monday 01 August 2005 17:25, John Drummond wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi, Im trying to wrap a C++ class that has another class nested within it.
I looked at PyQt sip files to find an example and qdawg.sip shows a
nested class, so I assume it should work.
class Cmf : SMLEvent, SMLMessageReceiver
{
%TypeHeaderCode
#include "cmf.h"
%End
public:
Cmf(Cmf* = 0, int=false);
class CommonStatus : SMLMessage
{
public:
CommonStatus(unsigned char= 0);
int IsMOBGuarding();
};
};
No sip errors but I get the following error in sipsmlCmfCommonStatus.cpp
when compiling:
error C2039: 'Cmf' : is not a member of 'CommonStatus
Cmf::CommonStatus *sipCpp;
if
(sipParseArgs(&sipArgsParsed,sipArgs,"m",sipSelf,sipClass_Cmf_CommonStatus,
&sipCpp)) {
int sipRes;
sipRes = sipCpp -> Cmf::CommonStatus::IsMOBGuarding();
return PyInt_FromLong((long)sipRes);
}
If I manually edit sipsmlCmfCommonStatus.cpp and change
sipRes = sipCpp -> Cmf::CommonStatus::IsMOBGuarding();
to
sipRes = sipCpp -> IsMOBGuarding();
then it compiles.
</pre>
</blockquote>
<pre wrap=""><!---->
Which compiler and OS are you using?
The fully qualified method name (x::y->x::y::z()) is accepted by gcc/Linux -
KURL::List in PyKDE has similar generated code and compiles correctly.
Jim
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
John Drummond
Home email: <a class="moz-txt-link-freetext" href="mailto:john.drummond@homecall.co.uk">mailto:john.drummond@homecall.co.uk</a></pre>
</body>
</html>