标题:请问".h"是什么文件格式?
取消只看楼主
harryketty
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-4-17
 问题点数:0 回复次数:0 
请问".h"是什么文件格式?
请问各位高手:

".h"是什么文件格式?
  1. public class testdll
  2. {
  3. static
  4. {
  5. System.loadLibrary("goodluck");
  6. }
  7. public native static int get();
  8. public native static void set(int i);
  9. public static void main(String[] args)
  10. {
  11. testdll test = new testdll();
  12. test.set(10);
  13. System.out.println(test.get());
  14. }
  15. }

用javac testdll.java编译它,会生成testdll.class。
再用javah testdll(这里是什么意思?),则会在当前目录下生成testdll.h文件。
搜索更多相关主题的帖子: 格式 文件 
2006-05-05 22:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-62067-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.191099 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved