T
tomb
I had originally posted this to the comp.lang.C++.moderated group, and
was advised to bring this question here.
I haven't used C++ in quite a few years, and that was when I was
learning and made only console applications, but I remember the .h files
only had the function declarations, and the .cpp files had the
implementation. I just used the project wizard in .net 2003 to
start a new C++ project, .net forms style, and the private events for
the form are only showing up in the .h header file. ??? In fact, even
the constructor implementation is in the header file. Is this normal
for forms? Or has C++ changed?
Based on one of the responses posted in the other group, I was thinking
it may be better to transfer the actual functionality to the .cpp file
and put a function definition in the header, rather than having a bunch
of inline functions in the header to cover the form events. Does this
sound like the proper approach?
Tom
was advised to bring this question here.
I haven't used C++ in quite a few years, and that was when I was
learning and made only console applications, but I remember the .h files
only had the function declarations, and the .cpp files had the
implementation. I just used the project wizard in .net 2003 to
start a new C++ project, .net forms style, and the private events for
the form are only showing up in the .h header file. ??? In fact, even
the constructor implementation is in the header file. Is this normal
for forms? Or has C++ changed?
Based on one of the responses posted in the other group, I was thinking
it may be better to transfer the actual functionality to the .cpp file
and put a function definition in the header, rather than having a bunch
of inline functions in the header to cover the form events. Does this
sound like the proper approach?
Tom