My code is :
It will throw "Access violation",
I found System::out is null.
my environment: vc6 sp4, acdk 4.14
ACDK code needs to be initialized and wrapped by
a main function.
Here is the sample code:
using namespace acdk::lang;
int acdkmain(RStringArray args)
// Your code starts here and System::out is
System::out->println("Hello from miniacdksample");
main(int argc, char* argv, char** envptr) // C++ Main
// ACDK (f.e. System::out) is uninitialized
return acdk::lang::System::main(acdkmain, argc, argv, envptr); // Initialize ACDK
Because ACDK has to manage several issues -
like threading, memory management, locals and exception handling
(which translates "Access violation" in the '->' operator
to a NullPointerException) - the C++ main function
has to be wrapped with an acdk main function.
Log in to post a comment.