xboxscene.org forums

Author Topic: Compilation Error  (Read 80 times)

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Compilation Error
« on: May 20, 2003, 08:29:00 AM »

QUOTE (Fourmiz2K @ May 20 2003, 12:08 PM)
I want to recompil XPORT's sources (after translation) but I've already the same error : error C2248: 'CXBApplication::m_d3dpp' : cannot access protected member declared in class 'CXBApplication'
Whis other sources (XBMP, PCSX...) there are no problem for compil.

X-Port must have modified his header file so he could directly access that member.

Open the "xbapp.h" file (or "xbapplication.h" I forget which) in the <XDK>\samples\common\include directory and move the line with member "m_d3dpp" to someplace under the line with "public:" on it. This will change the variable's 'scope' in the class and allow other parts of the code to use it.
Logged

Fourmiz2K

  • Archived User
  • Newbie
  • *
  • Posts: 5
Compilation Error
« Reply #1 on: May 20, 2003, 09:00:00 AM »

love.gif

I move these 5 lines :
D3DPRESENT_PARAMETERS m_d3dpp;
LPDIRECT3D8           m_pD3D;              // The D3D enumerator object
LPDIRECT3DDEVICE8     m_pd3dDevice;        // The D3D rendering device
LPDIRECT3DSURFACE8    m_pBackBuffer;       // The back buffer
LPDIRECT3DSURFACE8    m_pDepthBuffer;      // The depth buffer


Under the line
public:

Now only one error  unsure.gif
CODE
commonfuncs.cpp(388) : error C2039: 'Initialize' : is not a member of 'CXBFont'
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Compilation Error
« Reply #2 on: May 20, 2003, 09:41:00 AM »

QUOTE (Fourmiz2K @ May 20 2003, 01:00 PM)
Ok, thanks for your answer  love.gif

I move these 5 lines :
D3DPRESENT_PARAMETERS m_d3dpp;
LPDIRECT3D8           m_pD3D;              // The D3D enumerator object
LPDIRECT3DDEVICE8     m_pd3dDevice;        // The D3D rendering device
LPDIRECT3DSURFACE8    m_pBackBuffer;       // The back buffer
LPDIRECT3DSURFACE8    m_pDepthBuffer;      // The depth buffer


Under the line
public:

Now only one error  unsure.gif
CODE
commonfuncs.cpp(388) : error C2039: 'Initialize' : is not a member of 'CXBFont'

Well, that's a different problem: He's using a different version of CXBFont than the one you are using.

What version is your XDK? You'll likely need to get X-Port's version of XBFont.h/XBFont.cpp in order to continue.
Logged

Fourmiz2K

  • Archived User
  • Newbie
  • *
  • Posts: 5
Compilation Error
« Reply #3 on: May 20, 2003, 10:16:00 AM »

sad.gif

Ps: I'm french (admin MEDIAXBOX.COM website) and I want help french communauty by translate many utils/emulators (last year I translate video utilities like Nandub).
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Compilation Error
« Reply #4 on: May 20, 2003, 10:32:00 AM »

QUOTE (Fourmiz2K @ May 20 2003, 02:16 PM)
I using XDK June 2002
Maybe conflict include's files XDK/XPORT ?

Sorry for my question, bu I'm not a developper (for the moment), I just use XDK for compil and maybe I param it uncorrectly sad.gif

Ps: I'm french (admin MEDIAXBOX.COM website) and I want help french communauty by translate many utils/emulators (last year I translate video utilities like Nandub).

X-Port is probably using 5433 (Feb 2003), compiled with .NET

I'm at work at the moment, so I can't tell you for sure.
Logged

Fourmiz2K

  • Archived User
  • Newbie
  • *
  • Posts: 5
Compilation Error
« Reply #5 on: May 20, 2003, 12:37:00 PM »

Ok.
I rapidly install Visual.net & 5455 (Avril) XDK because MAMEoX v0.64b is coded with.
Tks to say me if the problem with XPORT's sources is due to XDK version
Logged