With all due respect 
It has got nothing to do with Qt ? The question is how to call function within another ?
Please go through this link http://newdata.box.sk/bx/c/htm/ch05.htm
Incase the function is in a .c file; then you have to declare it as extern " C " somewhat like this
OriginalHeader.h
void readDrive( /*blah blah*/ );
void readDrive( /*blah blah*/ );
To copy to clipboard, switch view to plain text mode
then change it to
ChangedHeader.h ( note: need not chage the header name )
#ifdef __cplusplus
extern "C" {
#endif
void readDrive( /*blah blah*/ );
#ifdef __cplusplus
};
#endif
#ifdef __cplusplus
extern "C" {
#endif
void readDrive( /*blah blah*/ );
#ifdef __cplusplus
};
#endif
To copy to clipboard, switch view to plain text mode
Rest of the code will remain the same
Bookmarks