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 / Undo not working

Author
Message
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 19th Aug 2010 02:44
ok this is the problem.
I am making a huge link list of bitmaps by memalocating each bit map into a link list.
this is only part of the code

The problem is retrieving data that i push on to the list.
I get this error as it pulls data. I get this in the autos call stack
--------------
name value
curmemblockbyteone 83
dimem {memb=0X00000000}
memb 0X000000000000
error cxx0030:error:espression connot be evaluated
--------
is this because i memalocated it and it lost the data when pushed it on the list. Maybe a better solution is just set aside a certain amout of images that get the previous image values. Then when I undo it goes to the previous image. Well I guess if your out there then you know how I solved my own problem. I not going to use memblocks but I will use Images to store previous data from last image know I have to redo code.

Go through yourself at a wall.
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 19th Aug 2010 03:29
I don't see the entire code. So I'm not sure if you already did these things.






Some simple errors:



When a person has nothing but a dream, can he dare to dream.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 19th Aug 2010 11:46
ops I guess i did type those out wrong



Go through yourself at a wall.
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 19th Aug 2010 14:05 Edited at: 19th Aug 2010 14:14
This code..


should be..


When a person has nothing but a dream, can he dare to dream.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 19th Aug 2010 15:02
well I did




and it works fine thanks for help .

Go through yourself at a wall.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 20th Aug 2010 19:12
I acually changed the undo code because this was acually bugging out.
It worked partly, but I used images instead to acually undo and redo changes.
Just with:

dbMakeImageFromMemblock

The problem with this method is Dark GDK can only make only about 250 images, but this seems more stable. The other way works but I get lots of memory leeks and I think that might be bad.

Any how this is what I got done on hightmap the undo and redo function, File Save,File Open. I do this with MFC. I also got a toolbar in progress.

come on vent
lead.typefrag.com
16020

Go through yourself at a wall.
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 21st Aug 2010 08:30
You really dont have to make DarkGDK images for every history for your undo and redo. You can save the image data in a separate object and then recreate and destroy the DarkGDK images when undo and redo is needed.

Make sure you use the dbLoadImageEx as there is a problem using memblocks with dbLoadImage.

I have no idea how to go to vent. When i open lead.typefrag.com, I get invalid hostname in my browser.

When a person has nothing but a dream, can he dare to dream.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 23rd Aug 2010 01:50
This show some resons why i need good undo function

http://forum.thegamecreators.com/?m=forum_view&t=172595&b=8

Go through yourself at a wall.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 23rd Aug 2010 01:51
Oh you download ventrillo and then you can voice chat on it.

come on vent
lead.typefrag.com
16020

Go through yourself at a wall.

Login to post a reply

Server time is: 2024-11-19 18:20:53
Your offset time is: 2024-11-19 18:20:53