Giter Club home page Giter Club logo

test_native_dll_loading's Introduction

Overview

Open "Developer Command Prompt for VS 2019" (or run command "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat").

cd <project dir>
cmake . -B vsproj
cd vsproj

Open test_dll_load.sln.

Compile.

Project contents

This git repo contains some experimenting stuff, related to native .dll loading.

Fixing compilation bugs

If you have compilation error like this:

6>C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h(229,21): error C2760: syntax error: unexpected token 'identifier', expected 'type specifier'

Edit following file:

C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h:
...

extern "C++"
{
    template<typename T> _Post_equal_to_(pp) _Post_satisfies_(return == pp) void** IID_PPV_ARGS_Helper(T** pp) 
    {
#pragma prefast(suppress: 6269, "Tool issue with unused static_cast")
#if !_HAS_CXX20 //added line
        static_cast<IUnknown*>(*pp);    // make sure everyone derives from IUnknown
#endif //added line
        return reinterpret_cast<void**>(pp);
    }    
}

Add // added line to mentioned header file - it should fix compilation errors.

What is this project intent ?

To provide necessary information on what I was trying to do, and what were results - for more information see:

tapika#2

Follow up projects

test_native_dll_loading's People

Contributors

tapika avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.