I want to use API's in VC++ ...
Can anyone tell me how to include the files.....
I am not getting API headers in VC++
Can anyone tell me how to include the files.....
I am not getting API headers in VC++
#include "appapi.h"
/*commenting above header gives the compilation errors problem with header... */
#include "iostream"
using namespace System;
class MyApp
{
AppAPI *App;
public:
MyApp();
int StartScheduler();
static const int StartFun(void *userdata);
};
int main()
{
if (AppAPI::Init()) exit(0);
MyApp *app = new MyApp;
return app->StartScheduler();
}
MyApp::MyApp()
{
App = AppAPI::Create();
if (App == NULL) exit(1);
}
int MyApp::StartScheduler()
{
return AppAPI::Start(App, &MyApp::StartFun, this);
}
const int MyApp::StartFun(void *userdata)
{
MyApp *app = (MyApp *)userdata;
.
.
.
return 0;
}
Comment