zoukankan      html  css  js  c++  java
  • create dll project based on the existing project

    Today, I have to create a dll project(called my.sln), the dllmain.cpp/.h/ is already in another project(called A.sln), I only have to update the included lib file in my dll project.

    So I create a new win32 project, which is an empty dll project. Here are the following steps:

    1. add the existing header file and source file in A.sln into my.dln

    2. add the additional include directory:  project->properties->c/c++/additional include directories, add the related .h file here

    3.add the addtional lib:project->properties->linker->input->AdditionalDependencies, add the related .lib here, such as a.lib,b.lib....

    4. add the addtional lib directory: project->properties->linker->general->additional library directories, add the directory of a.lib, b.lib here

    5. (optional) since we do not have a .lib file which is by default needed, add it in the ignore specific default library(project->properties->linker->input)

    So, after all these steps, we can create a dll project with only own .lib file and all the other file is in other project. COOL~

    For more, please refer to

    https://msdn.microsoft.com/en-us/library/73f9s62w(v=vs.80).aspx

    https://msdn.microsoft.com/en-us/library/t9az1d21(v=vs.80).aspx

  • 相关阅读:
    Ubuntu通过ADB连接手机
    MyRolan (快速启动小工具)
    关闭QQ右下角弹窗小程序
    day23作业-韩明琰
    day18-20作业-韩明琰
    day14-16作业-韩明琰
    java中对于多态的理解
    day11作业-韩明琰
    day10作业-韩明琰
    day09_作业
  • 原文地址:https://www.cnblogs.com/sunny-li/p/5052365.html
Copyright © 2011-2022 走看看