This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problems with upgrade to 3.50


Problems with upgrade to 3.50

Postby fzammetti » Nov 24, 2004 @ 6:07pm

Hello all... Just dropped 3.50 into a project I was getting started under 3.01, and I have a problem I can't seem to overcome:

With this defintion:
CGapiSurface* pCurrentMapTiles[100];

This line throws an exception:
pCurrentMapTiles[1]->CreateSurface(NULL, pCGame->hInst, GFX_TILE_MAP_1_01, TEXT("GRAPHICS"));

It's an access violation, I believe because pCurrentMapTiles[1] is null.

Now, previously I had the following line right before that:

pCurrentMapTiles[1] = new CGapiSurface();

But now when I try that, I get:

error C2512: 'CGapiSurface' : no appropriate default constructor available

So, my question is:

Am I not dealing with surfaces properly? It used to work fine this way, and I kind of want to be dealing with pointers to surfaces all the time, so how do I now construct a CGapiSurface so that this will work (i.e., what do I pass to the constuctor? I don't see anything related to that in the samples or in the docs... am I missing it?)

Thanks!
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Nov 24, 2004 @ 6:11pm

Never mind, I DID miss it... Need to pass m_cGapiDraw now.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Nov 24, 2004 @ 6:26pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Nov 24, 2004 @ 6:29pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Nov 24, 2004 @ 6:41pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Nov 24, 2004 @ 7:12pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Nov 24, 2004 @ 7:14pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Kzinti » Nov 24, 2004 @ 7:24pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fzammetti » Nov 24, 2004 @ 7:41pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby mlepage » Nov 24, 2004 @ 8:58pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby fzammetti » Nov 24, 2004 @ 9:45pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby denthorq » Nov 25, 2004 @ 1:12am

It's worth the wait...
User avatar
denthorq
pm Insider
 
Posts: 447
Joined: Apr 18, 2003 @ 9:15pm
Location: USA-PHILIPPINES


Postby egarayblas » Nov 25, 2004 @ 2:30am

-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby fzammetti » Nov 25, 2004 @ 3:23am

Might make a good blog entry...
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Johan » Nov 25, 2004 @ 12:36pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Next

Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum