Salut , j�ai :
Donc svp comment exporter an array of UserIdentity dans
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 struct UserIdentity { char* 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; } }Mer�i.
Code : S�lectionner tout - Visualiser dans une fen�tre � part void Ui_export .
Partager