Bonjour,
a fin d'�viter que le dictionnaire ne se charge au d�marrage je souhaite le cr�er dans un data.h ou un fichier externe a l'application ex data.** ce qui faciliterai les ajout futur mais je n'y arrive pas.
Actuellement mon dictionnaire est int�gr� � l'appli comme si dessous.
Merci d'avance pour votre aide.
Et dans un autre fichier d'en-t�te.h la classe FourStrings
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 public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) { InitializeComponent(); dict = gcnew Dictionary< String^, TwoStrings^ >; TwoStrings ^TwoStrs = gcnew TwoStrings; TwoStrs = gcnew TwoStrings; TwoStrs->first = L"arbre"; TwoStrs->second = L"ete"; dict->Add(L"3452", TwoStrs);TwoStrs = gcnew TwoStrings; } private Dictionary<String, FourStrings> dict;
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12 namespace dico { using namespace System; public ref class FourStrings { public: String^ first; String^ second; String^ three; String^ four; }; }
Partager