I'm trying to make use of the wifi_direct capabilities that are exposed through the winapi.devices library in a firemonkey program. If I include the winapi.devices.hpp and add the using namespace Winapi::Devices to the project it seems to allow me to access the functions, but I have no idea how to actually create the objects or invoke the functions. I've been looking around at sample code for the invoking functions exposed through the interfaces but have run into a brick wall - no matter what I've done I seem to end up with null references to the objects. I assume I'm just a bit too old or too dense to figure it out; thought I'd ask to see if anyone can explain how to instantiate and invoke the objects. Thanks in advance for any help.
↧