confused (header files and .CPP files)

confused (header files and .CPP files)

rbh2024
Enthusiast Enthusiast
362 Views
1 Reply
Message 1 of 2

confused (header files and .CPP files)

rbh2024
Enthusiast
Enthusiast
in C++ you make header files that contain the def of the object. then you do .cpp files for functions and to tie it all together another .cpp file.
I am very confused with object ARX. as to how the file structure is set up. if some could explain I would reallllllllly appreciate it
0 Likes
363 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Vague question, vague answer.

First, in C++, you don't need more than one cpp and one .h file to write a
class. Whereas .h is used for data definition and function prototype
declaration, the cpp file includes the actual implementation of those, given
the header is #include(d). Although a separate program file that uses
written objects is customary, it's by no means necessary for technical
reasons. Plus, you can define and implement the entire object in one cpp
file (no .h file), in which case instead of just declaring function
prototypes, you also implement them in the same file. Keep in mind that if
you define/implement them Java -style (inline implementation), your member
functions will be compiled as inline. That will result in bloated size, and
increased performance. If any or much of this sounded new, you might want
to brush up on C++.
As far as descriptions of how the flow of execution occurs in arx dlls, I
recommend a book "Programming AutoCAD2000 with ObjectARX". You can look it
up at amazon.

Alex.
"miyamoo" wrote in message
news:f0ecd65.-1@WebX.maYIadrTaRb...
in C++ you make header files that contain the def of the object. then you do
.cpp files for functions and to tie it all together another .cpp file.
I am very confused with object ARX. as to how the file structure is set up.
if some could explain I would reallllllllly appreciate it
0 Likes