C++builder DLL技术

  • K9_677505
    了解作者
  • 1.8MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-31 02:01
    上传日期
这是一个简单的DLL动态链接库,是老师在演示课上交我们的。希望有帮助。
DLL技术.rar
  • dll
  • dllFrm.dfm
    330B
  • dProj.exe
    24.5KB
  • dFrm.~h
    830B
  • dProj.cpp
    1KB
  • dProj.res
    876B
  • dFrm.obj
    36.5KB
  • dllProj.bpr
    3.8KB
  • dllProj.~bpf
    107B
  • dProj.~bpr
    3.6KB
  • dFrm.h
    830B
  • dllProj.bpf
    216B
  • dProj.bpr
    3.6KB
  • sProj.obj
    18KB
  • dllUnit.~cpp
    1.8KB
  • sProj.cpp
    1KB
  • dllUnit.cpp
    2KB
  • sFrm.~h
    747B
  • dFrm.~cpp
    883B
  • dllProj.res
    876B
  • dllFrm.cpp
    523B
  • ProjectGroup1.bpg
    911B
  • dllProj.tds
    1.9MB
  • sFrm.cpp
    726B
  • dllProj.~bpr
    3.8KB
  • dFrm.ddp
    51B
  • sProj.~cpp
    1KB
  • dllUnit.obj
    23.5KB
  • dFrm.cpp
    934B
  • sFrm.h
    830B
  • dllFrm.h
    751B
  • sFrm.dfm
    510B
  • sProj.~bpr
    3.7KB
  • sFrm.obj
    36KB
  • sProj.bpr
    3.7KB
  • dllProj.dll
    23KB
  • dProj.tds
    1.9MB
  • sProj.res
    876B
  • dllFrm.obj
    34.5KB
  • sProj.exe
    24.5KB
  • dllProj.lib
    11KB
  • dFrm.dfm
    510B
  • sProj.tds
    1.9MB
  • sFrm.~dfm
    328B
  • sFrm.~cpp
    521B
  • dProj.obj
    17.3KB
  • dFrm.~dfm
    510B
  • dll1
  • Project2.bpr
    3.7KB
  • Unit3.h
    832B
  • Unit3.dfm
    495B
  • Unit3.~cpp
    731B
  • Project2.exe
    444.5KB
  • Unit3.cpp
    731B
  • Project3.res
    876B
  • Unit2.obj
    35.2KB
  • Unit4.h
    832B
  • Unit3.obj
    36KB
  • Unit4.~dfm
    328B
  • Project1.bpf
    275B
  • Project3.bpr
    3.6KB
  • Project3.~bpr
    3.6KB
  • Unit1.cpp
    1.7KB
  • Unit2.cpp
    523B
  • Project1.dll
    439.5KB
  • Unit1.~cpp
    1.5KB
  • Unit2.h
    750B
  • Project1.lib
    2.5KB
  • Unit2.dfm
    328B
  • Unit4.~cpp
    523B
  • Unit3.~h
    832B
  • Project1.res
    876B
  • ProjectGroup1.bpg
    1KB
  • Project2.obj
    18KB
  • Project2.cpp
    1KB
  • Unit4.cpp
    891B
  • Project2.res
    876B
  • Project3.obj
    18KB
  • Project1.~bpr
    3.6KB
  • Project2.~cpp
    1KB
  • Unit3.~dfm
    495B
  • Project3.exe
    24.5KB
  • Unit1.obj
    24KB
  • Unit4.obj
    36.4KB
  • Project1.bpr
    4.1KB
  • ProjectGroup1.~bpg
    929B
  • Project3.cpp
    1KB
  • Project2.~bpr
    3.7KB
  • Unit4.~h
    750B
  • Project1.~bpf
    215B
  • Unit4.dfm
    495B
  • Project3.tds
    1.9MB
内容介绍
//--------------------------------------------------------------------------- #include <vcl.h> #include <windows.h> #pragma hdrstop //--------------------------------------------------------------------------- // 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 //--------------------------------------------------------------------------- #include "dllFrm.h" extern "C" { void _export _stdcall showFrm(); } #pragma argsused int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved) { switch(reason) { case DLL_PROCESS_ATTACH: MessageBox(0,"进程加截","",MB_OK); break; case DLL_PROCESS_DETACH: MessageBox(0,"","",MB_OK); break; } return 1; } void _stdcall showFrm() { Form1=new TForm1(NULL); Form1->ShowModal(); delete Form1; } //---------------------------------------------------------------------------
评论
    相关推荐
    • 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)