Click to See Complete Forum and Search --> : Procedural and Component based programming


arlenagha
04-29-2003, 01:30 AM
could someone please tell me what these two are and how are they different? i am learning c++ so it would be nice to see some code as examples.

i think i know what procedural programming is but not sure. is it when differenct function are used in certain order to do something? i know nothing about component-bsed programming though.

thanks in advance

Stuka
04-30-2003, 10:01 AM
Procedural programming is just that - breaking down a program into procedures (functions, subroutines, whatever you wanna call 'em) and then putting these together to create a program. Component-based programming allows you to take pre-built components (ActiveX controls are a prime example) and put them together so that they communicate with each other (usually through a system of callbacks or signals/slots) and solve your programming problem.