//This is in .h
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
void S7API CliCompletion(void *usrPtr, int opCode, int opResult);
~MainWindow();
.
.
.
//When I say right click and "add definition in mainwindow" I have got this in .cpp
void MainWindow::CliCompletion(void *usrPtr, int opCode, int opResult)
{
}
// Now, My problem what is S7API here,I have not encountered like this in C language.What does it do here.what is it.Where do I have to look in Dietel book.
It is either __stdcall (which is a MSVC-specific extension specifying the calling convention) or nothing, depending on whether or not the macro OS_WINDOWS is defined.
Yes I know this is related with third-party library, as actual that I didn't understand,why was it used .What is the aim?Because this function does not return a value.When is this use?