Thanks in advance
That is probably more of a platform question than a language one. The
concept of a module, and how to build and use one, varies from platform
to platform.
--
Ian Collins
I don't think there is any one fixed meaning of the term "Modular
Programming".
Of course, if you were using Modula-2, then "Module" might have a
specific meaning --- it is a specific construct in the language.
IMHO, "Modular Programming" depends on the bases / criteria you use to
modularise (decompose ?) your design / implementation.
If you chose to modularise according to 'Structured Programming' then
your modules would be functions / procedures arrived at in a particular
manner. In C or in C++ you would probably have one or more header files
(.h) containing function prototypes / declarations together with
accompanying .c / .cpp files containing the definitions / bodies.
An obvious modularisation basis for C++ is to base the modules on
classes. These classes could define objects and maybe the modularisation
basis would be data abstraction, i.e. the classes define abstract data
types.
Or, you could employ functional decomposition and design the classes to
export static functions.
I doubt if you will find anything more useful or specific on the web.
Best regards,
Jon C.
--
Jonathan Campbell www.jgcampbell.com BT48, UK.
What do you mean by "modules"? Are you referring to shared libraries?
Rui Maciel
Those things aren't language dependent. The C++ language does not
define how to make them. They are defined by Firefox guys, Microsoft
guys for IE ActiveX stuff, Photoshop guys for their plug-ins etc.
BR, WW