|
-
Oct 16th, 2003, 03:29 PM
#1
Thread Starter
Member
DirectDraw VB C++ *Resolved*
I have been working on a game for some time now in C++ using DirectDraw, for reasons i changed to VB still using DirectDraw. I noticed that the tutorials that i took in vb dont release any of the surfaces. Is this done automatically or am i meant to do like in c++
thnx in advance...
Last edited by Nafreya; Oct 20th, 2003 at 04:15 AM.
"Microsoft isn't evil, they just make really crappy operating systems."
-Linus Torvalds
-
Oct 16th, 2003, 04:49 PM
#2
Neither C++ or VB has a garbage collector. But VB is not so hard on you like C++ is. But all the things you are defining as "new" in VB is ment to be released the same way as C++. So there is not that much as in C++ but there are some things...I can't remember if surfaces are created that way in VB...and I don't have the time to check it now....but if you can't figure it out for your self. I will be happy to look it up for you on saturday or something...
BTW do you know any great tutorials for newbies in C++ DX?
-
Oct 16th, 2003, 04:59 PM
#3
Thread Starter
Member
Well im not sure but i think its done automatically, Ne way ill find out wen i load more images to memory.
Ye i know a good tutorial its the one i learned off: http://sunlightd.virtualave.net/Windows/DirectX/
thnx for help
"Microsoft isn't evil, they just make really crappy operating systems."
-Linus Torvalds
-
Oct 17th, 2003, 02:31 AM
#4
KING BODWAD XXI
-
Oct 17th, 2003, 05:04 AM
#5
Thread Starter
Member
"Microsoft isn't evil, they just make really crappy operating systems."
-Linus Torvalds
-
Oct 17th, 2003, 05:48 AM
#6
Thanks I will have a look at it when I have some time....
Have to do some QT stuff first.,...
-
Oct 19th, 2003, 04:47 PM
#7
Originally posted by NoteMe
Neither C++ or VB has a garbage collector. But VB is not so hard on you like C++ is. But all the things you are defining as "new" in VB is ment to be released the same way as C++. So there is not that much as in C++ but there are some things...I can't remember if surfaces are created that way in VB...and I don't have the time to check it now....but if you can't figure it out for your self. I will be happy to look it up for you on saturday or something...
VB uses garabge collection as well as C# and anything using managed extensions.
C++ only uses garbage collection when using something like the .NET framework (since the framework uses garabge collection for EVERYTHING), otherwise C++ uses RAII.
The keyword "new" does NOT release data in VB the same way as C++. When you use new with C++, you're usually putting something on the heap in which you must manually close or kill it within a scope.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|