Install DLL Addon

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
ra7or
Posts: 2
Joined: Wed Nov 25, 2020 3:42 am

Install DLL Addon

Post by ra7or »

I've made a small DLL to automate a few actions in P3D and everything is working fine on my PC. I'm trying to pass it on to a friend and can't seem to get it to work on his P3D.

I've sent him the folder which he's placed in the \Documents\Prepar3D v4 Add-ons folder. When P3D starts, it asks to allow the addon which he does, and the addon also appears with a tick next to it when checking under Options > Addons
However, the DLL doesn't start.

ContentErrors.txt shows

Code: Select all

[error.3]
error=Error loading A330FO.dll: The specified module could not be found.

[error.4]
error=Error loading "" from "C:\Users\Owner\Documents\Prepar3D v4 Add-ons\A330FO\A330FO.dll".
The add-on.xml file

Code: Select all

<SimBase.Document Type="AddOnXml" version="3,3" id="add-on">
    <AddOn.Name>A330FO</AddOn.Name>
    <AddOn.Description>A330FO</AddOn.Description>
    <AddOn.Component>
        <Category>DLL</Category>
        <Path>A330FO.dll</Path>
        <DLLType>PDK</DLLType>
    </AddOn.Component>
</SimBase.Document>

As I said, same files and directory structure on both PCs. Have tried using an absolute file path in the xml file, but no luck.
Cheers
ra7or
Posts: 2
Joined: Wed Nov 25, 2020 3:42 am

Re: Install DLL Addon

Post by ra7or »

Never mind, fixed.

Brand new to C++ / P3D SDK / VS2019. Didn't realise debug version wouldn't work elsewhere, had to be release. Did the hard yards, tripped over my own shoe laces at the finish line.

How am I going for my first post? :)
Post Reply