User talk:Padmanabhanmca

Testing Dll // header file //hello.h


 * 1) ifndef _HELLO_H_
 * 2) define _HELLO_H_


 * 1) if BUILDING_DLL
 * 2) define DLLIMPORT __declspec (dllexport)
 * 3) else /* Not BUILDING_DLL */
 * 4) define DLLIMPORT __declspec (dllimport)
 * 5) endif /* Not BUILDING_DLL */

//class DLLIMPORT DllClass //{ //public: //DllClass; // virtual ~DllClass(void);

// private:

//};

extern "C" __declspec (dllexport) void HelloWorld;


 * 1) endif /* _DLL_H_ */

/* DO NOT EDIT THIS FILE - it is machine generated */ /* Header for class HSAnal_HelloWorld */
 * 1) include "jni.h"

extern "C" { /* JNIEXPORT void JNICALL Java_NewWorld_HelloWorld(JNIEnv *, jclass);
 * 1) ifndef _Included_NewWorld
 * 2) define _Included_NewWorld
 * 3) ifdef __cplusplus
 * 1) endif
 * Class: HSAnal_HelloWorld
 * Method: JdisplayHelloWorld
 * Signature: V

} // hellomain.cpp for dll
 * 1) ifdef __cplusplus
 * 1) endif
 * 2) endif

/* Replace "dll.h" with the name of your header */


 * 1) include "hello.h"
 * 2) include 
 * 3) include

extern "C" __declspec(dllexport) void HelloWorld {    printf("HELLO WORLD"); }

//Entry Point

BOOL APIENTRY DllMain (HINSTANCE hInst    /* Library instance handle. */,                       DWORD reason        /* Reason this function is being called. */ ,                       LPVOID reserved     /* Not used. */ ) {   switch (reason) {     case DLL_PROCESS_ATTACH: break;

case DLL_PROCESS_DETACH: break;

case DLL_THREAD_ATTACH: break;

case DLL_THREAD_DETACH: break; }

/* Returns TRUE on success, FALSE on failure */ return TRUE; }