c++builder隐式连接DLL

  • k1_293634
    了解作者
  • 381.5KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-02 06:49
    上传日期
简单的c++builder隐式连接DLL,初学者可以瞅瞅
DLL_Use.rar
  • DLL_Use
  • DLL_const
  • DLL_const.lib
    2.1KB
  • DLL_const.bpf
    107B
  • untDLL_const.obj
    12.1KB
  • untDLL_const.~cpp
    1.6KB
  • DLL_const.dll
    51.5KB
  • DLL_const.~bpr
    4.9KB
  • DLL_const.res
    876B
  • untDLL_const.cpp
    1.6KB
  • DLL_const.bpr
    5.3KB
  • DLL_const.tds
    448KB
  • MainApp
  • untMain.h
    950B
  • untMain.ddp
    51B
  • DLL_Main.cpp
    1.1KB
  • untMain.~cpp
    723B
  • DLL_Main.~cpp
    1.1KB
  • DLL_Main.res
    876B
  • DLL_Main.obj
    10.1KB
  • untMain.~h
    921B
  • DLL_Main.~bpr
    5.4KB
  • DLL_Main.lib
    2.3KB
  • untMain.~ddp
    51B
  • DLL_Main.tds
    704KB
  • DLL_Main.exe
    441KB
  • untMain.cpp
    723B
  • DLL_const.dll
    51.5KB
  • untMain.obj
    16.6KB
  • untMain.dfm
    837B
  • untMain.~dfm
    681B
  • DLL_Main.bpr
    5.5KB
内容介绍
//--------------------------------------------------------------------------- #include <vcl.h> #include <windows.h> #pragma hdrstop extern "C" __declspec(dllexport) int test() { return 5; } //--------------------------------------------------------------------------- // Important note about DLL memory management when your DLL uses the // static version of the RunTime Library: // // If your DLL exports any functions that pass String objects (or structs/ // classes containing nested Strings) as parameter or function results, // you will need to add the library MEMMGR.LIB to both the DLL project and // any other projects that use the DLL. You will also need to use MEMMGR.LIB // if any other projects which use the DLL will be performing new or delete // operations on any non-TObject-derived classes which are exported from the // DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling // EXE's to use the BORLNDMM.DLL as their memory manager. In these cases, // the file BORLNDMM.DLL should be deployed along with your DLL. // // To avoid using BORLNDMM.DLL, pass string information using "char *" or // ShortString parameters. // // If your DLL uses the dynamic version of the RTL, you do not need to // explicitly add MEMMGR.LIB as this will be done implicitly for you //--------------------------------------------------------------------------- #pragma argsused int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved) { return 1; } //---------------------------------------------------------------------------
评论
    相关推荐
    • c++课件
      c++课件c++课件c++课件c++课件c++课件c++课件c++课件c++课件c++课件c++课件c++课件c++课件c++课件
    • C++
      C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
    • Effective C++
      学习c++的经典书籍!每一个学习c++的人有时间最好看看!你会获得很大收获!
    • c++information
      c++c++c++c++c++c++c++c++c++c++c++c++
    • SourceStyler C++
      用DEV-C++写代码很方便,就是不能格式化有点郁闷 c++格式化的好工具 效率高
    • Accelerated C++
      Accelerated C++是一本c++经典书籍 能让你快速体会到c ++的语言体系
    • c++yuyanbiancheng
      这是C和C++集成的编程环境!这是C和C++集成的编程环境!这是C和C++集成的编程环境!这是C和C++集成的编程环境!这是C和C++集成的编程环境!
    • C++ primier
      学习C++的经典之作,希望大家学习愉快,快速掌握C++的各种知识。多下哈
    • effective C++
      有关C++编程方面的检验性介绍,对由C转向C++,和有C++编程基础的程序员有帮助,不过是英文版
    • effective c++
      C++经典书籍Effective C++ By Scott Meyers, 已译成中文,chm格式,方便检阅 Uploaded by save (chaisave@sohu.com)