Can you please give us a simple sample of your attempt?
Like "Hello, world!"?
Along with error message(s) from compiler?
Source Code:
-
#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;
-
}
-
Here is the Compilation result
------ Build started: Project: as, Configuration: Debug Win32 ------
Compiling...
as.cpp
.\as.cpp(6) : error C2143: syntax error : missing ';' before '*'
.\as.cpp(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\as.cpp(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
.\as.cpp(14) : error C2653: 'AppAPI' : is not a class or namespace name
.\as.cpp(14) : error C3861: 'Init': identifier not found
.\as.cpp(20) : error C2065: 'App' : undeclared identifier
.\as.cpp(20) : error C2653: 'AppAPI' : is not a class or namespace name
.\as.cpp(20) : error C3861: 'Create': identifier not found
.\as.cpp(25) : error C2653: 'AppAPI' : is not a class or namespace name
.\as.cpp(25) : error C3861: 'Start': identifier not found
.\as.cpp(30) : error C2143: syntax error : missing ';' before '.'
Build log was saved at "file://c:\Documents and Settings\jagmeet\My Documents\Visual Studio 2005\Projects\as\as\Debug\BuildLog.htm"
as - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========