10-27-2013, 04:33 AM
Dear Gents,
My learning curve is going like this,
After adding user interface by using Win32 API
and after using OpenGL to draw items (Lines ,points ,...)
Finally I understand one new problem ,
All C & C++ Code are not run time code
I mean your data during compiling time..
But to build a real program , you need to add run-time data during using program by the user..
at this moment I discovered one missing point..and I learn a great thing..
How to manage the Memory during Run time..
and I understand how to build the data during run-time
It is very simple..
during run time if you are using C you have to use memory allocate ..which will cut a new location in memory during run time ..
and if you are using C++ you will use "New" to do same function
Finally all data is built by very simple concept :
How to Store part of memory ,then how to know the address of this one By Using Pointer
then how to add next data by creating next pointer and so and so until you build all your data structure that you need..
My Last Step Now - But simple step - How to move data from file to meomery and also how to move data from memory to file .. it is easy..
So I found solution with C++ for this issue by using Template <Vector> as example
Any way..I think this is the last step to build my simple code haha..
The good news L will release my first trial program .. very simple very soon..
And I hope with my collegues we can develop this tool to do many engineering works ( strucutral design ) with simple graphic out.
My learning curve is going like this,
After adding user interface by using Win32 API
and after using OpenGL to draw items (Lines ,points ,...)
Finally I understand one new problem ,
All C & C++ Code are not run time code
I mean your data during compiling time..
But to build a real program , you need to add run-time data during using program by the user..
at this moment I discovered one missing point..and I learn a great thing..
How to manage the Memory during Run time..
and I understand how to build the data during run-time
It is very simple..
during run time if you are using C you have to use memory allocate ..which will cut a new location in memory during run time ..
and if you are using C++ you will use "New" to do same function
Finally all data is built by very simple concept :
How to Store part of memory ,then how to know the address of this one By Using Pointer
then how to add next data by creating next pointer and so and so until you build all your data structure that you need..
My Last Step Now - But simple step - How to move data from file to meomery and also how to move data from memory to file .. it is easy..
So I found solution with C++ for this issue by using Template <Vector> as example
Any way..I think this is the last step to build my simple code haha..
The good news L will release my first trial program .. very simple very soon..
And I hope with my collegues we can develop this tool to do many engineering works ( strucutral design ) with simple graphic out.