Im creating a dll which can be called from java.
My program has no purpose at the moment im just trying to learn more about c++.
I have a simple Function. Which should display a form.
I didnt use a void so i know that it has been called file
Its called three because its my third function in the class.
The TForm2 class is the default code which the IDE has created.
Im using CodeGear C++ Builder.
My error is:Code:extern "C" __declspec(dllexport) JNIEXPORT int JNICALL Java_JNITest_three(JNIEnv *, jobject){ TForm2 tform1 = new TForm2(0); // line 41 tform1.Show(); return 3;}
Anyhelp would be great thanks,Code:[BCC32 Error] File4.cpp(41): E2459 VCL style classes must be constructed using operator new