   some ???s
  im learning directdraw & stuff with Tricks of the windows game programming gurus. its a good book, but its written for C a lot more than c++im just asking how to change some of the c stuff to c++ (plz tell me if this is the wrong forum to ask this im new to this site)change memset to ???would delete be better than Release() for ddraw objects?how does memcpy change to c++ to make it better ( & what is it?)thx   
  well, you want to use Release(), because DX keeps a record of all of the objects in memory, if i am not mistaken.   ;  why would you want to change c into c++? you'll gain nothing.   ;Quote:Original post by MrBeanerwell, you want to use Release(), because DX keeps a record of all of the objects in memory, if i am not mistaken.thxid quote 2nd thing but i dont no how after u do one (can someone answer that)but its because all the books ive read say that all the c++ functions typecheck better and are generally safer   ;  what you want to quote should be surounded by these with [ ] instead of < >Quote:<quote>text to be quoted</quote>;Quote:Original post by CJWRwhy would you want to change c into c++? you'll gain nothing.Just because you don't understand something well doesn't mean it has no advantages.   ;  As far as I'm aware c++ is backwards compatible. Therefore any valid c code is also valid c++ code.   ;Quote:Original post by napoleondynamitechange memset to ???There is no "C++ equivalent" for memset. There isn't any need for it. The Standard C++ Library includes the entire Standard C Library (pre-C99), so memset is C++.Quote:would delete be better than Release() for ddraw objects?Release decrements the internal reference count to the COM interface that represents the DirectDraw object. delete deletes dynamically allocated C++ memory/objects, optionally calling a destructor. You should only call delete on objects you allocated with new (similarly, only call free on memory you allocated with malloc, calloc or realloc).Quote:how does memcpy change to c++ to make it better ( & what is it?)Just as with memset, memcpy is C++.   ;Quote:Originally posted by napoleondynamiteid quote 2nd thing but i dont no how after u do one (can someone answer that)You type the quote tags by hand, and copy/paste the text you wish to quote.  There is information on the quote tags in the main forum FAQ.  It also contains information on posting source-code, which you may at a later stage have use for when asking for help, in addition to a few other things such as a few rules, and the codes for posting emoticons. [smile]  If you're wondering anytime, links are made on the forums using regular HTML.   