what I did was right clicked on project and clicked on add existing libraries. These syntaxes gets written when we complete adding libraries.
My Main function looks like this :
#include "mainwindow.h"
#include <stdio.h>
#include <QApplication>
#include"fgrab_define.h"
#include "fgrab_prototyp.h"
#include "fgrab_struct.h"
using namespace std;
#define DLLNAME "DualAreaGray16.dll"
int main(int argc, char *argv[])
{
Fg_Struct *fg = NULL;
fg = Fg_Init(DLLNAME, PN_MICROENABLE4AD1CL ); //function defined in library
return a.exec();
}
#include "mainwindow.h"
#include <stdio.h>
#include <QApplication>
#include"fgrab_define.h"
#include "fgrab_prototyp.h"
#include "fgrab_struct.h"
using namespace std;
#define DLLNAME "DualAreaGray16.dll"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Fg_Struct *fg = NULL;
fg = Fg_Init(DLLNAME, PN_MICROENABLE4AD1CL ); //function defined in library
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks