what's wrong in my C program ?
Posted
by user292084
on Stack Overflow
See other posts from Stack Overflow
or by user292084
Published on 2010-04-13T05:11:49Z
Indexed on
2010/04/13
5:22 UTC
Read the original article
Hit count: 396
Filed under:
c
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
© Stack Overflow or respective owner