程序:tstfile.c
#include
by bjtubin - C/C++ - 2006-11-27 18:50:50 阅读(3967) 回复(4)
从网上找了这篇文档,做这个的时候感觉并不是特困难,感觉非常的新奇,毕竟自己做c语言的项目特别少.现在把这篇文章转载过来,加了自己的一些注意项。 JNI使用技巧点滴 本文为在 32 位 Windows 平台上实现 Java 本地方法提供了实用的示例、步骤和准则。本文中的示例使用 Sun Microsystems 公司创建的 Java Development Kit (JDK) 版本 1.4.1。用 c 语言编写的本地代码是用 Microsoft Visual c++ 6.0编译器编译生成。 简介 近...
[code] #include "stdio.h" #include "assert.h" void main(int argc, char *argv[]) { const char *fr; const char *fw; FILE *readFile; FILE *writeFile; char temp[80]; if(argc>1 && argc<4) { fr = argv[1]; fw = argv[2]; assert((readFile = fopen(fr,"r")) != NULL); assert((writeFile = fopen(fw,"w")) != NULL); } else if(argc == 1) { printf("fcopy [option] filname1 filename2\n"); prin...
我大概知道应该用 extern "c" ,但是不知道具体怎么使用?我查了一下也没查到,c++中的“类”如何导出?如何调用呢? 有没有人可以给我一个简单点的例子,谢谢!!
JNI使用技巧点滴 本文为在 32 位 Windows 平台上实现 Java 本地方法提供了实用的 示例、步骤和准则。本文中的示例使用 Sun Microsystems 公司创建的 Java Development Kit (JDK) 版本 1.4.1。用 c 语言编写的本地代码是用 Microsoft Visual c++ 6.0编译器编译生成。 简介 近日,由于项目需要,要在WEB页面实现图像转换功能,而Vc在图像转换方面有着得天独厚的优势。我们首先用Vc封装出图像转换的DLL,...