最近想用VB6编写一些DLL给其他编程工具使用,但是,众所周知,用 VB6 编写的 DLL 其实是COM的组件,并非标准的 DLL,给其他编程工具用是很麻烦的!网上流传的什么自己写个 Link.exe 然后改名、设置断点等方法看上去很不爽,在外国网站找到一个在VB6的插件源码,是专门用来在VB6下编写标准的 DLL 的,但使用文档全都是 E文(E文对于俺考试从未超过40分的人来说简直是要俺的命啊!),一知半解的看不明白,用G哥在线翻译看得也痛苦!!!看那位高材生帮忙翻译一下,先谢过了!
-------------------------------------------------------------------------------------------------
Readme.txt    Create in Visual Basic version 2
   (c) 2004 DanSoft Australia - http://dansoftaus.r8.org/
   [MAXIMIZE NOTEPAD FOR BEST VIEWING EXPERIENCE ;)]NOTE: If you used the first version of my 'Make DLL's in VB' utility, you need to uninstall it.
      See the instructions at the bottom.'Visual Basic directory' refers to the folder that Visual Basic is installed in, usually
'c:\Program Files\Microsoft Visual Studio\VB98'Here are the instructions to install this utility:0) Unzip the zip file -- Remember to extract paths!
1) Open 'Linker.vbp' (in the 'linker' folder) and compile it.
2) Copy the 'MakeDLL.exe' file (in the 'compiled' folder) to your Visual Basic directory.
3) Open 'MakeDLLAddin.vbp' (in the 'addin' folder) and compile it
4) Go into Visual Basic, and click Add-Ins -> Add-In Manager. There should be an addin listed
   called 'Create DLLs In Visual Basic' (or similar). Make sure both 'Loaded' and 
   'Load On Startup' are ticked.
4a) If the addin wasn't listed, copy 'MakeDLL.DLL' (in the 'compiled' folder) into your 
    Visual Basic directory and restart Visual Basic.
5) Copy all the files in the 'dll project' folder to your Visual Basic Project Templates folder
   (usually C:\Program Files\Microsoft Visual Studio\VB98\template\projects)Yay! It is now installed! * If you want to create a DLL yourself, go into Visual Basic and choose to create a 
  'Standard DLL' project.
* To choose what functions you want to export into your DLL file, click File -> Choose
  DLL Exports...* To create your DLL, click File -> Make xxxxxxx.dll (this might show as 'Make xxxxxxx.exe', 
  when the save box pops up, just change the extension to .DLL)Sample DLL: 'TestDLL.vbp' (in the 'test dll' folder)
Sample prog that uses that DLL: 'TestProg.vbp' (in the 'test program' folder)If you want to try the Sample program, build the Sample DLL into the 'test program' folder
and then run the sample program.Old Version Uninstall:
To uninstall version 1 of my Make DLLs in VB utility, follow these steps:1) Go into your Visual basic directory (C:\Program Files\Microsoft Visual Studio\VB98)
2) Delete 'LINK.EXE'
3) Rename 'LINK1.EXE' to 'LINK.EXE'
4) Delete 'MakeDLL.DLL' if you know where you put it (this step can be skipped if you don't 
   know where the file is)
5) Follow installation instructions above to install this versionIf you liked this, please vote! (Even if you didn't like it, post comments saying why).
(c) 2004 DanSoft Australia - http://dansoftaus.r8.org/-------------------------------------------------------------------------------------------------

解决方案 »

  1.   

    http://download.csdn.net/source/370713
      

  2.   

    哥哥我E文考试总是不超过10分,看来还不如你(你能得40分)。大概看懂意思就行了,又不让你做语言学家,弄几句给你看看:
    0) Unzip the zip file -- Remember to extract paths!
    0)解压缩这个zip文件到一个文件夹。
    1) Open 'Linker.vbp' (in the 'linker' folder) and compile it.
    1)在‘linker’文件夹里打开‘Linker.vbp’并且编译它。
    2) Copy the 'MakeDLL.exe' file (in the 'compiled' folder) to your Visual Basic directory.
    2)在‘compiled’文件夹里拷贝‘MakeDLL.exe’文件到你的Visual Basic文件夹。
    3) Open 'MakeDLLAddin.vbp' (in the 'addin' folder) and compile it
    3)在‘addin’文件夹打开‘MakeDLLAddin.vbp’并且编译它。
    4) Go into Visual Basic, and click Add-Ins -> Add-In Manager. There should be an addin listed
      called 'Create DLLs In Visual Basic' (or similar). Make sure both 'Loaded' and 
      'Load On Startup' are ticked.
    4)进入Visual Basic并且单击Add-Ins(外接程序) -> Add-In Manager(外接程序管理器),在弹出的列表框里选择Create DLLs In Visual Basic并勾选Loaded(加载/卸载)和Load On Startup(在启动中加载),然后确定。
    4a) If the addin wasn't listed, copy 'MakeDLL.DLL' (in the 'compiled' folder) into your 
      Visual Basic directory and restart Visual Basic.
    4a)假如外接程序不在列表框里,从'compiled'文件夹拷贝'MakeDLL.DLL'到你的Visual Basic文件夹
    并且重启你的Visual Basic。
    5) Copy all the files in the 'dll project' folder to your Visual Basic Project Templates folder
      (usually C:\Program Files\Microsoft Visual Studio\VB98\template\projects)
    5)在'dll project'文件夹里拷贝所有的文件到你的Visual Basic工程模板文件夹(通常是C:\Program Files\Microsoft Visual Studio\VB98\template\projects)剩下的你自已来吧。:)