乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 98|回复: 6

[编程交流] Old program doesn't work

[复制链接]

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 22:05:56 | 显示全部楼层 |阅读模式
On acad we use some own created lisp routines. We also use an "*.exe" program, probably created in lips and compiled in exe and made by an old collegue. We don't have the source code for this. This program is maybe 20 to 25 years old. This program is used for the input and drawing of some things we use. We never had problems with this program.
 
Up until now we used 32 bit Windows versions.
We now just switched to new computerhardware with 64bit windows 8.1.
 
The lisp routines stil work but the biggest problem is the exe-file. When trying to run in acad it says the program is not compatible with the current windows version.
So, I think it is a 16 bit program we try to run on a 64 bit OS.
 
Is there anything we can do about this.
回复

使用道具 举报

12

主题

152

帖子

140

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
60
发表于 2022-7-6 22:21:51 | 显示全部楼层
Have you attempted to run it in compatibility mode yet?
 
link
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 22:33:09 | 显示全部楼层
 
Your .EXE is a compiled, external, stand-alone application, and not an internal routine such as LISP, nor an AutoCAD plug-in (.DLL)... External code that accesses AutoCAD uses COM API (as a generalization), which is environment dependent (i.e., 32-bit vs 64-bit), and requires a recompile for 64-bit environment.
 
If this code was produced by a former employee, then presumably it was not obfuscated, so you can simply decompile with IlSpy, etc. and paste the source code into your own, new Visual Studio project and compile for the correct environment, or simply port the code to .NET API if you can still get a hold of the 2009 SDK (the version you list as using, unless you've upgrade that too, with Win8.1?).
 
Cheers
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 22:40:55 | 显示全部楼层
 
The program reads values from a text file and makes a script file (together with some input) for everything that has to be drawn. Running this script file will draw everything needed.
 
I will try to decompile it.
Can I recompile it with the visual basic editor within acad or do I need a special program?
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 22:49:36 | 显示全部楼层
I tried to load the "exe" file in IlSpy but I get the message: "This file does not contain a managed assembly."
 
The "exe" file was originally created many years ago (around autocad 10 or 12 I think). I don't know how it was created.
Is there a way to know how it was created and the to decopile it with a correct program?
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 23:03:28 | 显示全部楼层
Well, that's not good... It sounds like you're going to have to start from scratch, if we cannot get you the source.
回复

使用道具 举报

0

主题

1

帖子

1

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-6 23:15:48 | 显示全部楼层
Hello Andy, I specialize in writing AutoCAD arx programs. If you decide to have recreate it I can do it for you at a reasonable rate. My contact info is: Joe Thompson, jmatthew.thompson@gmail.com
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-6-29 02:18 , Processed in 1.448943 second(s), 67 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表