what's wrong in my C program ?
- by user292084
a cpp file:
#include <iostream>
#include <jni.h>
#include "Hello.h"
#include "windows.h"
#include "stdafx.h"
#define HINSTANCE "hDll"
typedef void(__stdcall *Print_)();
int main(){
HINSTANCE hDll; //DLL??
Print_ print_; //????
hDll = LoadLibrary("Hello.dll");
if (hDll != NULL)
{
print_ = (Print_)GetProcAddress(hDll,"Java_Hello_sayHello@8");
if(print_!=NULL)
{
print_();
}
FreeLibrary(hDll);
}
return 0;
}
//there is something wrong, it prints:
http://i983.photobucket.com/albums/ae311/keatingWang/c_wrong.png
??????? means : Undeclared identifier