Linking Payload Manager

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
10,659
Reaction score
4,465
Points
203
Location
Dallas, TX
I am having troubles linking PAyload Manager.
here is my setup. Copied the lib and includes.
ULIFEBOAT1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl PayloadManager::SetSendFocus(class VESSEL *,bool)" (__imp_?SetSendFocus@PayloadManager@@SAXPAVVESSEL@@_N@Z) referenced in function "public: void __thiscall VesselWithPM<class ULIFEBOAT,class VESSEL2>::PM_SetSendFocus(bool)" (?PM_SetSendFocus@?$VesselWithPM@VULIFEBOAT@@VVESSEL2@@@@QAEX_N@Z)
I have 24

f_setupm_5dee90b.jpg


EDIT: Fixed added PayloadManager.lib. in the Linker/Input/Additional Dependencies

new problem:
ULIFEBOAT1.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteA@24 referenced in function "public: void __thiscall VesselWithPM<class ULIFEBOAT,class VESSEL2>::CheckModule(void)" (?CheckModule@?$VesselWithPM@VULIFEBOAT@@VVESSEL2@@@@QAEXXZ)
 
Last edited:
payload manager set up

I still have not been able to get this to compile. I have copied the cpp and h from the example into new files. changed the class name.

I get this error:
ULIFEBOAT1.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteA@24 referenced in function "public: void __thiscall VesselWithPM<class ULIFEBOAT,class VESSEL2>::CheckModule(void)" (?CheckModule@?$VesselWithPM@VULIFEBOAT@@VVESSEL2@ @@@QAEXXZ)

my vessel name is ULIFEBOAT
 
I copied the directories into SDK\samples\ and open and get this first off:
f_payloadm_66506c9.jpg




CAn any help in getting this for use with another vessel. I started from scratch. I keeping getting
.\PMdemonstrator.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
Code:
#include "afxres.h"
I am sure I have the links set up.
C:\orbiter\Orbitersdk\include;"C:\Program Files\Microsoft Platform SDK\Include"

This file is in the the include directory

I also have this:
C:\Program Files\Microsoft Platform SDK\Include\mfc

 
Last edited:
Back
Top