- 积分
- 58
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-11-2
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 641477497 于 2012-11-7 17:37 编辑
import com.idl.javaidl.*;
public class GeoGen
{
public static void main(String[] args)
{
java_IDL_connect ostock;
ostock = new java_IDL_connect();
ostock.createObject();
String CurDir = System.getProperty("user.dir");
String StrCmd1 = "restore,'" + CurDir + "/geometrygen.sav'";
System.out.println(StrCmd1);
ostock.executeString(StrCmd1);
String StrCmd2 = "geometrygen,folder_name='/root/data_demo/'" + ",icnfile_name='" + CurDir + "/geogen.ico'";
System.out.println(StrCmd2);
ostock.executeString(StrCmd2);//这一行有问题
ostock.destroyObject();
}
一段win下面的c++程序,移植过来有问题,求指点!!!
报错提示:
Exception in thread "main" com.idl.javaidl.JIDLException[iErr=-225 sMsg=Expression must be a structure in this context: TIF_INFO.] at com.idl.javaidl.JIDLPAL.nativeThrowJIDLException(Native Method) at com.idl.javaidl.JIDLPAL.throwSpecificException(JIDLPAL.java:1069) at com.idl.javaidl.JIDLPAL.throwJIDLException(JIDLPAL.java:1098) at com.idl.javaidl.JIDLPAL.executeString(JIDLPAL.java:754) at com.idl.javaidl.JIDLObject.executeString(JIDLObject.java:657) at GeoGen.main(GeoGen.java:17)
|
|