Advertisement

使用MFC调用DLL同时启动多线程

阅读量:

在VS2015环境中创建dll工程

1. 通过菜单栏选择文件——>新建项目——>模板——>Visual C++——>MFC——>MFC DLL

为工程命名first_dll

  1. 后续步骤——>MFC扩展DLL
  1. 创建first_dll.h头文件
复制代码
 #pragma once

    
 #ifndef __FIRST_DLL_H__
    
 #define __FIRST_DLL_H__
    
 #include "iostream"
    
 #include "string"
    
 #include "thread"
    
 #include "mutex"
    
  
    
 using namespace std;
    
  
    
 class Student
    
 {
    
 public:
    
 	void

全部评论 (0)

还没有任何评论哟~