Skip to content

Simple Matrix DLL written on C++ with unit tests.

Notifications You must be signed in to change notification settings

gtrubach/MatrixDLL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Matrix DLL

Description

There is simple example of creating DLL and writing Unit tests for it.

Requiremets

How to get it

  1. Download/Clone this repository
  2. Open solution file .sln
  3. Build the solution

How to create your own DLL and Unit tests for it

  1. Open Visual Studio 2015 IDE

  2. Start project wizard

     File->New->Project
    
  3. Select Visual C++ Console Application

     Visual C++->Win32->Win32 Console Application
    

and set the checkpoint on Create directory for solution

  1. In wizard's Application Settings tab choose

     Appliction type: DLL
     Additional options: Export symbols; Precompiled header; Security Development Lifecycle (SDL) checks
    
  2. Add new project in solution

     Solution->Add->New Project
    
  3. Select Unit test

     Visual C++->Test->Native Unit Test Project
    
  4. Go to solution properties

     Solution->Properties
    
  5. Select Project Dependencies tab

  6. Select Unit test project and set checkbox on DLL project

  7. Go to Unit test project properties

  8. Go to C/C++->General tab

  9. Add path to DLL project ../ConsoleApplication into Additional Include Directories

  10. Go to Linker->General tab

  11. Add ..\$(Configuration) into Additional Library Directories

  12. Go to Linker->Input tab

  13. Add lib name ConsoleApplication.lib into Additional Dependencies

  14. Build solution and run with tests

    Test->Run->All tests
    

About

Simple Matrix DLL written on C++ with unit tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published