⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpw_w32_dll_95.html

📁 VC programing
💻 HTML
字号:
<HTML>
<HR><A NAME=WIN32_DLL_NO_IMPLIB>
Return to <a href="wpw_w32_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: Win32 build .lib from DLL without IMPLIB</H4><PRE>

larva (larva@larva.demon.co.uk) wrote:
: NT Programmers,

: I'm trying to build a .LIB for somebody else's 32-bit .DLL for which I
: don't have the source.

: In 16-bit, this would have been a job for IMPLIB. But it seems that IMPLIB
: has now been incorporated into the linker. The idea seems to be that you
: create the .DLL and .LIB together at link time.
: Does this mean you can't generate an import library without the source anymore?

: Ideas welcomed,

: -- 
: Felix Dilke

I hit this problem when Microsoft removed the toolhelp entry points from
the libraries they supply in the 32 bit SDK, because they are not available
on NT (I'm building for Win 95 where they do exist).  The solution I'm
currently using is to take the function prototypes which I do have, add dummy
bodies to them, and compile this file.  I then have to link this with a def
file in order to create an (unwanted and useless) DLL, and the required
library.

Mark Berry.
-- 
  .--.   .-.--.-- .-.
  |   \ /__|  |  /__|       Mark Berry, Data Connection Ltd,
  |___//   |  | /   |       meb@datcon.co.uk
  C O N N E C T I O N
<HR>


Yup, Visual C++ is pretty sad in the IMPLIB stakes thesedays - whoever 
decided to lose that functionality is one sick little puppy. Anyway, if 
you have access to Borland C++, even just once, you'll find it comes with 
a utility called (ta-daaaa) IMPLIB. Version 4.5 works for 16- and 32-bit. 
There's also an IMPDEF which generates the .def file from the .dll, if 
you need to see what it found.

Hope this helps,
- Gavin.


<HR>

</PRE> 

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -