China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 20:45
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » What tool should be used to view the interface function names in the lib library? View 3,365 Replies 5
Original Poster Posted 2010-10-14 10:56 ·  中国 江苏 南京 秦淮区 电信
初级用户
Credits 65
Posts 26
Joined 2010-07-29 17:15
16-year member
UID 171437
Gender Male
Status Offline
What tools can be used to view the interface function names in the lib library?

Under Windows, there are many tools to view DLLs, such as Depends that comes with VC.

But for lib files under DOS, it can't be viewed.

I don't know what tools can be used to view?

PS: I just want the function names, not the function interfaces. Of course, if there is a magical tool that can directly see the interface without decompiling, that would be the best, heh heh.
Floor 2 Posted 2010-10-14 22:23 ·  中国 山西 运城 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Actually, you can get a general idea by using Notepad. For a more advanced approach, use UltraEdit or WinHex. For a professional level, use tools like Strings and so on.
Floor 3 Posted 2010-10-25 14:58 ·  中国 上海 联通
初级用户
Credits 65
Posts 26
Joined 2010-07-29 17:15
16-year member
UID 171437
Gender Male
Status Offline
No way, I opened it with UE and there are a bunch of function names. I really don't know which one I should call - -
Floor 4 Posted 2010-11-07 00:53 ·  中国 上海 电信
中级用户
★★
Credits 326
Posts 70
Joined 2003-01-10 00:00
23-year member
UID 718
Gender Male
Status Offline
Libraries are generally visible in *.h files, which are very detailed. Take a close look!
Floor 5 Posted 2010-11-08 22:30 ·  中国 广东 深圳 电信
初级用户
Credits 65
Posts 26
Joined 2010-07-29 17:15
16-year member
UID 171437
Gender Male
Status Offline
Of course, there are no h files - -
Floor 6 Posted 2010-11-26 08:06 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
19-year member
UID 94024
Gender Male
Status Offline
You can use LIB.EXE that comes with assembly language to export function and public variable names, and also extract the corresponding module's.obj file. Use obj2asm xxx.obj >xxx.asm. If there are no extren modules and variables in the asm, you can declare the module functions as extern in the main program and then use this function by linking the main program.obj + xxx.obj. If there are extren modules, you need to gradually extract the corresponding modules until there are no extren modules.

If you are too lazy to extract, you can also use L2INC.EXE (available in MASM32) to get the LIB reference header file xxx.inc (in assembly language format). Remember to link the lib when linking.

[ Last edited by netwinxp on 2010-11-26 at 08:10 ]
Forum Jump: