-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Noob here.
I get this error:
CppStruct [PFactoryInfo]/long flags error : Unknown type found [long]
and have tried several things to fix it but to no avail... I suspect the FactoryFlags are the problem (see source code below).
(I have trouble deciphering the docs on where these xml tags go precisely. Sometimes it is mentioned but not always. No errors when you do it wrong too.)
Can anybody shed some light on this?
The mapping file:
<assembly>SharpGenToolsTest</assembly>
<namespace>SharpGenToolsTest.Interfaces</namespace>
<depends>SharpGen.Runtime</depends>
<sdk name="StdLib" />
<sdk name="WindowsSdk" />
<include-dir .... />
<include file="ipluginbase.h" namespace="SharpGenToolsTest.Interfaces">
<attach>IPluginBase</attach>
<attach>PFactoryInfo</attach>
<attach>PClassInfo</attach>
<attach>IPluginFactory</attach>
<attach>PClassInfo2</attach>
<attach>IPluginFactory2</attach>
<attach>PClassInfoW</attach>
<attach>IPluginFactory3</attach>
</include>Source code:
struct PFactoryInfo
{
enum FactoryFlags
{
kNoFlags = 0,
kClassesDiscardable = 1 << 0,
kLicenseCheck = 1 << 1,
kComponentNonDiscardable = 1 << 3,
kUnicode = 1 << 4
};
enum
{
kURLSize = 256,
kEmailSize = 128,
kNameSize = 64
};
char8 vendor[kNameSize];
char8 url[kURLSize];
char8 email[kEmailSize];
int32 flags;
};Metadata
Metadata
Assignees
Labels
No labels