Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Save Memblock to File

Author
Message
Paulfred
16
Years of Service
User Offline
Joined: 4th May 2008
Location:
Posted: 14th Sep 2008 20:26
Hello!

I've a question! I've loaded a memblock from an image and now i want to save it. How can I do that?

Another thing: I've a Vista Computer. But the function dbPoint(...) doesn't work. But on a XP, the function works.

Thank you in advance!
Paul
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 14th Sep 2008 21:51
void dbMakeImageFromMemblock ( int ImageNumber, int MemblockNumber )

Then save the image.

Not sure about your Vista vs. XP issue but I suspect that it's because Vista relies on DirectX 10 and you have to compile Dark GDK with a specific version of DirectX 9.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Paulfred
16
Years of Service
User Offline
Joined: 4th May 2008
Location:
Posted: 14th Sep 2008 22:29
Thank you! But don't want to save the image. I want to save the memblock.
Or... have you a link to a program, which makes an image to binary-code?
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 14th Sep 2008 22:50
Time to give a hint. If you can't find what you're looking for in the Dark GDK functions, start looking at the standard library functions for C/C++. DGDK gives you a pointer to the memblock and the size of the memblock in bytes.

Some example code from a class that I've created for a game that I'm stalled out on:


And the code to load it back in


Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Paulfred
16
Years of Service
User Offline
Joined: 4th May 2008
Location:
Posted: 15th Sep 2008 09:48
Thank you very much! I found an answer!

***CLOSE***

Login to post a reply

Server time is: 2024-09-30 05:37:52
Your offset time is: 2024-09-30 05:37:52