Island: Can't find certain constants

I’ve created an Island project in Swift targeting Windows.

I’m trying to set up COM in my app but I get errors for using unknown identifiers.

import rtl
CoInitializeEx(nil, COINIT.COINIT_MULTITHREADED as! DWORD)
CoInitializeSecurity(nil, -1, nil, nil, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, nil, EOLE_AUTHENTICATION_CAPABILITIES.EOAC_NONE as! DWORD, nil)

I get these errors on compiling
Unknown identifier "RPC_C_AUTHN_LEVEL_DEFAULT"
Unknown identifier “RPC_C_IMP_LEVEL_IMPERSONATE”

I have imported rtl. Do I need to import anything else?
What namespace can I find them under?

They should be under rtl. It looks like those weren’t imported yet.

I’ve fixed the import script for the next build, here are the updated files.
Windows-10.0.15063.0.zip (4.1 MB)

Extract these in C:\Program Files (x86)\RemObjects Software\Elements\Island\Reference Libraries (so they replace the existing files)

2 Likes

Thanks, that does it.

1 Like