Post

 Resources 

Console


C,C++ rocks, VB is Better Computer Weasel (2 replies, 0 views) (2000-Oct-19)
-
VB does not need a dll, and is not an interrupted language. The Dll is used to ole automation of standard controls, and the code is compiled into machine code. The code is not as tight (Small) as C,C++ and does not run as fast. … C++ pointer. I agree with almost everyone here. Pointer suck, there are a pain in my butt. But C, C++ uses pointers to do stuff that VB can not do because it dose not have them. Such as a linked list. Most of the time this is not a big deal not having the availably in VB. But other time it is almost a must. Say that I have a Game that has a random number of asteroids, each with a different location and movment. Type Asteroid X as integer Y as integer Xincr as Double Yincr as Double Status as Integer ActiveCreatures as Creatures End Type In order to display draw all of them in a orderly fashion I could use a array – redim’s are slow, multi-dim arrays are messy, are god forbid I want to remove something from the middle of a array Use a Collection, - there is a lot of overhead bulk in a collection, plus classes don’t like passing UDT to external functions. In C,C++ I simply crate a UDT struct Asteroid { int X; int Y; float Xincr; float Yincr; int Status; Asteroid *NextAsteroid; Creatures *NextCreatue; }; If I want another Asteroid I create it, if I want to destroy on I change the pointer I would rather use VB than C,C++ , but there are limitations


-
Up One Level | Back to Forum

RE: C,C++ rocks, VB is Better Corre (1 reply) (2000-Oct-19)
IDEA! Lorn (0 replies) (2000-Oct-19)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 145 visitors within the last 20 minutes
RSS News Feed