How to include dll files with plugins automatically

This forum is currently in read-only mode.
  • Here is how to automatically include dlls with your plugins. I found this in the xaudio2 source when I was making the audiere plugin.

    Add this to edittime.cpp after #ifndef RUN_ONLY

    // Dependencies
    // Add any DLLs your plugin depends on here.
    void WINAPI ETAddDependencies(MicroDependency& dependencies)
    	// Any DLL files added here are retrieved from the Plugins\Runtime directory, and compiled in to exported EXEs.
    	// When the EXE runs, the DLL is extracted to the current directory before loading your plugin, so calls such
    	// as LoadLibrary("example.dll") will succeed at runtime.  This greatly simplifies redistribution for end users.
    	// Eg.
    Then edit ConstructSDK.def and add this line
    [code:1iakkpxh]	ETAddDependencies		@15[/code:1iakkpxh]
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Awesome find, right up there with your Resource plug!

  • Have you tested this works? I can't remember if we ever finished the feature...

  • I have tested it as working with my Audiere plugin. The only other plugin I know of that appears to use this feature is the mod plugin.

  • Oooh, I'll have to include this with the next build of Noise.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)