|
2010-08-29
, 09:08
|
|
Posts: 1,296 |
Thanked: 1,773 times |
Joined on Aug 2009
@ Budapest, Hungary
|
#12
|
The Following User Says Thank You to Venemo For This Useful Post: | ||
|
2010-08-29
, 09:47
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#14
|
this require me to write my C code inside C++ file, that I do not know, and probably I will damage it.
Seems more easy to me, keep separate as much as possible the C++ and C, keeping them in different files.
For example the C++ code generated by QTCreator remain untouched with them methods, and the C algorithm in my hand written files the same. For sure I will add the C++ method invocation to my C part (like a C function call). It is possible?
...
and then compile both with a C++ compiler.
This let me have more confidence with algorithm file, because I understand error and warning better, as all the file is C syntax but the C++ method invocation only (I do not expect syntax error and problems on QTCreator generated files).
With this solution, the only thing I don't know (apart QT), is how to call a C++ method, the syntax needed (an example of course), taking care that arguments to be passed are variables defined with C syntax, keeping all previous C code intact.
This facilitate the port from a pure CLI C, and also from GTK+ C code.
I suppose will call functions by pointer, and pass variables by pointer (that it is probably what happen to C++ object code when is traslated to C at the start of compilation).
|
2010-08-29
, 17:46
|
Posts: 222 |
Thanked: 205 times |
Joined on Jul 2009
@ Finland
|
#15
|
|
2010-08-29
, 17:50
|
Posts: 222 |
Thanked: 205 times |
Joined on Jul 2009
@ Finland
|
#16
|
this require me to write my C code inside C++ file, that I do not know, and probably I will damage it.
|
2010-08-29
, 17:54
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#17
|
Maemo Community, Standing on the shoulders of giants
The Maemo community built up around the Nokia Internet Tablets has grown steadily over the last 6 years.
Over 25,000 developers have been involved in the community at different stages creating a wealth of products and knowledge, ranging from little hacks that soothed an itch, to full-blown games, kernel modules and even quality assurance procedures.
....
This planning is underway at the moment and Maemo and Meego team members are working together to port the first shining light examples of GTK/Hildon applications within the handset image.
Combined with the lessons learned in community builds of the Hildon libraries and the skilled OBS hackers we believe its possible to achieve this task.
Many great Maemo applications will hopefully become available on your Meego handset devices for your continued enjoyment.
|
2010-09-04
, 12:12
|
Posts: 56 |
Thanked: 31 times |
Joined on Jul 2008
@ Austria
|
#18
|
|
2010-09-04
, 12:56
|
Posts: 222 |
Thanked: 205 times |
Joined on Jul 2009
@ Finland
|
#19
|
|
2010-09-04
, 12:58
|
Posts: 56 |
Thanked: 31 times |
Joined on Jul 2008
@ Austria
|
#20
|
Seems more easy to me, keep separate as much as possible the C++ and C, keeping them in different files.
For example the C++ code generated by QTCreator remain untouched with them methods, and the C algorithm in my hand written files the same. For sure I will add the C++ method invocation to my C part (like a C function call). It is possible?
This let me have more confidence with algorithm file, because I understand error and warning better, as all the file is C syntax but the C++ method invocation only (I do not expect syntax error and problems on QTCreator generated files).
With this solution, the only thing I don't know (apart QT), is how to call a C++ method, the syntax needed (an example of course), taking care that arguments to be passed are variables defined with C syntax, keeping all previous C code intact.
This facilitate the port from a pure CLI C, and also from GTK+ C code.
I suppose will call functions by pointer, and pass variables by pointer (that it is probably what happen to C++ object code when is traslated to C at the start of compilation).
thanks