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

CreateSurfaceFromFile() version not working


CreateSurfaceFromFile() version not working

Postby Narin » Nov 21, 2008 @ 10:54am

First of all, GapiDraw is going to save my life.

Now, I just need to get it up and running with C#. I found the ancient C# wrapper on intuitex.com which is a good starting point, now I'm tweaking it.

I've hit a roadblock though. When building off the Minimal sample in C++, I can load a 24-bit PNG just fine using ->CreateSurface and the FULL file name. Works great.

However, when I use C# and P/Invoke CGapiRGBASurface_CreateSurfaceFromFile, passing it the EXACT same filepath produces a GDERR_BITMAPNOTFOUND.

This is on my "stationary PC", and using the win32 build of GapiDraw.dll 401.

Any ideas?
Narin
pm Member
 
Posts: 11
Joined: Nov 21, 2008 @ 10:42am


Postby Johan » Nov 22, 2008 @ 12:02am

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


Postby Narin » Nov 22, 2008 @ 12:05am

Narin
pm Member
 
Posts: 11
Joined: Nov 21, 2008 @ 10:42am


Postby Johan » Nov 22, 2008 @ 1:44pm

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


Re: CreateSurfaceFromFile() version not working

Postby InexorableTash » Nov 23, 2008 @ 7:42am

User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Re: CreateSurfaceFromFile() version not working

Postby Narin » Nov 23, 2008 @ 7:57am

Narin
pm Member
 
Posts: 11
Joined: Nov 21, 2008 @ 10:42am


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

cron