- Joined
- Jun 6, 2012
- Messages
- 287
- Reaction score
- 66
- Points
- 28
- Location
- Sydney, Australia, Earth, Sol
- Website
- www.orbithangar.com
Hi All,
I have made a static library (.lib) which I am hoping to release later as a part of an SDK.
the library defines a class type, which can be then be called by vessel classes.
My issue is, I would like to be able to interface with the class in the same way as the example below:
oapiGetVesselInterface allows me to get the interface for a specific class object.
Now, what I would optimally like to is interact with my custom class, but the instance called for a specific vessel.
I am having so much difficulty with this and am going in circles. If anyone could offer any help I would really appreciate it.
happy to share my code if that helps too.
Thanks in advance!
UPDATE:
In my .lib project's header, I tried declaring the class like this:
This allows me to interact with MYCLASS, but when I compile a vessel project using this library, I get the following error:
error C2512: 'MYCLASS' : no appropriate default constructor available
I have made a static library (.lib) which I am hoping to release later as a part of an SDK.
the library defines a class type, which can be then be called by vessel classes.
My issue is, I would like to be able to interface with the class in the same way as the example below:
Code:
VESSEL *v = oapiGetVesselInterface(GetHandle());
v->DoSomething();
oapiGetVesselInterface allows me to get the interface for a specific class object.
Now, what I would optimally like to is interact with my custom class, but the instance called for a specific vessel.
I am having so much difficulty with this and am going in circles. If anyone could offer any help I would really appreciate it.
happy to share my code if that helps too.
Thanks in advance!
UPDATE:
In my .lib project's header, I tried declaring the class like this:
C++:
class MYCLASS : public VESSEL {
public:
};
This allows me to interact with MYCLASS, but when I compile a vessel project using this library, I get the following error:
error C2512: 'MYCLASS' : no appropriate default constructor available
Last edited: