![]() |
DLL export array of struct
Hello i'v the following function that exports a single instance of a struct :
Code:
So please how could i export an array of _UserIdentity instead of a single instance in my function
struct UserIdentity
{ std::string name; int id; }; std::map<std::string, int> g_UserIdentities = { { "Bob", 100 }, { "Jone", 101 }, { "Alice", 102 }, { "Doe", 103 } }; /* * Will be used in a DLL that will export UserIdentity struct * OUT _UserIdentity */ void Ui_export(UserIdentity *_UserIdentity) { for (auto& t : g_UserIdentities) { _UserIdentity->name = t.first; _UserIdentity->id = t.second; } }
Code:
thank you .
void Ui_export(UserIdentity *_UserIdentity)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:13 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz