.lib と .DLL を作成することに関しては、私は少しさびているので、詳細のいくつかについての私の無知を許してください。しかし、ここに私の質問があります。
私は Visual Studio と Windows 7 を使用して C++ で (ユニバーサル Windows) ライブラリを作成しています。
これらの関数の 1 つは、具体的には Windows 10 SDK を使用する必要があります。
StorageFolder* appFolder = Windows::ApplicationModel::Package::Current->InstalledLocation;
create_task(appFolder->GetFilesAsync()).then([=](IVectorView<StorageFile*>* filesInFolder)
{
//Iterate over the results and print the list of files
// to the visual studio output window
for (auto it = filesInFolder->First(); it->HasCurrent; it->MoveNext())
{
StorageFile* file = it->Current;
String* output = file->Name + "\n";
OutputDebugString(output->Begin());
}
});
私の質問は、このライブラリを可能な限り互換性のあるものにする方法と、さらに重要なことに、どのように機能させるかです。私は Windows7 を使用していることを理解しており、これらのクラスは Windows10 でのみ使用できるため、Windows10 SDK をインストールして lib プロジェクトに含めると想定しますが、それでも StorageFolder が見つかりません。Windows10 に移行する唯一の選択肢はありますか? ユーザーが Windows7 で使用している場合、私の lib は引き続き機能しますか?