/* DecorationsPrintStack.c 2005-09-15 File created. 2005-09-15 Last modification. This file can be compiled and linked with the following command when Microsoft C++ tools are in use: cl -I\jdk1_3_1\include -I\jdk1_3_1\include\win32 -LD Decoratio nsPrintStack.c -FeDecorationsPrintStack.dll The problem on 1.8.2005 at 19:45 was that I could not create a valid .dll file with the Borland tools. The following day I managed to create the .dll file with Microsoft C++ tools. */ #include "DecorationsPrintStack.h" #include JNIEXPORT void JNICALL Java_DecorationsPrintStack_print_1stack (JNIEnv* environment, jclass this ) { int some_variable = 9 ; int stack_positions_printed = 0 ; int* stack_position = &some_variable ; while ( stack_positions_printed < 128 * 4 ) { printf( "\n Memory address %8x contains %8x", (long) stack_position, *stack_position ) ; stack_position ++ ; stack_positions_printed ++ ; } }